Closed
Bug 364632
Opened 18 years ago
Closed 15 years ago
Permission denied to call method XMLHttpRequest.open in windows created by window.open
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: amykhar, Unassigned)
References
Details
(Whiteboard: [CLOSEME 5-15-2010])
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Using the sajax library, we are consistently having a problem with making calls to open the HTTP request object from within a popup window created by window.open. If we right click and reload the page, the call works and the ajax routines function as expected.
The code that fails:
x = sajax_init_object();
x.open(sajax_request_type, uri, true);
Reproducible: Always
Steps to Reproduce:
1. open the window using window.open
2. make an ajax request for data
3.
Actual Results:
uncaught exception: Permission denied to call method XMLHttpRequest.open
Expected Results:
No error.
Right clicking on the window and doing a reload resolves the problem. The ajax works as expected. This code functions properly in Internet Explorer too.
Comment 1•18 years ago
|
||
I can confirm that problem also at linux...
User-Agent is: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1
Comment 2•18 years ago
|
||
Load this file in FireFox.
Click on "Log On" button, which causes window.open() to load popup window.
Comment 3•18 years ago
|
||
The first time this window opens, FIRST "refresh" the page with Ctrl-Shift-R, then enter a username and password (can be anything), then click "Log On" button.
XMLHttpRequest.open and .send should work.
Close this window.
On test.html, click "Log On" button again, but DO NOT "refresh" the popup window. Enter data, press "Log On" button.
XMLHttpRequest.open will fail (always) with "permission denied to call XMLHttpRequest.open" error.
Comment 4•18 years ago
|
||
This PHP script is called by XMLHttpRequest.send in logon.html.
It returns the posted data as plain text.
Comment 5•15 years ago
|
||
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 5-15-2010]
Version: unspecified → 2.0 Branch
Comment 6•15 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.x or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•