Closed Bug 976151 Opened 9 years ago Closed 9 years ago
Anti eval/Function() check during wrapping should use |subsumes|
We have this just-in-case check against creating a cross-compartment wrapper to either eval or the Function constructor from a privileged page. Currently, this just checks if the wrapper would be a COW, but that's suboptimal for two reasons: (1) When we implement Xrays-to-Functions, this check will be wrong. (2) Now that we have asymmetric privilege relationships with non-chrome principals (i.e nsIExpandedPrincipal), we want the logic to cover all non-subsuming cases, not just content->chrome. This isn't a security problem, just the improvement of a belt-and-braces check. I'll write up a patch.
Attachment #8380825 - Flags: review?(gkrizsanits) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.