Enable test_bug927196.html on Fission
Categories
(Core :: DOM: Networking, defect, P3)
Tracking
()
Fission Milestone | M6c |
Tracking | Status | |
---|---|---|
firefox82 | --- | affected |
People
(Reporter: smaug, Assigned: mbrodesser-Igalia)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file, 1 obsolete file)
At least locally the test passes with Fission
Reporter | ||
Comment 1•4 years ago
|
||
Er, I didn't test xorigin .
Reporter | ||
Comment 2•4 years ago
|
||
...but still passes with --enable-xorigin-tests
Reporter | ||
Comment 3•4 years ago
|
||
Reporter | ||
Comment 4•4 years ago
|
||
Reporter | ||
Comment 5•4 years ago
|
||
Lovely, this fails on try, but not locally.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
•
|
||
Also couldn't reproduce this locally, but it still fails on try.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
•
|
||
The failure is reproducible locally when executing the test two times in a row (e.g., with running ./mach mochitest --enable-xorigin-tests --enable-fission --run-until-failure --keep-open=false ./dom/base/test/test_bug927196.html
). Not reproducible if run without xorigin iframes and Fission, hence presumably not a test-code issue.
Comment 8•4 years ago
|
||
It fails with XMLHttpRequest should not be mozSystem (2) - got true, expected false(In reply to Mirko Brodesser (:mbrodesser) from comment #7)
The failure is reproducible locally when executing the test two times in a row (e.g., with running
./mach mochitest --enable-xorigin-tests --enable-fission --run-until-failure --keep-open=false ./dom/base/test/test_bug927196.html
). Not reproducible if run without xorigin iframes and Fission, hence presumably not a test-code issue.
Thanks, Mirko for the repro. It could still be a test issue, if it is because of test making incorrect assumptions or not waiting enough, etc.
It fails with <XMLHttpRequest should not be mozSystem (2) - got true, expected false>
. What could be the cause of this?
Assignee | ||
Comment 9•4 years ago
|
||
:neha: I'm looking into it.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years ago
|
||
Assignee | ||
Comment 11•4 years ago
•
|
||
The problem seems to be in XMLHttpRequestMainThread::InitParameters
:
permission != nsIPermissionManager::ALLOW_ACTION
is true when the test doesn't fail, and false when it fails.
Assignee | ||
Comment 12•4 years ago
•
|
||
SpecialPowers.pushPermissions
seems to be buggy, it doesn't always remove the pushed permissions (manually removing them using SpecialPowers.removePermission
leads to passing runs of the STR described in c7).
Not necessarily part of this bug, but _delayCallbackTwice
looks suspicious.
Presumably, the bug is that _applyPermissions
sends and async message instead of waiting for a promise.
SimpleTest.finish()
seems to call the wrong instance of SpecialPowers
. At least _permissionUndoStack
is empty when flushing, but it's filled in pushPermissions
.
Assignee | ||
Comment 13•4 years ago
|
||
Helps understanding it.
Comment 14•4 years ago
|
||
The pushPermissions
/flushPermissions
issue will be fixed by bug 1658791.
Comment 15•4 years ago
|
||
Based on the analysis in comment 12, it's a SpecialPowers issue and therefore, should be M6c.
Comment 16•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14b95c9e82c4 document `SpecialPowers.removePermission`. r=kmag
Comment 17•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•