Closed Bug 737012 Opened 12 years ago Closed 10 years ago

nsXULPrototypeDocument::gSystemPrincipal never gets set

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 993772

People

(Reporter: neil, Assigned: n.nethercote)

References

Details

(Keywords: regression, Whiteboard: [MemShrink:P2])

Attachments

(1 file)

The patch in bug 354693 removed the assignment to nsXULPrototypeDocument::gSystemPrincipal, which means that chrome XUL documents no longer get to share a system global.

I don't know whether this is relevant, but I stumbled over this trying to work out why XUL documents don't compile with strict mode enabled.
Hmm.  We should probably just compare to the system principal in content utils instead, no?  Assuming this is desired at all, of course.  Is it desired?
Whiteboard: [MemShrink]
After almost two years, I'm not sure this qualifies as a "regression".  Nils did some analysis in bug 956883 comment 6.
bz: can you explain what needs to be fixed here? I can evaluate the impact of any such fix.
Flags: needinfo?(bzbarsky)
Whiteboard: [MemShrink] → [MemShrink:P2]
Basically just nix gSystemPrincipal entirely and replace its uses by nsContentUtils::GetSystemPrincipal().
Flags: needinfo?(bzbarsky)
Attached patch Like soSplinter Review
Assignee: nobody → n.nethercote
I think bug 993772 is the right fix here.
Depends on: 993772
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: