Re-enable test_formless_submit_navigation.html in cross-origin mode
Categories
(Toolkit :: Password Manager, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: enndeakin, Assigned: annyG)
References
Details
Attachments
(1 file)
These tests fail due to session history.
The failure occurs because nsDocShell::GetRootSessionHistory() returns null at https://searchfox.org/mozilla-central/rev/9b282b34b5aa0f836beb735656c55efb2cc4c617/docshell/base/nsDocShell.cpp#10242
Note that disabling that block of code causes the test to pass, although I assume that isn't the correct fix.
Comment 2•4 years ago
|
||
Neil, since pushState is fixed now, could you check if there's anything else blocking this?
Reporter | ||
Comment 3•4 years ago
|
||
Reporter | ||
Comment 4•4 years ago
|
||
The above patch fixes the test part. peterv said he would investigate the history part. It behaves differently in cross-origin mode within nsDocShell::OnNewURI at I described above.
Comment 5•4 years ago
|
||
Sorry, I wasn't clear in my question, Neil. Can you test with fission.sessionHistoryInParent pref and see if that fixes the issue? The history issue is fixed with this pref, and it will be enabled for Fission when bug 1656208 lands.
Reporter | ||
Comment 6•4 years ago
|
||
Can you test with fission.sessionHistoryInParent pref and see if that fixes the issue?
The test is still not fixed.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 7•4 years ago
|
||
Anny, can you test test_formless_submit_navigation.html and test_formless_submit_navigation_negative.html for (Fission+xorigin) with Neil's patch in this bug?
Assignee | ||
Comment 8•4 years ago
|
||
With Neil's patch and fission (that now includes the session history pref) and xorigin tests enabled , test_formless_submit_navigation.html
now passes on latest central.
test_formless_submit_navigation_negative.html
, however, is failing (but no longer hanging as is indicated in the manifest file) with the following errors
FAIL No formSubmissionProcessed should occur in this test
SimpleTest.ok@SimpleTest/SimpleTest.js:417:16
submissionProcessed@toolkit/components/passwordmgr/test/mochitest/test_formless_submit_navigation_negative.html?currentTestURL=toolkit%2Fcomponents%2Fpasswordmgr%2Ftest%2Fmochitest%2Ftest_formless_submit_navigation_negative.html&closeWhenDone=1&showTestReport=true&expected=pass:23:5
FAIL No formSubmissionProcessed should occur in this test
SimpleTest.ok@SimpleTest/SimpleTest.js:417:16
submissionProcessed@toolkit/components/passwordmgr/test/mochitest/test_formless_submit_navigation_negative.html?currentTestURL=toolkit%2Fcomponents%2Fpasswordmgr%2Ftest%2Fmochitest%2Ftest_formless_submit_navigation_negative.html&closeWhenDone=1&showTestReport=true&expected=pass:23:5
FAIL No formSubmissionProcessed should occur in this test
SimpleTest.ok@SimpleTest/SimpleTest.js:417:16
submissionProcessed@toolkit/components/passwordmgr/test/mochitest/test_formless_submit_navigation_negative.html?currentTestURL=toolkit%2Fcomponents%2Fpasswordmgr%2Ftest%2Fmochitest%2Ftest_formless_submit_navigation_negative.html&closeWhenDone=1&showTestReport=true&expected=pass:23:5
Neil, can you please look into these assertions failures?
Reporter | ||
Comment 9•4 years ago
|
||
This test test_formless_submit_navigation_negative.html loads a form and then navigates through history using history.back() and history.go(-1) and expects to not save filled in passwords in these cases. Normally, at
the value of webProgress.loadType is checked to see whether the load is due to a history navigation and returns early if so. With cross-origin mode disabled, the value is correctly LOAD_CMD_HISTORY.
With cross-origin mode enabled, the value is instead LOAD_CMD_NORMAL, so the form is saved instead and the popup appears, causing the test to fail.
So the issue here is likely that the web progress loadType is not being set correctly.
Reassigning needinfo, as I don't know who would be best able to fix this.
(Note: the other test test_formless_submit_navigation.html does indeed now work and could be enabled)
Comment 10•4 years ago
|
||
Thanks for the analysis, Neil. Anny will look into why the loadType isn't correct with cross-origin.
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Comment 11•4 years ago
|
||
I filed bug 1670137 on the remaining test test_formless_submit_navigation_negative.html
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•