Bug 1583378 - Remove unneded warning in do_QueryActor. r=kmag
authorAgi Sferro <agi@sferro.dev>
Mon, 23 Sep 2019 22:32:37 +0000
changeset 494617 3c21d1d12882e5b655e188635e072fae9ef20f6d
parent 494616 b4ec351c24c65dd4680771affe7a5a7e54f52e42
child 494618 7ee39390e61f41b3f280f4eb39e2e9413e5c2f4e
push id96119
push userasferro@mozilla.com
push dateMon, 23 Sep 2019 22:41:08 +0000
treeherderautoland@3c21d1d12882 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1583378
milestone71.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 1583378 - Remove unneded warning in do_QueryActor. r=kmag Differential Revision: https://phabricator.services.mozilla.com/D46870
dom/ipc/nsQueryActor.h
--- a/dom/ipc/nsQueryActor.h
+++ b/dom/ipc/nsQueryActor.h
@@ -12,17 +12,17 @@
 
 class MOZ_STACK_CLASS nsQueryActor final : public nsCOMPtr_helper {
  public:
   nsQueryActor(const nsDependentString aActorName, nsPIDOMWindowOuter* aWindow)
       : mActorName(aActorName), mWindow(aWindow) {}
 
   virtual nsresult NS_FASTCALL operator()(const nsIID& aIID,
                                           void** aResult) const override {
-    if (NS_WARN_IF(!mWindow) || NS_WARN_IF(!mWindow->GetCurrentInnerWindow())) {
+    if (NS_WARN_IF(!mWindow) || !mWindow->GetCurrentInnerWindow()) {
       return NS_ERROR_NO_INTERFACE;
     }
 
     RefPtr<mozilla::dom::WindowGlobalChild> wgc(
         mWindow->GetCurrentInnerWindow()->GetWindowGlobalChild());
     if (!wgc) {
       return NS_ERROR_NO_INTERFACE;
     }