Open Bug 1762987 Opened 4 years ago Updated 2 years ago

When opening a link in a new window or a new tab (via either target="_blank" or window.open()), the url can be erased if the user stops loading the page before it's loaded

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

People

(Reporter: jteow, Unassigned)

References

Details

Attachments

(1 file)

Attached file index.html

When loading a link into a new window or a new tab that's generated by target="_blank" or window.open, the URL is erased from the address bar if the page hasn't finished loading and the user stops the load.

This might be because before the browser receives a response, the url bar is not populated with the url it's trying to load. I've enclosed a simple HTML file with a demo.

Steps to Reproduce

  1. Download and open the HTML file that's provided.
  2. Open the slow loading URL either a) as a New Window, b) with target="_blank", or c) with Javascript window.open
  3. In the new window/tab, stop loading the page.

Expected Behaviour
The url that the user attempted to load should be in the address bar.

Actual Behaviour
The url is not in the address bar.

See Also: → 1762998
Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: