Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 739019: Allow chrome code to use PowerManager. r=cjones

  • Loading branch information...
commit db7f9a12905274fb797c824fc8a6be856082cb2b 1 parent 3869916
@kanru kanru authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 dom/power/PowerManager.cpp
View
4 dom/power/PowerManager.cpp
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.