browser_webconsole_show_subresource_security_errors.js fails when run twice in the same browser
Categories
(DevTools :: Console, task)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
When browser_webconsole_show_subresource_security_errors.js runs a second time in the same browser (the upcoming mochitest-repeat jobs, or test-verify), test-subresource-security-error.js comes from the HTTP cache. STS headers are only processed on network responses, so the expected "Strict-Transport-Security: The site specified a header that could not be parsed successfully." warning is not logged and the test fails with waitFor findWarningMessage(hud, sample_msg) timed out.
The fix serves the script with Cache-Control: no-store and removes the test's skip-if = ["verify"], which had the same cause.
| Assignee | ||
Comment 1•23 days ago
|
||
STS headers are only processed on network responses, so when the test runs a second time in the same browser, the script comes from the HTTP cache and no warning is logged. This is also why the test was skipped in test-verify.
Comment 2•22 days ago
|
||
that looks like an actual bug, not something that should be handled in the test right? Like, if the request comes from the cache, but you didn't have the console open for the first time you the request was made, you'd still want to see the error message.
Tom, do you think there's an easy way to send the error message even when this comes from the cache?
Comment 3•20 days ago
|
||
This doesn't look super easy to fix and I think this warning is actually most useful when actually doing a network connection. I would suggest filing a new bug.
Comment 4•15 days ago
|
||
(In reply to Tom Schuster [:tschuster] from comment #3)
This doesn't look super easy to fix and I think this warning is actually most useful when actually doing a network connection. I would suggest filing a new bug.
Filed bug 2093967
Updated•15 days ago
|
Comment 6•15 days ago
|
||
| bugherder | ||
Updated•5 days ago
|
Description
•