forked from mirrors/gecko-dev
Make the features parameter of window.open just a condition for whether to open a popup or a new tab. Also remove dom.disable_window_open_feature.* prefs. Differential Revision: https://phabricator.services.mozilla.com/D65926 --HG-- extra : moz-landing-system : lando
14 lines
418 B
JavaScript
14 lines
418 B
JavaScript
/**
|
|
* Given some nsIDOMWindow for a window running in the parent
|
|
* process, return the nsIWebBrowserChrome chrome flags for
|
|
* the associated XUL window.
|
|
*
|
|
* @param win (nsIDOMWindow)
|
|
* Some window in the parent process.
|
|
* @returns int
|
|
*/
|
|
function getParentChromeFlags(win) {
|
|
return win.docShell.treeOwner
|
|
.QueryInterface(Ci.nsIInterfaceRequestor)
|
|
.getInterface(Ci.nsIAppWindow).chromeFlags;
|
|
}
|