Closed
Bug 20263
Opened 25 years ago
Closed 25 years ago
Security manager prevents script from listening to events
Categories
(Core :: Security, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: rginda, Assigned: norrisboyd)
Details
JavaScript Error: Access denied to listen to events across origins
URL: resource:///irc/tests/test3-static.js
LineNo: 78
JavaScript Error: Access denied to listen to events across origins
URL: resource:///irc/tests/test3-static.js
LineNo: 543
source is in
http://lxr.mozilla.org/seamonkey/source/extensions/irc/xul/tests/test3-static.js
This .js file is included in .xul file via a <script src='...'> tag. In the
first error (line 78), the script is attempting to attach a onkeyup handler to a
html input control defined in the xul file. The second error (line 543) is
attempting to attach an onclick handler to a toolbaritem created dynamically.
From my poking around, it appears that setPrincipal is never called in the
layout's nsEventEventListenerManager, so the SameOrigin test always fails.
I get the same error with attaching handlers to object's events in a simple
non-Xul html document. This error did not appear before and it's believed to be
valid Javascript. It showed up on Mon's build that is 19991129.
| Assignee | ||
Comment 2•25 years ago
|
||
Could you see if this still occurs? I fixed another bug in this area that may
have fixed this.
| Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 3•25 years ago
|
||
Rob says this is now fixed.
| Reporter | ||
Comment 4•25 years ago
|
||
Marking verified.
Bulk moving all Browser Security bugs to new Security: General component. The
previous Security component for Browser will be deleted.
Component: Security → Security: General
You need to log in
before you can comment on or make changes to this bug.
Description
•