зеркало из https://github.com/mozilla/gecko-dev.git
Bug 274088 - alwaysRaised/alwaysLowered window.open feature incorrectly disallowed to content script. r=neil
--HG-- extra : rebase_source : ba682a68f728cb3c9e7ca9b3e4395e868d5198a5
This commit is contained in:
Родитель
d1fa24c4ab
Коммит
d40cc44236
|
@ -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
|
// do it
|
||||||
mediator->SetZLevel(this, aLevel);
|
mediator->SetZLevel(this, aLevel);
|
||||||
PersistentAttributesDirty(PAD_MISC);
|
PersistentAttributesDirty(PAD_MISC);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче