Setting window.opener to null allows process swapping in cases that are not web-compatible, because the opener may still have a handle to the WindowProxy after calling window.open().
<rdar://problem/44422725>
Created attachment 349680 [details] Patch
Comment on attachment 349680 [details] Patch r=me
Created attachment 349695 [details] Patch
Created attachment 349698 [details] Patch
Created attachment 349701 [details] Patch
Comment on attachment 349701 [details] Patch Clearing flags on attachment: 349701 Committed r235994: <https://trac.webkit.org/changeset/235994>
All reviewed patches have been landed. Closing bug.
The new test added in: https://trac.webkit.org/changeset/235994/webkit is a flakey timeout: http/tests/navigation/window-open-cross-origin-then-navigated-back-same-origin.html issue is occurring on WK1 Mac History: https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fnavigation%2Fwindow-open-cross-origin-then-navigated-back-same-origin.html Diff: https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r236145%20(9582)/http/tests/navigation/window-open-cross-origin-then-navigated-back-same-origin-pretty-diff.html
(In reply to Truitt Savell from comment #9) > The new test added in: https://trac.webkit.org/changeset/235994/webkit > > is a flakey timeout: > http/tests/navigation/window-open-cross-origin-then-navigated-back-same- > origin.html > > issue is occurring on WK1 Mac > > History: > https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard. > html#showAllRuns=true&tests=http%2Ftests%2Fnavigation%2Fwindow-open-cross- > origin-then-navigated-back-same-origin.html > > Diff: > https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/ > r236145%20(9582)/http/tests/navigation/window-open-cross-origin-then- > navigated-back-same-origin-pretty-diff.html Will investigate, thanks.