Changes in bug 1652244 break Twitter image downloads with Strict TP enabled
Categories
(Core :: Privacy: Anti-Tracking, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox-esr78 | --- | unaffected |
firefox80 | --- | unaffected |
firefox81 | blocking | verified |
firefox82 | --- | verified |
firefox83 | --- | verified |
People
(Reporter: denschub, Assigned: timhuang)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
pascalc
:
approval-mozilla-release+
|
Details | Review |
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
STR:
- Toggle TP to Strict in the settings.
- Navigate to the direct URL of a Twitter image, like https://pbs.twimg.com/media/EhfHw9HXYAQ8HyW?format=png
- Try saving it with Ctrl/Cmd-S, or right click and "Save Image As..."
Expected:
File is downloaded somewhere.
Actual:
File fails to download, with a "Failed" in the download manager. Looking at the browser console/browser devtools, it's indicated that the request got blocked for "social tracking".
This is a regression of the changes in bug 1652244. I'm marking this as such, but since that patch fixed another broken thing, it's probably not too easy to resolve. :)
Requesting tracking just for processes sake, Twitter images appear to be working fine otherwise, so this is probably a bit niche.
Reporter | ||
Comment 1•4 years ago
|
||
I'd needinfo :dimi, but they are OOO until Sep 20. :timhuang, since you reviewed the patch, maybe you can redirect accordingly?
Comment 2•4 years ago
|
||
This is a non-default configuration and we're about to build the final beta of the 81 cycle. I don't think this needs to be tracked but I'm open to stronger arguments for why it should.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
The problem occurs in AntiTrackingUtils::ComputeIsThirdPartyToTopWindow()
. Because the channel used to download the image doesn't have a browsing context. So, AntiTrackingUtils::ComputeIsThirdPartyToTopWindow
won't update the flag 'IsThirdPartyToTopWindow' correctly. I think in this case, we should check if the principal of the channel is third-party to its loading principal.
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D90816
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/71c87c0e1d24
https://hg.mozilla.org/mozilla-central/rev/0fc2e9fdf1f3
Comment 8•4 years ago
|
||
The patch landed in nightly and beta is affected.
:timhuang, is this bug important enough to require an uplift?
If not please set status_beta
to wontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 9•4 years ago
|
||
Comment on attachment 9176815 [details]
Bug 1663992 - Check loading principal if there is no browsing context in AntiTrackingUtils::ComputeIsThirdPartyToTopWindow(). r?dimi
Beta/Release Uplift Approval Request
- User impact if declined: The 'Save Image As' will break in image documents of social media sites when Strict mode is enabled.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch only changes the behavior of documents that have no browsingContext. For documents that have browsingContext, the behavior remains the same. And It matches the behavior before Bug 1652244.
- String changes made/needed: None
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Comment on attachment 9176815 [details]
Bug 1663992 - Check loading principal if there is no browsing context in AntiTrackingUtils::ComputeIsThirdPartyToTopWindow(). r?dimi
approved for 82.0b4
Updated•4 years ago
|
Updated•4 years ago
|
Comment 11•4 years ago
|
||
bugherder uplift |
Comment 13•4 years ago
•
|
||
It sounds like this is the root cause behind bug 1665368 which does affect 81, so adjusting tracking flags.
Comment 14•4 years ago
|
||
Tim, can the patch in this bug be uplifted to the 81 branch to fix bug 1665368? Could you request the uplift to release? Thanks
Comment 16•4 years ago
|
||
Comment on attachment 9176815 [details]
Bug 1663992 - Check loading principal if there is no browsing context in AntiTrackingUtils::ComputeIsThirdPartyToTopWindow(). r?dimi
Beta/Release Uplift Approval Request
- User impact if declined: Breakage in twitter.com when tracking protection strict mode is enabled
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: 1. First set your privacy level to “standard”
- Load twitter.com. Go to about:serviceworkers and confirm there’s a sw for twitter.com (via about:serviceworkers)
- Now change your privacy level to “strict”
- Go to twitter and try anything in the app that forces a full page load eg: logging out or switching accounts.
Then you should see the error message (See Bug 1665368).
Details can be found in https://bugzilla.mozilla.org/show_bug.cgi?id=1665368#c27
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch has already been tested in 82 and 83. We have seen any issues so far.
We also have a test to cover this. - String changes made/needed:
Updated•4 years ago
|
Comment 17•4 years ago
|
||
Comment on attachment 9176815 [details]
Bug 1663992 - Check loading principal if there is no browsing context in AntiTrackingUtils::ComputeIsThirdPartyToTopWindow(). r?dimi
Driver for 81.0.2, uplift approved for 81.0.2 thanks
Assignee | ||
Updated•4 years ago
|
Comment 18•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Comment 19•4 years ago
•
|
||
Confirmed issue with 82.0a1 (2020-09-09) on Windows 10.
Fix verified with :dcicas using 83.0a1 (2020-10-12), 82.0b9, 81.0.2 on Windows 10, macOS 10.15, Ubuntu 16x32.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•