AMP embedded tweets not loading with strict tracking protection
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(firefox59 affected, firefox85 affected)
People
(Reporter: abovens, Unassigned)
References
()
Details
(Keywords: webcompat:needs-diagnosis, Whiteboard: [tp-social][tp-yellowlist-active][tp-shim-content][tp-embedded-media][webcompat:sightline])
User Story
twitter.com
Attachments
(2 files)
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•6 years ago
|
||
FWIW, loaded https://en.support.wordpress.com/twitter/twitter-embeds/ in Brave, and although they claim to block ads and trackers, it appears to load the embeds by default.
My guess is that this is not "protected", but they are doing this to not break things.
Opened bug 1526695 with an idea to enable whitelisting of Twitter embeds by users if they are okay with being tracked by certain trackers but don't want to disable TP for a domain.
Assignee | ||
Updated•6 years ago
|
Comment 8•5 years ago
|
||
AMP is using the promise-based Twitter widget.js
APIs to create tweets/moments/timelines (twttr.widgets.createTweet
and so on). But it does that for each Twitter element in its own iframe, inside of a custom amp-twitter
element in the main page.
This gives us some options, depending on the placeholder UI we'd like to use. But for quick testing, I just modified my shim in https://bugzilla.mozilla.org/show_bug.cgi?id=1486471#c6 to mock the createTweet
methods to return a promise which is only resolved after the user clicks a placeholder and the widgets.js loads. It also detects that the shimmed widgets.js
is being loaded in an AMP iframe, and puts a placeholder over the entire iframe's body.
With that approach users would need to click each individual tweet in an iframe to load it, but this can of course be refined (or a different approach used entirely).
Updated•5 years ago
|
Comment 9•4 years ago
|
||
This issue still occurs with ETP - Strict enabled.
https://prnt.sc/vmwpol
Tested with:
Browser / Version: Firefox Nightly 85.0a1 (2020-11-19)
Operating System: Windows 10 Pro
Comment 10•4 years ago
|
||
If embedded Twitter contents require cookies from twitter.com (third party cookie) to embed contents, this is the right behavior.
Updated•4 years ago
|
Updated•3 months ago
|
Description
•