Make it possible to get the system principal from script

RESOLVED FIXED in mozilla2.0b7

Status

()

P1
normal
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Tracking

Trunk
mozilla2.0b7
x86
Mac OS X
Points:
---
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

I don't see a reason to prevent this, and it's needed to properly initialize things like DOMParser to allow it to parse XUL in XPCOM components, I think.
(Assignee)

Comment 1

8 years ago
Created attachment 471486 [details] [diff] [review]
Proposed patch

This is needed to handle parsing XUL from XPCOM components after sicking's changes.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #471486 - Flags: review?(jst)

Updated

8 years ago
Attachment #471486 - Flags: review?(jst) → review+
(Assignee)

Comment 2

8 years ago
Comment on attachment 471486 [details] [diff] [review]
Proposed patch

Requesting approval for 2.0 for this simple change.
Attachment #471486 - Flags: approval2.0?
(Assignee)

Updated

8 years ago
Whiteboard: [need approval]
(Assignee)

Updated

8 years ago
Priority: -- → P1

Updated

8 years ago
Attachment #471486 - Flags: approval2.0? → approval2.0+
(Assignee)

Updated

8 years ago
Whiteboard: [need approval] → [need landing]

Comment 3

8 years ago
I assume that a UUID rev is not needed here, is that the case?
(Assignee)

Comment 4

8 years ago
That's correct; this is a binary-compatible change, and from script it's easy to tell apart the two versions of the interface by using "in".

(All assuming no one is implementing nsIScriptSecurityManager in JS, but if they are they're already So Broken.)
(Assignee)

Comment 5

8 years ago
Pushed http://hg.mozilla.org/mozilla-central/rev/9eb471c9042d
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [need landing]
Target Milestone: --- → mozilla2.0b6
You need to log in before you can comment on or make changes to this bug.