Closed Bug 620779 Opened 15 years ago Closed 10 years ago

nsScriptSecurityManager::doGetObjectPrincipal should use compartments

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mrbkap, Unassigned)

Details

Right now, we do a parent chain walk (though we short circuit if we find an XPCWrappedNative). We could just use the compartment's principal, which should be faster.
Yesplease!
Actually, will this do the right thing for cases where we use principals for base URIs? I would think it would break. Or do those not go through this code?
Assignee: general → nobody
This happened with compartment per global.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.