Closed Bug 410851 Opened 17 years ago Closed 17 years ago

Expose faster version of GetSubjectPrincipal().

Categories

(Core :: Security: CAPS, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: jst, Assigned: jst)

References

Details

(Keywords: perf)

Attachments

(1 file)

Right now, callers of GetSubjectPrincipal() that have the right JSContext at hand already don't have a way to pass that in to caps when getting the subject principal. In stead, we end up spending time looking up the current context etc when we really don't need to. This is especially important in IsWrapperSameOrigin() in the cross origin wrapper code. See attached patch for a fix.
Flags: blocking1.9+
Attachment #295435 - Flags: superreview?(mrbkap)
Attachment #295435 - Flags: review?(mrbkap)
Version: unspecified → Trunk
Attachment #295435 - Flags: superreview?(mrbkap)
Attachment #295435 - Flags: superreview+
Attachment #295435 - Flags: review?(mrbkap)
Attachment #295435 - Flags: review+
Fix checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 417852
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: