Closed Bug 20261 Opened 26 years ago Closed 26 years ago

Security error adding textNode to anchor element.

Categories

(Core :: Security, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rginda, Assigned: norrisboyd)

Details

JavaScript Error: access disallowed from scripts at file:////home/rginda/src/mozilla_RIGHT/mozilla/dist/bin/irc/tests/test3.xul to documents at another domain URL: resource:///irc/tests/test3-static.js LineNo: 278 test3.xul has no web content. test3-static.js is included in test3.xul via a <script src='...'> tag. The code being run is: var a = document.createElement (tagName); a.setAttribute ("class", className); switch (typeof data) { case "string": 278: a.appendChild (document.createTextNode (data)); break; setting security.checkdomprops to false is a temporary workaround.
Status: NEW → ASSIGNED
Does this still occur?
Target Milestone: M13
This occurs in a new spot now: JavaScript Error: access disallowed from scripts at [Codebase file:///home/rginda/src/mozilla_RIGHT/mozilla/dist/bin/irc/tests/test3.xul] to documents at another domain URL: resource:///irc/tests/test3-static.js LineNo: 284 281: var oc = top.frames[0].document; 282: 283: oc.close(); 284: oc.open(); It happens before the code previously reported runs, so it's impossible to tell if the last problem went away. Again, top.frames[0].document is pointing to about:blank at the time of the error.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
IRC Chat should now work without modifying any security preferences.
Verified fixed.
Status: RESOLVED → 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.