Closed
Bug 352545
Opened 19 years ago
Closed 19 years ago
window.open() throws message 'Permission denied to get property XULElement.accessKey'
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 261423
People
(Reporter: bugzilla, Unassigned)
Details
Attachments
(1 file)
|
411 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Using this simple HTML (the page demo.html should exist).
<html>
<body>
<p onclick="window.open('demo.html');">click me to open a window </p>
</body>
</html>
When clicking on the text, the js console has a message
"'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"
Otherwise everything works as normal.
Reproducible: Always
Steps to Reproduce:
1. Create demo.html:
<html>
<body>
<p onclick="window.open('demo2.html');">click me to open a window </p>
</body>
</html>
2. Click on text, window opens. Close that new window.
3. Console in original window shows error message.
Actual Results:
JS console shows
"'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: file:///C:/Documents%20and%20Settings/nwh/My%20Documents/Programs/Javascript/TestArea/demo.html :: onclick :: line 1" data: no]
Expected Results:
No error messages
Extensions installed:
Adblock
Googlebar Lite
Flashblock
Console2
Firebug
Web Developer
DownThemAll!
Wikipedia Toolbar
| Reporter | ||
Comment 1•19 years ago
|
||
Ive just uninstalled all extensions and reinstalled them one by one.
The errors only appears in the Firebug console after installing the Firebug extension, and not in the Javascript console.
I'll leave it to those more knowledgeable than me to decide if its a real problem.
Comment 2•19 years ago
|
||
This should be a dupe of bug 261423
Comment 3•19 years ago
|
||
I've duplicated the bug, but only if there are additional arguments to open():
<p onclick="var x=window.open('http://xenoscience.com/ip.fcgi','xeno','height=200,width=200,toolbar=no',false);x.focus()">click me to open a window </p>
This will open a popup properly every time it is clicked, the error occurs only if opening a new popup window. No exception is thrown if the window already exists and is being reloaded with the URL. But if the window is closed first...
[Exception... "'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://www.w3schools.com/js/tryit_view.asp :: onclick :: line 1" data: no]
http://www.w3schools.com/js/tryit_view.asp
Line 1
I tried out a number of combos in http://www.w3schools.com/js/tryit_view.asp
which is very nice for playing with javascript.
Steve
Comment 4•19 years ago
|
||
WFM, Firefox 2.0.0.3 and trunk on Linux with a clean profile.
Updated•19 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•