Closed Bug 298877 Opened 19 years ago Closed 19 years ago

location bar shows irrelevant URL after opening in new tab

Categories

(Firefox :: Address Bar, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 227826

People

(Reporter: thomas.voirol, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

When I type a URL into the location bar and Alt-click on "Go", Firefox opens a
new tab. When I click on the previous tab, the location bar shows whatever I
typed in. Here's an example (A):

1. I have one tab open showing Google. The location bar shows
"http://www.google.com/"
2. I type "mozilla.org" into the location bar and alt-click Go
3. A new tab is opened and selected. Once the page is loaded, the location bar
shows "http://www.mozilla.org/"
4. I click on the Google tab. The location bar shows "mozilla.org"

The problem I have with this is that it's patently wrong. The page is showing
Google, not "mozilla.org", yet the location bar claims otherwise.

Another example (B):

1. I have one tab open showing Google. The location bar shows
"http://www.google.com/"
2. I type "moyilla.org" into the location bar and alt-click Go
3. A new tab is opened and selected. Once Firefox realises the domain doesn't
exist, I get an error box. I click OK.
4. The tab's title is "(Untitled)" and the location bar is empty
5. I click on the Google tab. The location bar shows "moyilla.org"

The problem I'm having with this scenario is that to correct my mistake I'll have to
1. Close the (Untitled) tab
2. Find out which tab was selected when I entered the false URL and click it
3. correct my typo and alt-click Go again

Suggested behaviour to overcome this problem:

When a URL is typed in the location bar and a new tab is launched with that URL,
the location bar (of the old tab) is restored to the actual URL of the page
displayed in the tab. The new tab is opened and the location bar of the new tab
shows the text I typed in. Once the new tab shows a valid page, the actual URL
returned by the server is displayed in the location bar.

So the desired behaviour in the above examples would be:

(A):

1. I have one tab open showing Google. The location bar shows
"http://www.google.com/"
2. I type "mozilla.org" into the location bar and alt-click Go
3. A new tab is opened and selected with the location bar showing "mozilla.org".
4. Once the page is loaded, the location bar shows "http://www.mozilla.org/"
5. I click on the Google tab. The location bar shows "http://www.google.com/"

(B):

1. I have one tab open showing Google. The location bar shows
"http://www.google.com/"
2. I type "moyilla.org" into the location bar and alt-click Go
3. A new tab is opened and selected with the location bar showing "moyilla.org"
4. Once Firefox realises the domain doesn't exist, I get an error box. I click OK.
4. The tab's title is "(Untitled)" and the location bar still shows "moyilla.org"
5. I click on the Google tab. The location bar shows "http://www.google.com/"


Reproducible: Always

Steps to Reproduce:
see details
Actual Results:  
see details

Expected Results:  
see details

*** This bug has been marked as a duplicate of 227826 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.