mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
9dcdda7368
commit
cc6a714098
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user