Skip to content

Commit

Permalink
Fix about: registration for bug 1514936 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhammond authored Jun 1, 2022
1 parent fe668f2 commit e33b4a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data/AboutSyncRedirector.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Cu.import("resource://gre/modules/Services.jsm");

const INDEX_HTML = "chrome://aboutsync/content/index.html";

const generateQI = XPCOMUtils.generateQI || ChromeUtils.generateQI;
const generateQI = ChromeUtils.generateQI;

const AboutSyncRedirector = {
QueryInterface: generateQI([Ci.nsIAboutModule]),
Expand All @@ -29,10 +29,10 @@ const AboutSyncRedirector = {
return channel;
},

createInstance(outer, iid) {
if (outer) {
throw Components.results.NS_ERROR_NO_AGGREGATION;
}
createInstance(p1, p2) {
// Pre Firefox 102, this signature was `createInstance(outer, iid)`
// In 102 (bug 1514936) it became `createInstance(iid)`.
let iid = "NS_ERROR_NO_AGGREGATION" in Components.results ? p2 : p1;
return this.QueryInterface(iid);
},

Expand Down

0 comments on commit e33b4a1

Please sign in to comment.