Open Bug 610074 Opened 10 years ago Updated 10 years ago

Can't follow links to chrome:// URIs in view source


(Core :: DOM: HTML Parser, defect)

Windows 7
Not set





(Reporter: at.light, Unassigned)


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b6) Gecko/20100101 Firefox/4.0b6
Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b8pre) Gecko/20101105 Firefox/4.0b8pre

When in the view-source window, chrome:// URIs appear linked. However, clicking on them does nothing.

Reproducible: Always

Steps to Reproduce:
1. navigate to about:home, right-click, View Page Source
2. Click on the link to chrome://browser/content/aboutHome.css (or any other chrome link)

Actual Results:  
nothing happens

Expected Results:  
view-source navigates to the linked chrome document, so we can view its source

The only way to view a chrome:// URI's source is to copy the link location (which has to be done by selecting the URI and copying it - Copy Link Location is not on view-source's context menu), and paste it into the main browser's location bar.
Version: unspecified → Trunk
Product: Firefox → Core
Only seems to affect about:home, and no other chrome pages, which is very strange.
Severity: normal → minor
QA Contact: general → general
about:home is not a chrome page; that's why.

In general, the view-source of a page has the same permissions as the page itself, and it can only link to the things the page itself could have linked to via <a>.  That means not chrome for chrome pages....

Perhaps we should change some part of that.  What's not clear to me is what part should be changed so as not to introduce security problems.
Component: General → HTML: Parser
QA Contact: general → parser
You need to log in before you can comment on or make changes to this bug.