diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index 8337c8c17ad..7529bbbcc8d 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -304,8 +304,8 @@ function RegisterTabOpenObserver() } }; - const service = - Components.classes["@mozilla.org/observer-service;1"].getService(); + const service = Components.classes["@mozilla.org/observer-service;1"] + .getService(Components.interfaces.nsIObserverService); service.addObserver(observer, "open-new-tab-request", false); }