Closed
Bug 331454
Opened 19 years ago
Closed 19 years ago
spurious JavaScript Permission denied error from window.open()
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 261423
People
(Reporter: mozilla-bugs, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8) Gecko/20051219 SeaMonkey/1.0b
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8) Gecko/20051219 SeaMonkey/1.0b
Error: [Exception... "'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: file:///nfs/tyr/data/tmp/postback.html :: openWindow :: line 11" data: no]
Source File: file:///nfs/tyr/data/tmp/postback.html
Line: 11
I don't believe I am doing anything incorrect in my webpage I am executing the JavaScript statement:
<a href="javascript:openWindow(this, 'popup_pick.jsp', 'winone', 'width=640,height=480')">Click</a>
<script language="javascript"><!--
function openWindow(thisObj, url, label, winopts) {
var win = window.open(url, label, winopts);
return;
}
// --></script>
I believe code inside seamonkey should be trapping this error so it doesn't show up as a user error, it seems to be an internal problem.
Reproducible: Always
Steps to Reproduce:
1. Open JavaScript Console
2. In SeaMonkey open the attached HTML page
3. Click on the "click" word
4. Look in the JavaScript Console
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Reporter | ||
Updated•19 years ago
|
Attachment #216006 -
Attachment description: Main file to test with. → postback.html - Main file to test with.
Updated•19 years ago
|
Summary: suprious JavaScript Permission denied error from window.open() → spurious JavaScript Permission denied error from window.open()
Related to/duplicate of Core bug 261423?
Comment 4•19 years ago
|
||
> I don't believe I am doing anything incorrect in my webpage
Darryl,
You may want to read carefully the document
DOM:window.open
http://developer.mozilla.org/en/docs/DOM:window.open
if you want to perfect your code. Hints: don't use "javascript:", don't use a local variable to store the window reference, use a target name, etc. E.g.:
<a href="popup_pick.jsp" target="winone" onclick="openWindow(this, this.href, this.target, 'resizable,scrollbars,status,location,width=640,height=480'); return false;">Click</a>
<script type="text/javascript">
var WindowObjectReference;
function openWindow(thisObj, url, label, winopts) {
WindowObjectReference = window.open(url, label, winopts);
}
</script>
Resolving as DUPLICATE
*** This bug has been marked as a duplicate of 261423 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 5•19 years ago
|
||
Gérard, Thanks for the pointer, the application must have JS support enabled to work since the popup in the real app sets variables in the window.opener.formName.inputName.value = newValue. But enough of my app.
I have tested this some more and found a clean profile does not exhibit this bug.
But if I install checky-2.5-fx+mz.xpi or colorzilla-0.6.5-fx+mz.xpi this problem occurs. Maybe it occurs if I install any XPI extension, maybe this infomation can help someone find the source of the problem.
I shall post these findings the bug you have marked it as dupe to.
You need to log in
before you can comment on or make changes to this bug.
Description
•