Open Bug 439690 Opened 13 years ago Updated 2 years ago

Code inside two nested objects under hiddenDOMWindow runs unprivileged


(Core :: DOM: Core & HTML, defect, P5)






(Reporter: Manuel.Spam, Unassigned)



(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20080328 SeaMonkey/1.1.9
Build Identifier: 

If I create one object under hiddenDOMWindow (to have my stuff centralized), then anything works well, but if I create "sub-objects" inside this context, then my "sub-classes" run unprivileged.

Maybe someone is able to debug this problem and to find out why privileged code loses its privileged status here.

Reproducible: Always
Attached file Minimal testcase
This is a minimal testcase. Just untar into "extensions" directory of SeaMonkey 2.x or Firefox 2.x or 3.x.

You should get the appVersion twice, but you'll get it only once. In error console you'll see that the code running into the "second level" of objects lost its privileged status for some reason.

I was also able to reproduce this with SeaMonkey 1.x, but there this testcase doesn't work.

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.