Closed Bug 107716 Opened 23 years ago Closed 23 years ago

[RFE] Pref to open unknown targets in current window

Categories

(Core :: Layout: Images, Video, and HTML Frames, enhancement)

Sun
SunOS
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 75371

People

(Reporter: mozillaBugzilla, Assigned: eric)

Details

Attachments

(1 file)

When you click on a link that has a target specified, and a frame of that name does not exist, it would be nice to be able to get the new page to open in the current window (or tab) rather than a new window. I understand alot of people may not want that to happen, so mabey turning it into a pref may be an idea.
Attached file Testcase. Save as test.html (deleted) —
The testcase contains 4 links. If you open it in a window without any frames, the last three open as new windows. It would be nice if they opend in the same window as where I clicked the link (or tab if tab browsing is on) It's designed to be called test.html
This can't be default, because many pages (incorrectly) use target="foo" to make links open in a new window. (The correct way to make a link open in a new window is target="_blank", which *always* opens in a new window, regardless of whether a previous link with target="foo" created a window with the name "foo".) Mozilla already has a hidden pref for this, thanks to akkana in bug 56296. Add this line to your prefs.js file while Mozilla isn't running: user_pref("browser.target_new_blocked", true); Making this pref not be hidden is covered by bug 75371, "UI prefs to control pop-up (popup) windows and other Javascript annoyances", even though target=_blank isn't javascript. *** This bug has been marked as a duplicate of 75371 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
[RFE] is deprecated in favor of severity: enhancement. They have the same meaning.
Severity: normal → enhancement
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: