Closed Bug 267305 Opened 20 years ago Closed 20 years ago

netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") in a XBL constructor make mozilla crash.

Categories

(Core :: XBL, defect)

x86
All
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 267311

People

(Reporter: jantonio122, Assigned: hyatt)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041028

The request for privleges in a xbl constructor, or a call to a function that
contains the line
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") from a
xbl constructor, make mozilla crash. 

the files on the test are
test.xul
widgets.css
widgets.xml


Reproducible: Always
Steps to Reproduce:
1. create a simple widget with a constructor containing the line:
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")
2. create a xul with a binding to that widget. 
3. run the xul.

Actual Results:  
Mozilla crash, and the application is closed. 

Expected Results:  
execute the code inside the constructor

*** This bug has been marked as a duplicate of 267311 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.