Closed Bug 269946 Opened 20 years ago Closed 20 years ago

You'll get redirected from a popup via a button to another page in the parent/opener.

Categories

(Core :: DOM: Core & HTML, defect)

1.7 Branch
x86
Windows 2000
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: thomas.enzenebner, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Firefox/1.0

You'll get redirected from a pupup via a button. 
The following source is used:

window.opener.location = "redirect.php?some Php Stuff..";
id_form.submit(); 
window.close(); //the popup gets closed

Then a download should start in the parent/opener window. 
But all I got is this Error in the Javascript Console:

Error: uncaught exception: [Exception... "Access to property denied"  code:
"1010" nsresult: "0x805303f2 (NS_ERROR_DOM_PROP_ACCESS_DENIED)"  location:
"redirect.php Line: 6"]

It works in IE and Mozilla.



Reproducible: Always
Steps to Reproduce:
1. Just click the redirect button.
2.
3.

Actual Results:  
This error came in the Javascript Console:
Fehler: uncaught exception: [Exception... "Access to property denied"  code:
"1010" nsresult: "0x805303f2 (NS_ERROR_DOM_PROP_ACCESS_DENIED)"  location:
"http://test.webcents.at/Webcents/webcents.php Line: 6"]

Expected Results:  
The Popup should close and the parent/opener window should be redirected.

This problem is really serious because you should get redirected to a download
page for a file for which you paid before.
Javascript Console is only that thing that you show the errors....
Assignee: bugs → general
Component: JavaScript Console → DOM: Level 0
Product: Firefox → Browser
QA Contact: firefox.js-console → ian
Version: unspecified → Trunk
(In reply to comment #1)
> Javascript Console is only that thing that you show the errors....

Yes! The rest of the window stays the same. I can press the button as often as I
want. It just produces the same error over and over again.
so which line was line 6? and what's id_form?
(In reply to comment #3)
> so which line was line 6? and what's id_form?

line 6: window.opener.location = "redirect.php?some Php Stuff..";
i had many variations of this line, but none of them worked in firefox. i have
tried google too, before i wrote the bug in here. 
id_form is the name of my form. 
the action field is empty cause my javascript function will handle all (source
code is above)
Thomas, you say this works in Mozilla.  Which Mozilla did you test, exactly?

Doesn't sound like this was filed on a trunk build...
Version: Trunk → 1.7 Branch
My version is:

Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
That's Firefox.  You said, in comment 0:

  It works in IE and Mozilla.

Which Mozilla?
window.opener.location = "redirect.php?some Php Stuff..";
"Access to property denied"  code:
"1010" nsresult: "0x805303f2 (NS_ERROR_DOM_PROP_ACCESS_DENIED)" 
location:
"http://test.webcents.at/Webcents/webcents.php Line: 6"]

Isn't that typical error message as a consequence of a violation of the same
domain policy? 
http://www.mozilla.org/projects/security/components/same-origin.html
In any case, without more details, specifics (like a working testcase) and
answers, there is very little which can be done.

Resolving as WORKSFORME

Reporter, if you can provide answers, a working testcase, etc..., then reopen
this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.