Closed
Bug 1270338
Opened 8 years ago
Closed 7 years ago
Add a mochitest to ensure Sanitizer clears data for all containers
Categories
(Core :: DOM: Security, defect, P2)
Core
DOM: Security
Tracking
()
RESOLVED
FIXED
mozilla53
People
(Reporter: allstars.chh, Assigned: jhao)
References
(Blocks 1 open bug)
Details
(Whiteboard: [userContextId][OA-testing][domsecurity-backlog2][tor-testing])
Attachments
(1 file)
This bug is to make sure "Clear History" will apply for all containers for v1. For v2 we'd like to have to clear history for some specific container, bug 1199470.
Updated•8 years ago
|
Priority: -- → P1
Updated•8 years ago
|
Whiteboard: [userContextId] → [userContextId][OA][domsecurity-active]
Comment 1•8 years ago
|
||
Recently I implemented a ContextualIdentity service. What about if we use this component to retrieve the list of userContextIds and delete everything based on this list?
Reporter | ||
Updated•8 years ago
|
Assignee: allstars.chh → nobody
Updated•8 years ago
|
Assignee: nobody → tihuang
Updated•8 years ago
|
Status: NEW → ASSIGNED
Comment 2•8 years ago
|
||
It appears that the clear history works correctly for clearing all user contexts. The clear history is based on the sanitizer[1] and the sanitizer does the right thing. The sanitizer has been tested in the Bug 1250983 that the forget button uses the sanitizer to clear data as well, and the forget button did clear all user contexts. So I think we should make this bug as an OA-testing bug, and move it to P2. What do you think, Tanvi? [1] https://dxr.mozilla.org/mozilla-central/source/browser/base/content/sanitize.js
Flags: needinfo?(tanvi)
Comment 3•8 years ago
|
||
What is different about Clearing History and clicking the Forget button? Do they both do the same thing? Tim, if you have tested manually and confirmed that clearing works, then we can covert this to a P2 testing bug. Thank you!
Flags: needinfo?(tanvi)
Priority: P1 → P2
Whiteboard: [userContextId][OA][domsecurity-active] → [userContextId][OA-testing][domsecurity-active]
Updated•8 years ago
|
Summary: Clear History for all containers → Add a mochitest to ensure Clear History clears data for all containers
Updated•8 years ago
|
Status: ASSIGNED → NEW
Updated•8 years ago
|
Assignee: tihuang → nobody
Whiteboard: [userContextId][OA-testing][domsecurity-active] → [userContextId][OA-testing][domsecurity-backlog]
Updated•8 years ago
|
Priority: P2 → P3
Whiteboard: [userContextId][OA-testing][domsecurity-backlog] → [userContextId][OA-testing][domsecurity-backlog2]
Updated•8 years ago
|
Priority: P3 → P2
Updated•8 years ago
|
Whiteboard: [userContextId][OA-testing][domsecurity-backlog2] → [userContextId][OA-testing][domsecurity-backlog2][tor-testing]
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jhao
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Summary: Add a mochitest to ensure Clear History clears data for all containers → Add a mochitest to ensure Sanitizer clears data for all containers
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8818197 [details] Bug 1270338 - Add a mochitest to ensure Sanitizer clears data for all containers. https://reviewboard.mozilla.org/r/98332/#review101478 Sorry for the delay. Thanks for answering my questions. This looks good. Please add a cache test.
Attachment #8818197 -
Flags: review?(tanvi) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•7 years ago
|
||
I added a test to ensure cache is cleared. I also removed the nested add_task in head.js so that I can add my own task after IsolationTestTools.runTest(). Baku, since Tanvi already r+'d, could you take a look?
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8818197 [details] Bug 1270338 - Add a mochitest to ensure Sanitizer clears data for all containers. https://reviewboard.mozilla.org/r/98332/#review103014
Attachment #8818197 -
Flags: review?(amarchesini) → review+
Comment 11•7 years ago
|
||
Pushed by jhao@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/21a56b3ad9e4 Add a mochitest to ensure Sanitizer clears data for all containers. r=baku,tanvi
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/21a56b3ad9e4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Comment 13•7 years ago
|
||
Jonathan, thanks for getting this done!
You need to log in
before you can comment on or make changes to this bug.
Description
•