Closed Bug 671080 Opened 10 years ago Closed 10 years ago
Add assertion checking to ensure no unintentional cross-compartment wrappers are created
Bug 670702 has evidence that some non-cross compartment JSWrappers have pointers outside their compartment. Blake confirms that this is not expected. This patch adds some additional opt-mode assertions to try and narrow down the code creating these pointers. I'm sorry about how gross the check is. Unfortunately, we're not allowed to get the compartment for static strings, since they're not part of the GC heap.
Since the priv field can't be a string, this patch is shorter.
Attachment #545485 - Flags: review?(mrbkap) → review+
10 years ago
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.