Comments (4)
Thanks for reporting the issue! I'm always fascinated by inconsistencies like this one.
when disabling Tracking Protection, the embed Twitter video plays just fine in Discord
I cannot reproduce your workaround. Disabling Tracking Protection outright still fails to play the embed. In fact, the same behavior occurs with:
- Brave with
Allow Twitter embedded tweets
enabled andShields
disabled - Microsoft Edge w/
Basic
Tracking Prevention and allowing 3rd party cookies - Chrome
- Discord app for Windows 11 on another computer, using a different account
- On the Discord app for iOS: a preview of the tweet shows but not the media player portion, unlike it does for Discord on desktops
The tweet preview in Discord is coming from twitter.com
, abs.twimg.com
, and api.twitter.com
, whereas embedded tweet widgets on webpages comes from platform.twitter.com
. The request type is different, too.
I had to add twitter.com
to our two urlclassifier
pref strings from SecureFox
so that the twitter.com
and abs.twimg.com
requests would not be blocked by Firefox's Tracking Protection. But doing that, and even disabling TP outright, didn't change anything.
The third request the tweet preview calls for, api.twitter.com
, is flagged by CORS in all the aforementioned web browsers I tested. It's only allowed to load on twitter.com
; no other websites. And if that's what's needed for the tweet preview to play, then this would explain why it didn't work on any other browsers I tested:
You can read more about CORS below:
- https://portswigger.net/web-security/cors
- https://medium.com/@electra_chong/what-is-cors-what-is-it-used-for-308cafa4df1a
- https://www.keycdn.com/support/cors#a-real-world-example-of-how-cors-works
If more users report that they can play with Tracking Protection disabled, we can look dig further into the breakage.
from betterfox.
Hi,
I just tried with a fresh firefox profile, and it didn't play the video. However, after disabling Tracking Protection, it just played fine. Same with Arkenfox user.js. I would like to know, can we disable tracking protection completely and only rely on ublock origin ? What do we lose if we do that ? I would prefer relying on ublock origin since it is way more customizable than tracking protection for me.
EDIT : Just tried Librewolf, same thing, same workaround.
from betterfox.
I still am not able to reproduce the solution. I tried again on a fresh Firefox Nightly profile on my work network (which doesn't use NextDNS like my home network). Didn't use uBO or TP; still didn't fetch the video.
One option you can try without disabling Tracking Protection: Add twitter.com
to your two urlclassifier
prefs. They should look like this after adding:
user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, twitter.com");
user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com, twitter.com");
If that still doesn't work: You can disable Tracking Protection for https://discord.com
in the Firefox settings, if Twitter video previews are that frequent for your usecase.
can we disable tracking protection completely and only rely on ublock origin ?
I don't advise that. You can use both, and Tracking Protection goes beyond blocking certain requests. You can always disable Tracking Protection for certain sites, but I never need to.
from betterfox.
Archiving for now.
from betterfox.
Related Issues (20)
- Firefox crashes when opening local HTML file (file size > 4MB) HOT 4
- Applying Fastfox.js HOT 11
- How to integrate Smoothfox into user.js ? HOT 2
- Dark mode settings revert to automatic after every restart HOT 1
- Downloads without prompt HOT 2
- Smoothfox.js - parse error quick fix HOT 1
- How to set page zoom with user.js ? HOT 2
- Is there a way to re-enable pocket? HOT 2
- Highlight information using blockquotes
- Smoothfox upgrade: AveYo's Natural Scrolling v4? Why are we still on v3? HOT 3
- Currentness of LibreWolf Overrides HOT 5
- Disqus in "Strict" mode doesn't work HOT 6
- Smoothfox values in quotation marks HOT 1
- How do i fix this icon from showing up when hovering over the adress bar? HOT 1
- Very high ram usage HOT 1
- Location is not available when i open folder the root directory in about:profiles HOT 3
- Consider tweaking browser.sessionstore.interval HOT 3
- Settings does not save when using betterfox HOT 4
- copying an edited link with the http/s trimmed will not copy the full address HOT 5
- Tab Previews HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterfox.