Bug 998741 - Fix XULRunner builds; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 22 Apr 2014 14:58:19 -0400
changeset 198123 418c50532eea49db1b765db1db23bac93403ac08
parent 198122 139c2e8c264ff015779ca62b87b81f41396542be
child 198124 72661e0787418f3652200dc6c930947ad13f49dc
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs998741
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 998741 - Fix XULRunner builds; r=bsmedberg
embedding/tests/winEmbed/winEmbed.cpp
--- a/embedding/tests/winEmbed/winEmbed.cpp
+++ b/embedding/tests/winEmbed/winEmbed.cpp
@@ -1072,17 +1072,17 @@ nsresult AppCallbacks::CreateBrowserWind
            nsIWebBrowserChrome **aNewWindow)
 {
   WebBrowserChrome * chrome = new WebBrowserChrome();
   if (!chrome)
     return NS_ERROR_FAILURE;
 
   // the interface to return and one addref, which we assume will be
   // immediately released
-  CallQueryInterface(static_cast<nsIWebBrowserChrome*>(chrome), aNewWindow);
+  *aNewWindow = static_cast<nsIWebBrowserChrome*>(chrome);
   // now an extra addref; the window owns itself (to be released by
   // WebBrowserChromeUI::Destroy)
   NS_ADDREF(*aNewWindow);
 
   chrome->SetChromeFlags(aChromeFlags);
   chrome->SetParent(aParent);
 
   // Insert the browser