Closed
Bug 190637
Opened 23 years ago
Closed 22 years ago
Javascript-link causes back button failure
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
DUPLICATE
of bug 193887
People
(Reporter: bugzilla, Assigned: radha)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030124
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030124
Javascript links that declare variables causes back button failure. This bug
affects both in-page links and bookmarks, and breaks many "bookmarklettes".
eg.
javascript:var darrenVar='test'; location.href='http://mozilla.org';
Reproducible: Always
Steps to Reproduce:
1. Paste the following into the URL bar: javascript:var darrenVar='test';
location.href='http://mozilla.org';
2. Click through any link on the mozilla.org page
3. Use back button to return to mozilla.org
Actual Results:
Back button does nothing but produce javascript error.
Expected Results:
Return to mozilla.org page.
At step 3, the back button causes the following js error: uncaught exception:
Permission denied to set property Window.darrenVar
I think this broke right around the time that 'location.href="URL"' started
displaying the URL in the content window, before navigation.
![]() |
||
Comment 1•23 years ago
|
||
to session history; we're going back the the "javascript:" url and it's failing
miserably....
Assignee: sgehani → radha
Severity: normal → major
Status: UNCONFIRMED → NEW
Component: XP Apps → History: Session
Ever confirmed: true
Keywords: mozilla1.3
OS: Windows XP → All
QA Contact: paw → claudius
Hardware: PC → All
Comment 3•22 years ago
|
||
*** This bug has been marked as a duplicate of 193887 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: History: Session → Document Navigation
QA Contact: pawyskoczka → docshell
You need to log in
before you can comment on or make changes to this bug.
Description
•