Closed
Bug 1512410
Opened 6 years ago
Closed 6 years ago
Need to check object realm when doing a NewObjectCache lookup
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(2 files)
Enabling same-compartment-realms for system realms uncovered a fun bug: the NewObjectCache lookup is based on clasp + one of proto/group/global. If we do the lookup based on the proto, the cache can incorrectly return a cross-realm object with same-compartment-realms. I'll try to write a shell test.
Assignee | ||
Comment 1•6 years ago
|
||
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c24a1c1237ba part 1 - Add a realm check to the NewObjectCache to fix a bug with same-compartment realms. r=luke https://hg.mozilla.org/integration/autoland/rev/09493e80dbe7 part 2 - Don't create a TypeNewScript for cross-realm constructors, add more asserts. r=luke
Comment 4•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c24a1c1237ba https://hg.mozilla.org/mozilla-central/rev/09493e80dbe7
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•