UbiNode changes for same-compartment realms

RESOLVED FIXED in Firefox 62

Status

()

enhancement
RESOLVED FIXED
Last year
3 months ago

People

(Reporter: jandem, Assigned: jandem)

Tracking

unspecified
mozilla62
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox62 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

Last year
Posted patch PatchSplinter Review
Some UbiNode changes:

* Nodes that have a compartment() now also have a realm().

* realm() returns nullptr for cross-compartment wrappers, because they are shared by all realms within the compartment. I added a jsapi-test for this.

* Debugger::ObjectQuery checks the realm() now. We still want to check the compartment too, because we can use that to abandonReferent() - we can't abandon based on the realm check because same-compartment realms can have direct references to each other (the whole point of having same-compartment realms) so we could miss things if we did that.
Attachment #8981572 - Flags: review?(nfitzgerald)
Comment on attachment 8981572 [details] [diff] [review]
Patch

Review of attachment 8981572 [details] [diff] [review]:
-----------------------------------------------------------------

Wonderful! Thanks jandem!
Attachment #8981572 - Flags: review?(nfitzgerald) → review+

Comment 2

Last year
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee68c73f661b
Some UbiNode changes for same-compartment realms. r=fitzgen

Comment 3

Last year
bugherder
https://hg.mozilla.org/mozilla-central/rev/ee68c73f661b
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.