Closed mtlynch closed 1 year ago
This seems to be specific to Firefox. I can't reproduce it in Chrome or Edge.
This happens in dev mode as well, so we don't even need a full build to repro this.
I think what's happening is that Firefox is somehow sharing resources between the original window and the popup. And it looks like this is the sequence:
It looks like Firefox tries to share resources between the original window and the popup, but after step (2), it garbage collects those resources, so the popup tries to re-use them but they're already garbage collected, which is causing the "can't access dead object" errors.
Adding noopener
to window.open
seems to fix it because it forces the popup to use independent resources.
I also notice that commenting out the window.location
call fixes it. And we can fix the issue by wrapping the window.location
call in a setTimeout(..., 500)
, but that's flakier because we're just guessing how long it will take for the popup to load.
Description
Going to View > Dedicated Window pops an empty window:
Repro steps
Logs
The console logs include lots of "can't access dead object" errors:
The first line in the stacktrace points to this line:
Notes
This is on a branch build to test something else, but I suspect it's unrelated to the branch changes. I'll try re-testing on a master build.