Closed Bug 307072 Opened 20 years ago Closed 20 years ago

Javascript redirection produces incorrect View Source output

Categories

(Toolkit :: View Source, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 247660

People

(Reporter: l33t_archer, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.10) Gecko/20050724 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.10) Gecko/20050724 Firefox/1.0.6 If the user clicks upon a link to www.foo.com but is redirected to www.bar.com (via the onUnload event) then Firefox will display the source to www.foo.com instead of the page at www.bar.com that they are actually viewing. Reproducible: Always Steps to Reproduce: 1. Go to http://www.managementconcepts-ap.com/tmp/tmp.html 2. Click on the link 3. View > Page Source Actual Results: The source to www.google.com is displayed Expected Results: The source to tmp.html should have been displayed I've created a temporary page to illustrate the problem; in this case the browser will be unable to leave when clicking on the link. Trying to view the source after clicking the link will show the source to www.google.com. This page is rather irritating as it's quite hard to leave it - but that's not actually a bug per se :-)
bug 253497 -> bug 247660 *** This bug has been marked as a duplicate of 247660 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.