<body> <div> <b id="b"><p><iframe id="f"></iframe><script> // p inside b triggers the adoption agency algorithm. alert(f.contentWindow); window.addEventListener('load', () => { alert(f.contentWindow); }) </script></b> Both of them say "undefined" but shouldn't. This is a major regression.
Already regressed in r207475.
Regressed in r203347.
Will test further back in the history once I'm in the office.
Created attachment 300933 [details] Demo
Wow, this bug exists in Safari 9!
Huh, maybe this never worked in Safari. I can even reproduce it in Safari 7.0.3
This seems to be fixed in Safari 15.5 on macOS 12.4 and consistent with other browsers like Chrome Canary 104 and Firefox Nightly 102. Attached test case (demo) shows two dialog with [object Window] and then shows frame on the webpage for all browsers. Since this seems to be fixed and consistent across all browsers. It should be marked as "Resolved Fixed" or "Resolved Invalid". Thanks!
Thank you for checking! We use "configuration changed" resolution when a bug goes away without a specific fix that we can point to.