mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 739019: Allow chrome code to use PowerManager. r=cjones
This commit is contained in:
parent
14d1cfa7ce
commit
e1064ff503
@ -90,6 +90,10 @@ PowerManager::Shutdown()
|
||||
nsresult
|
||||
PowerManager::CheckPermission()
|
||||
{
|
||||
if (nsContentUtils::IsCallerChrome()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsPIDOMWindow> win = do_QueryReferent(mWindow);
|
||||
NS_ENSURE_STATE(win);
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(win->GetExtantDocument());
|
||||
|
Loading…
Reference in New Issue
Block a user