Closed Bug 1589108 Opened 28 days ago Closed 23 days ago

Assert that the current realm's global is not gray on entry to the JS API

Categories

(Core :: JavaScript: GC, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

This came up in bug 1399866 where we use AutoRealmUnchecked to enter a gray realm when remapping wrappers and then call the embedding remap hook. This can enter the JS API still in the gray realm.

We can prevent this by adding a check to the context checks we do at most API entry points.

Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2c8041858580
Assert that the current realm's global is not gray on entry to the JS API r=jandem
Status: NEW → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.