Closed Bug 718733 Opened 10 years ago Closed 10 years ago

Allow JSAPI tests with principals

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

Attachments

(1 file)

Currently, the compartments and global objects that jsapi-test creates have a null principal. For some tests, it is useful to be able to have principals. I could override createGlobal, but it turns out that it's pretty easy to add this directly to tests.h.
Attached patch Proposed fixSplinter Review
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #589235 - Flags: review?(jorendorff)
Attachment #589235 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/mozilla-central/rev/04af5f29e0bf
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.