This document describes how the window.open
interacts with where the newly created
browsing context
is opened.
The purpose of this document are the following:
window.open
, which is tracked in the proposalThis document is created based on observation (with testcase) and some code reading, if you found any issue, feel free to file an issue.
After "step 10. Let new be true if windowType is either...", insert:
location
"] to true.menubar
"] to true.resizable
"] to true.scrollbars
"] to true.status
"] to true.toolbar
"] to true.width
"] to false.height
"] to false.location
"] to false.menubar
"] to false.resizable
"] to true.scrollbars
"] to false.status
"] to false.toolbar
"] to false.width
"] to false.height
"] to false.location
", then:
location
"] to the result of parsing tokenizedFeatures["location
"] as a boolean feature.menubar
", then:
menubar
"] to the result of parsing tokenizedFeatures["menubar
"] as a boolean feature.resizable
", then:
resizable
"] to the result of parsing tokenizedFeatures["resizable
"] as a boolean feature.scrollbars
", then:
scrollbars
"] to the result of parsing tokenizedFeatures["scrollbars
"] as a boolean feature.status
", then:
status
"] to the result of parsing tokenizedFeatures["status
"] as a boolean feature.toolbar
", then:
toolbar
"] to the result of parsing tokenizedFeatures["toolbar
"] as a boolean feature.width
", then:
width
"] to trueheight
", then:
height
"] to truelocation
"] and windowFeature["toolbar
"] are both false, then:
menubar
"] is false, then:
resizable
"] is false, then:
scrollbars
"] is false, then:
status
"] is false, then:
width
"] is true, then:
location
"] is false, then:
menubar
"] is false, then:
toolbar
"] is false, then:
resizable
"] is false, then:
scrollbars
"] is false, then:
status
"] is false, then:
location
"] and windowFeature["toolbar
"] are both false, then:
menubar
"] is false, then:
resizable
"] is false, then:
scrollbars
"] is false, then:
status
"] is false, then:
width
"] is true, then:
scrollbars
"] is false, then:
status
"] is false, then:
toolbar
"] is false, then:
height
"] is true, then:
browser.link.open_newwindow
pref is 2, then:
tokenizedFeatures and windowFeature don't affect UI parts. except position and size (step 10 in window open steps).
tokenizedFeatures and windowFeature don't affect UI parts.