Commit 502bc1fe authored by Masatoshi Kimura's avatar Masatoshi Kimura
Browse files

Bug 1601235 - Remove the second arg of nsIXULBrowserWindow::SetOverLink. r=bzbarsky

Differential Revision: https://phabricator.services.mozilla.com/D55946

--HG--
extra : moz-landing-system : lando
parent 6ec41d71
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5136,7 +5136,7 @@ var XULBrowserWindow = {
    StatusPanel.update();
  },

  setOverLink(url, anchorElt) {
  setOverLink(url) {
    if (url) {
      url = Services.textToSubURI.unEscapeURIForUI("UTF-8", url);

@@ -5370,7 +5370,7 @@ var XULBrowserWindow = {
    var location = aLocationURI ? aLocationURI.spec : "";

    this.hideOverLinkImmediately = true;
    this.setOverLink("", null);
    this.setOverLink("");
    this.hideOverLinkImmediately = false;

    // We should probably not do this if the value has changed since the user
+1 −1
Original line number Diff line number Diff line
@@ -1129,7 +1129,7 @@ var PlacesUIUtils = {
    // unload event happens after the browser's one.  In this case
    // top.XULBrowserWindow has been nullified already.
    if (win.top.XULBrowserWindow) {
      win.top.XULBrowserWindow.setOverLink(url, null);
      win.top.XULBrowserWindow.setOverLink(url);
    }
  },
};
+2 −2
Original line number Diff line number Diff line
@@ -1659,12 +1659,12 @@ PlacesToolbar.prototype = {
      button._placesNode &&
      PlacesUtils.nodeIsURI(button._placesNode)
    ) {
      window.XULBrowserWindow.setOverLink(aEvent.target._placesNode.uri, null);
      window.XULBrowserWindow.setOverLink(aEvent.target._placesNode.uri);
    }
  },

  _onMouseOut: function PT__onMouseOut(aEvent) {
    window.XULBrowserWindow.setOverLink("", null);
    window.XULBrowserWindow.setOverLink("");
  },

  _onMouseDown: function PT__onMouseDown(aEvent) {
+2 −2
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@
        }

        if (linkURI) {
          window.XULBrowserWindow.setOverLink(linkURI, null);
          window.XULBrowserWindow.setOverLink(linkURI);
        }
      }
    }
@@ -401,7 +401,7 @@
      }

      if (window.XULBrowserWindow) {
        window.XULBrowserWindow.setOverLink("", null);
        window.XULBrowserWindow.setOverLink("");
      }
    }

+1 −1
Original line number Diff line number Diff line
@@ -2027,7 +2027,7 @@ mozilla::ipc::IPCResult BrowserParent::RecvSetLinkStatus(
    return IPC_OK();
  }

  xulBrowserWindow->SetOverLink(aStatus, nullptr);
  xulBrowserWindow->SetOverLink(aStatus);

  return IPC_OK();
}
Loading