Closed
Bug 1274020
Opened 9 years ago
Closed 8 years ago
Add a test to show that the DOM Cache is separated by origin attributes
Categories
(Core :: DOM: Security, defect, P2)
Core
DOM: Security
Tracking
()
RESOLVED
FIXED
mozilla53
| Tracking | Status | |
|---|---|---|
| firefox53 | --- | fixed |
People
(Reporter: tanvi, Assigned: jhao)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [OA-testing][usercontextId][domsecurity-active][tor-testing])
Attachments
(1 file)
The DOM Cache is a separate cache/datastore that is used by ServiceWorkers and scripts. This could be an easy way to track across containers if we didn't properly segragate the DOM cache by usercontextid. This bug is to add an automated test case to ensure that we do separate based on usercontextId.
I believe this depends on the quota manager bug 1195930, as the DOM cache gets the principal from quota manager.
A bunch of useful links on DOM Cache:
https://developer.mozilla.org/cs/docs/Web/API/Cache
https://bugzilla.mozilla.org/show_bug.cgi?id=940273
https://dxr.mozilla.org/mozilla-central/source/dom/cache/PrincipalVerifier.cpphttps://dxr.mozilla.org/mozilla-central/source/dom/cache/ManagerId.cpp
https://blog.wanderview.com/blog/2014/12/08/implementing-the-serviceworker-cache-api-in-gecko/
https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#cache-objects
Updated•9 years ago
|
Priority: P2 → P3
Whiteboard: [OA-testing][usercontextId][domsecurity-backlog] → [OA-testing][usercontextId][domsecurity-backlog2]
| Reporter | ||
Updated•9 years ago
|
Priority: P3 → P2
Updated•9 years ago
|
Whiteboard: [OA-testing][usercontextId][domsecurity-backlog2] → [OA-testing][usercontextId][domsecurity-backlog2][tor]
Updated•9 years ago
|
Whiteboard: [OA-testing][usercontextId][domsecurity-backlog2][tor] → [OA-testing][usercontextId][domsecurity-backlog2][tor-testing]
Updated•8 years ago
|
Blocks: FirstPartyIsolation
Updated•8 years ago
|
Assignee: nobody → jhao
Status: NEW → ASSIGNED
Whiteboard: [OA-testing][usercontextId][domsecurity-backlog2][tor-testing] → [OA-testing][usercontextId][domsecurity-active][tor-testing]
| Assignee | ||
Updated•8 years ago
|
Summary: Add a test to show that the DOM Cache is separated by usercontextId → Add a test to show that the DOM Cache is separated by origin attributes
| Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8816083 [details]
Bug 1274020 - Tests that shows the Cache Web API is separated by origin attributes.
https://reviewboard.mozilla.org/r/96886/#review98540
::: browser/components/originattributes/test/browser/browser_cacheAPI.js:19
(Diff revision 1)
> + });
> +}
> +
> +IsolationTestTools.runTests("https://test2.example.com", getResult, null, null,
> + false, /* aUseHttps */ true);
> +
extra line
Attachment #8816083 -
Flags: review?(amarchesini) → review+
| Assignee | ||
Comment 3•8 years ago
|
||
Thanks, baku.
| Comment hidden (mozreview-request) |
Pushed by jhao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4264286be28a
Tests that shows the Cache Web API is separated by origin attributes. r=baku
Comment 6•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in
before you can comment on or make changes to this bug.
Description
•