Closed Bug 1545831 Opened 5 years ago Closed 5 years ago

Use generateQI in a few more places

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

A search for "QueryInterface :" finds a few places that still manually implement QI. I don't know why kmag's mass conversion from before missed these.

(In reply to Andrew McCreight [:mccr8] from comment #0)

I don't know why kmag's mass conversion from before missed these.

I'm not sure either. I know there were a few plain mochitests that used SpecialPowers to mock components that I gave up trying to make generateQI work with. The amount of security wrapper craziness involved in such things is just absurd...

I think I probably skipped the remaining test-only uses of manual QI functions because it wasn't obvious which ones would break, and fixing them didn't seem super critical.

This also finds some more, but at 140 or so results, is probably past the point where it is reasonable to write a patch by hand. https://searchfox.org/mozilla-central/search?q=QueryInterface%3A+f&path=

But yeah, it does looks like either devtools or tests stuff, so fixing it won't have a direct impact.

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0719cb95e437
Use ChromeUtils.generateQI in a few more places. r=kmag
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: