Bug 244965 - untrusted web content can use the "chrome" flag to window.open() r=danm sr=jst

This commit is contained in:
bsmedberg%covad.net 2004-06-02 12:36:51 +00:00
Родитель 20af7b885d
Коммит 9bf505bc5f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;