Add test case for clearing CORS preflight cache between private browsing sessions
Categories
(Core :: DOM: Networking, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: manuel, Assigned: manuel)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
Follow up on Bug 1738150.
Opening a follow up, because it is a rather big task. I made that the cache is cleared manually by opening the test testing/web-platform/tests/cors/preflight-cache via ./mach test testing/web-platform/tests/cors/preflight-cache.htm
in the private browsing tab and adding print statement at the relevant places.
Automatically executing that test is a bit harder, thats why I opened this follow up bug. Additional information: https://phabricator.services.mozilla.com/D133196#4379356
I'll probably have to figure out how to execute the web-platform test in the private browsing window and check that the cache gets cleared when closing the private browsing window.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
I'll probably have to figure out how to execute the web-platform test in the private browsing window and check that the cache gets cleared when closing the private browsing window.
I think it's not that complicated.
The test steps in my mind are:
- Create a private window (
await BrowserTestUtils.openNewBrowserWindow({ private: true });
). - Test if the CORS cache works with the private window. This function seems to do the trick.
- Close the private window.
- Test if CORS cache from the private window is cleared.
Maybe add a new task in toolkit/components/cleardata/tests/browser/browser_preflight_cache.js
is easier than creating a new test file.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Pushed by mbucher@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7b4c655e6965 Test that CORS-preflight cache get cleared after last private browsing window closes r=necko-reviewers,valentin
Comment 4•2 years ago
|
||
bugherder |
Description
•