Closed Bug 1645908 Opened 7 months ago Closed 7 months ago

Eliminate gratuitous use of dom::danger::GetJSContext() in ForceShrinkingGC()

Categories

(Core :: XPConnect, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(1 file)

This method calls dom::danger::GetJSContext(), but it is an XPIDL method, so it could just add the [implicit_jscontext] property to the .idl file.

Oddly enough, nsXPCComponents_Utils::ForceGC(), which is an almost identical method, uses the less-"danger::"-ous approach of calling XPCJSContext::Get()->Context(), so I can make that use implicit_jscontext at the same time.

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c088d48d1e61
Eliminate gratuitous use of dom::danger::GetJSContext() in ForceShrinkingGC(). r=kmag
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.