Diff of /content/xbl/src/nsXBLBinding.cpp [21c1b0] .. [987e5d] Maximize Restore

Repo status: analyzing...

  Switch to side-by-side view

--- a/content/xbl/src/nsXBLBinding.cpp
+++ b/content/xbl/src/nsXBLBinding.cpp
@@ -1254,7 +1254,7 @@
     return false;
   }
 
-  nsIScriptGlobalObject* global = doc->GetScriptGlobalObject();
+  nsCOMPtr<nsIScriptGlobalObject> global = do_QueryInterface(doc->GetWindow());
   if (!global) {
     return false;
   }