Closed Bug 206378 Opened 22 years ago Closed 22 years ago

Javascript in Location bar not working

Categories

(Firefox :: Toolbars and Customization, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 205989

People

(Reporter: mozilla, Assigned: hyatt)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Mozilla Firebird not executing javascript entered directly in the location bar or put there via a bookmark keyword Reproducible: Always Steps to Reproduce: 1. Enter the following into the location bar: javascript: document.location="http://www.yahoo.com/" Actual Results: about:blank displayed Expected Results: Mozilla Firebird loads www.yahoo.com web page
Might be bug 205989. But when I hit bug 205989, the previous URL is displayed instead of a blank page.
Based on email with Jesse, this bug is a dup of bug 205989. Unfortunately, I cannot see bug 205989 (I am getting an 'access denied') so I cannot confirm and mark this as a dup.
From an e-mail from the reporter: "The first time I try it, I get a page with the URL of the previous page, subsequent retries cause the javascript to be displayed instead. I was getting about:blank because I opened a new tab and tried the javascript code on it (about:blank being the url of the initial blank tab)" I think you'll be able to see 205989 after I mark your bug as a duplicate. In case you can't, I'll tell you the following: the bug has a patch with review and super-review and is pending approval for checkin (it needs approval because Mozilla 1.4 final is soon). *** This bug has been marked as a duplicate of 205989 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Don't set document.location -- just set location (once bug 205989 is fixed, both will work, but window.location is the right property to set -- document.location is a compatibility quirk). /be
verified.
Status: RESOLVED → VERIFIED
Taking QA Contact
QA Contact: asa → bugzilla
QA Contact: bugzilla → toolbars
You need to log in before you can comment on or make changes to this bug.