mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00

With multiple windows, a browsing context being active doesn't guarantee being in the active window, so we explicitly check for that. We need to introduce an special case for the initial document because the initial document in the active window requesting focus breaks focusing the urlbar on a new window. Differential Revision: https://phabricator.services.mozilla.com/D104326
5 lines
279 B
HTML
5 lines
279 B
HTML
<!doctype html>
|
|
<a id="link-1" href="?1" onclick="window.open(this.href, 'childWin', 'height=300,width=600'); return false;">Open in window.</a>
|
|
<br>
|
|
<a id="link-2" href="?2" onclick="window.open(this.href, 'childWin', 'height=300,width=600'); return false;">Open in window.</a>
|