Ensure that we revoke a top frame's storage access when it is navigated away
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
From https://github.com/whatwg/html/issues/3338:
Access Removal
Storage access is granted for the life of the document and as long as the document's frame is attached to the DOM. This means:
Access is removed when the top frame navigates.
Assignee | ||
Comment 1•5 years ago
|
||
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6aabad91d980 Ensure that we revoke a top frame's storage access when it is navigated away; r=baku
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/757b729752e0 follow-up: Remove a call to a non-existent function
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4f63311e6f00 Fix build failure (landed on a CLOSED TREE)
Comment 5•5 years ago
|
||
Backed out 3 changesets (Bug 1543786) for browser_storageAccessRemovalNavigateTopframe.js failures CLOSED TREE
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=4f63311e6f00d31dae05a35aa49b63c34ba3ae33&selectedJob=240090803
Backout link: https://hg.mozilla.org/integration/mozilla-inbound/rev/846d7680d2de2f8ae3cc55f8a448d4e8fff7f688
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=240090803&repo=mozilla-inbound&lineNumber=6366
01:38:31 INFO - TEST-START | toolkit/components/antitracking/test/browser/browser_storageAccessRemovalNavigateTopframe.js
01:40:46 INFO - TEST-INFO | started process screencapture
01:40:46 INFO - TEST-INFO | screencapture: exit 0
01:40:46 INFO - Buffered messages logged at 01:38:31
01:40:46 INFO - Entering test bound
01:40:46 INFO - Starting blocking cookieBehavior (4) and contentBlocking third-party cookies UI without allow list test Storage Access is removed when topframe navigates running in a normal window with iframe sandbox set to null and access removal set to navigate-topframe
01:40:46 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_storageAccessRemovalNavigateTopframe.js | callbackAfterRemoval must be passed when accessRemoval is non-null -
01:40:46 INFO - Creating a new tab
01:40:46 INFO - Creating a 3rd party content
01:40:46 INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.net/browser/toolkit/components/antitracking/test/browser/page.html" line: 0}]
01:40:46 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html” was blocked because it came from a tracker and content blocking is enabled." {file: "http://example.net/browser/toolkit/components/antitracking/test/browser/page.html" line: 0}]
01:40:46 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html” was blocked because it came from a tracker and content blocking is enabled." {file: "http://example.net/browser/toolkit/components/antitracking/test/browser/page.html" line: 0}]
01:40:46 INFO - Sending code to the 3rd party content
01:40:46 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_storageAccessRemovalNavigateTopframe.js | Doesn't yet have storage access - true == true -
01:40:46 INFO - Running after removal checks (navigate-topframe)
01:40:46 INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://not-tracking.example.com/browser/toolkit/components/antitracking/test/browser/3rdParty.html" line: 0}]
01:40:46 INFO - Buffered messages logged at 01:39:16
01:40:46 INFO - Longer timeout required, waiting longer... Remaining timeouts: 2
01:40:46 INFO - Buffered messages logged at 01:40:01
01:40:46 INFO - Longer timeout required, waiting longer... Remaining timeouts: 1
01:40:46 INFO - Buffered messages finished
01:40:46 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_storageAccessRemovalNavigateTopframe.js | Test timed out -
01:40:46 INFO - GECKO(1164) | MEMORY STAT | vsize 5734MB | residentFast 546MB | heapAllocated 94MB
01:40:46 INFO - TEST-OK | toolkit/components/antitracking/test/browser/browser_storageAccessRemovalNavigateTopframe.js | took 135039ms
01:40:46 INFO - Not taking screenshot here: see the one that was previously logged
01:40:46 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_storageAccessRemovalNavigateTopframe.js | Found a tab after previous test timed out: http://example.net/browser/toolkit/components/antitracking/test/browser/page.html -
01:40:46 INFO - checking window state
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/19d9a16423fd Ensure that we revoke a top frame's storage access when it is navigated away; r=baku
Comment 7•5 years ago
•
|
||
Backed out changeset 19d9a16423fd (Bug 1543786) for ESlint failure at browser_storageAccessRemovalNavigateTopframe.js.
Backout: https://hg.mozilla.org/integration/autoland/rev/5bcd5457bb3897237f74973d6893ed5b597f354e
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=19d9a16423fd5fc2ab87c4b91b68bfd4407b9a42&selectedJob=240851040
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=240851040&repo=autoland&lineNumber=295
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2418f3bd2940 Ensure that we revoke a top frame's storage access when it is navigated away; r=baku
Assignee | ||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•