Bug 1597653 - Fix uses of unknown property 'equals' in test_bug453650.xhtml. r=smaug

Change the QueryInterface function to use ChromeUtils.generateQI.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2019-11-19 15:14:50 +00:00
parent 9dcdda7368
commit cc6a714098

View File

@ -75,13 +75,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=453650
done();
},
QueryInterface: function (iid) {
if (Ci.nsIReflowObserver.equals(iid) ||
Ci.nsISupportsWeakReference.equals(iid) ||
Ci.nsISupports.equals(iid))
return this;
throw Cr.NS_ERROR_NO_INTERFACE;
},
QueryInterface: ChromeUtils.generateQI([
Ci.nsIReflowObserver,
Ci.nsISupportsWeakReference,
]),
};
docShell.addWeakReflowObserver(observer);