зеркало из https://github.com/mozilla/gecko-dev.git
Bug 244965 - untrusted web content can use the "chrome" flag to window.open() r=danm sr=jst
This commit is contained in:
Родитель
20af7b885d
Коммит
9bf505bc5f
|
@ -1317,7 +1317,7 @@ PRUint32 nsWindowWatcher::CalculateChromeFlags(const char *aFeatures,
|
|||
prevents untrusted script from opening modal windows in general
|
||||
while still allowing alerts and the like. */
|
||||
if (!aChromeURL)
|
||||
chromeFlags &= ~nsIWebBrowserChrome::CHROME_MODAL;
|
||||
chromeFlags &= ~(nsIWebBrowserChrome::CHROME_MODAL | nsIWebBrowserChrome::CHROME_OPENAS_CHROME);
|
||||
}
|
||||
|
||||
return chromeFlags;
|
||||
|
|
Загрузка…
Ссылка в новой задаче