Document discarded unnecessarily
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: jugglinmike, Unassigned)
Details
Firefox fails the web platform test, websockets/unload-a-document/002.html
[1] because it discards a document in which a WebSocket connection has been
opened and closed. Although removal of documents from the session history is at
the UA's discretion, I expect this is a bug for a few reasons:
- the document is consistently discarded under these conditions
- the document is consistently persisted if the WebSocket connection is not
opened - the specification text surrounding this condition is complex [2] [3]
The discussion which motivated this bug report is available at [4]
[1] https://github.com/web-platform-tests/wpt/blob/3625714dda1ad6aea9adea34455b9a61d5ac94ab/websockets/unload-a-document/002.html
[2] https://html.spec.whatwg.org/#unloading-document-cleanup-steps
[3] https://html.spec.whatwg.org/#make-disappear
[4] https://github.com/web-platform-tests/wpt/issues/16359
Comment 1•6 years ago
|
||
My reading of the GitHub thread is that our behavior is expected. What am I missing?
Comment 2•6 years ago
|
||
Currently the HTML Standard only says a document is not salvageable if the WebSocket connection is still open. But this test closes it iirc, so that doesn't apply. There's nothing else in the test that would make the document not salvageable.
Updated•6 years ago
|
Updated•2 years ago
|
Description
•