Expand Cross-Origin-Opener-Policy tests
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: valentin, Assigned: valentin)
References
Details
Attachments
(2 files)
Bug 1521808 added some tests in toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
.
We need to expand the tests to include all permutations of the COOP header values and that "the header is honored for auxiliary browsing contexts, how it affects a top-level browsing context opened from a sandboxed iframe, whether it affects the browsing context name, etc"
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
•
|
||
In order to get the test to pass I also had to employ some hacks. Some of which might not be needed. Others might point to actual bugs.
- I wait for BrowserTestUtils.browserStopped instead of browserLoaded.
- I added a 20ms timeout after a process switch is performed.
- After waiting I use gBrowser.selectedBrowser instead of the previous browser object.
Without these I would get test timeouts on await ContentTask.spawn(... get process id )
, and even sometimes I would get the processID of the previous process, indicating that maybe the ContentTask.spawn was executed in the previous browser instead.
See bug 1541389.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D33329
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c350d0bc1e71
https://hg.mozilla.org/mozilla-central/rev/d833fd94e8e3
Description
•