Bug 1894950 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Bug 1189389 disallowed cloning DOM objects in GetDataAsBase64 and we still use that for session history in https://searchfox.org/mozilla-central/rev/386c7f17b2421374930a447c9f424910551b659d/toolkit/modules/sessionstore/SessionHistory.sys.mjs#303. Thus the behavior is:

1. Open https://example.com
2. `pushState(new Blob(['foo'], undefined, '#blob');` on devtools
3. Close the tab (Ensure there's another tab so that this won't close the browser). This logs:
   >JavaScript error: resource://gre/modules/sessionstore/SessionHistory.sys.mjs, line 303: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStructuredCloneContainer.getDataAsBase64]
4. Restore the tab

Expected: There should be the corresponding navigation history
Actual: It's gone.
Bug 1189389 disallowed cloning DOM objects in GetDataAsBase64 and we still use that for session history in https://searchfox.org/mozilla-central/rev/386c7f17b2421374930a447c9f424910551b659d/toolkit/modules/sessionstore/SessionHistory.sys.mjs#303. Thus the behavior is:

1. Open https://example.com
2. `pushState(new Blob(['foo'], undefined, '#blob');` on devtools
3. Close the tab (Ensure there's another tab so that this won't close the browser). This logs:
   >JavaScript error: resource://gre/modules/sessionstore/SessionHistory.sys.mjs, line 303: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStructuredCloneContainer.getDataAsBase64]
4. Restore the tab

Expected: There should be the corresponding navigation history, as on Chrome
Actual: It's gone.

Back to Bug 1894950 Comment 0