Closed Bug 1597653 Opened 5 years ago Closed 5 years ago

test_bug453650.xhtml uses various unknown properties Ci.<interface>.equals

Categories

(Core :: Layout, defect)

defect
Not set
normal
Points:
1

Tracking

()

RESOLVED FIXED
mozilla72
Iteration:
72.3 - Nov 18 - Dec 1
Tracking Status
firefox72 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

Following the recent move of the test file from xul to xhtml, ESLint is able to process more of it. I have a script that checks for undefined Ci.* properties in use, and it picked up this bit:

      QueryInterface: function (iid) {
        if (Ci.nsIReflowObserver.equals(iid) ||
            Ci.nsISupportsWeakReference.equals(iid) ||
            Ci.nsISupports.equals(iid))
          return this;
        throw Cr.NS_ERROR_NO_INTERFACE;
      },

The interfaces have either never supported .equals or only did so a long time ago, so these are all uses of an unknown property. In addition, this should just be changed to use ChromeUtils.generateQI.

Change the QueryInterface function to use ChromeUtils.generateQI.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6290bf0c39f7 Fix uses of unknown property 'equals' in test_bug453650.xhtml. r=smaug
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Depends on: 453650
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: