Bug 274088 - alwaysRaised/alwaysLowered window.open feature incorrectly disallowed to content script. r=neil

--HG--
extra : rebase_source : ba682a68f728cb3c9e7ca9b3e4395e868d5198a5
This commit is contained in:
Saint Wesonga 2009-12-18 20:42:55 +01:00
Родитель d1fa24c4ab
Коммит d40cc44236
1 изменённых файлов: 0 добавлений и 9 удалений

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

@ -263,15 +263,6 @@ NS_IMETHODIMP nsXULWindow::SetZLevel(PRUint32 aLevel)
}
}
// disallow user script
nsCOMPtr<nsIScriptSecurityManager> secMan =
do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID);
if (!secMan)
return NS_ERROR_FAILURE;
PRBool inChrome;
if (NS_FAILED(secMan->SubjectPrincipalIsSystem(&inChrome)) || !inChrome)
return NS_ERROR_FAILURE;
// do it
mediator->SetZLevel(this, aLevel);
PersistentAttributesDirty(PAD_MISC);