Closed Bug 158208 Opened 23 years ago Closed 22 years ago

window.open in address bar throws a security error

Categories

(Core :: Security: CAPS, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla1.3alpha

People

(Reporter: jruderman, Assigned: security-bugs)

References

()

Details

(Keywords: regression)

Steps to reproduce: 1. Go to http://www.mozilla.org/ 2. Paste this url into the address bar and hit enter: javascript:x=window.open("http://www.mozilla.org/"); alert(1); alert(x); Result: The window opens, but the rest of the javascript does not run and the variable x is not set. An error message appears in the javascript console: "Error: uncaught exception: Security Error: Content at http://www.mozilla.org/ may not load data from chrome://navigator/content/navigator.xul." The same javascript code works as a bookmarklet in the personal toolbar, as a javascript link in a page, or as an onclick handler for a <button> in a page. I'm using 2002 071813 on Windows 2000.
Keywords: regression
I'll look into it, but unless you're seeing this on a major website somewhere, this is going to be low priority.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2beta
Target Milestone: mozilla1.2beta → mozilla1.3alpha
WFM in Mozilla 12/23 on Windows XP.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.