Closed Bug 303306 Opened 19 years ago Closed 19 years ago

Opening a new tab or a new window to the 'about:blank' link does not work.

Categories

(Firefox :: Tabbed Browser, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: bjandras, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)

A link created with something like this:

<a href="about:blank">link</a>

can not be opened in a new tab or a new window, but can be opened
in the current one.

Reproducible: Always

Steps to Reproduce:
1. Create a HTML page with a link to about:blank
2. Click on the link
3. Profit

Actual Results:  
Nothing

Expected Results:  
New tab/window should be opened with "about:blank" in the address bar.
This is done for security reasons.  It's a program file; just as pages shouldn't 
be able to link to about:config for obvious reasons, they can't link here, 
either.  Look at the JS console after clicking:


Security Error: Content at file:///C:/Documents%20and%20Settings/-------/
Desktop/test.html may not load or link to about://blank/.
Error: uncaught exception: Load of about:blank denied.


This is not a bug and should not be fixed.
Although. looking again, why can it open in the same tab to begin with?  Yhe bug 
is not that it CAN'T open in a new tab, but rather why it DOES open in the 
original.
Attached file Test Case
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050803
Firefox/1.0+ ID:2005080306
This test case has links for both about:blank and about:config. Clicking on
about:blank actually showed the blank page, in new tab, new window and current
window. Clicking on about:config produced no result for any of those cases.
This is working as designed. about:config is privileged; about:blank is not.

Gerv
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: