The attached patch doesn't actually fix some cases (notably bug 1659844 IIRC). I think we'll need to track the original `window.arguments` and use that in the Services.ww.openWindow() call when opening a window for session restore. There was some chat about this in the #fission channel on Matrix.
Bug 1564738 Comment 14 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The attached patch doesn't actually fix some cases (notably bug 1659844 IIRC). I think we'll need to track the original `window.arguments` and use that in the Services.ww.openWindow() call when opening a window for session restore. There was some chat about this in the #fission channel on Matrix. Edit: per discussion, Session Restore may just need to track [more window features](https://searchfox.org/mozilla-central/rev/49b6e60550243b4b4d71d6ab35a3ff2b9a9f7c69/browser/components/sessionstore/SessionStore.jsm#63-76) [here](https://searchfox.org/mozilla-central/rev/49b6e60550243b4b4d71d6ab35a3ff2b9a9f7c69/browser/components/sessionstore/SessionStore.jsm#3764-3769).
The attached patch doesn't actually fix some cases (notably bug 1659844 IIRC). I think we'll need to track the original `window.arguments` and use that in the Services.ww.openWindow() call when opening a window for session restore. There was some chat about this in the #fission channel on Matrix. Edit: per discussion, Session Restore may just need to track [more window features](https://searchfox.org/mozilla-central/rev/49b6e60550243b4b4d71d6ab35a3ff2b9a9f7c69/browser/components/sessionstore/SessionStore.jsm#63-76) [here](https://searchfox.org/mozilla-central/rev/49b6e60550243b4b4d71d6ab35a3ff2b9a9f7c69/browser/components/sessionstore/SessionStore.jsm#3764-3769), and use those when opening the new window for restore.