If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Security tab broken for moz-icon or jar URIs.

RESOLVED WORKSFORME

Status

()

Firefox
Page Info Window
--
minor
RESOLVED WORKSFORME
10 years ago
5 years ago

People

(Reporter: florian, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

10 years ago
STR: Open Page info for an URI using the moz-icon scheme.

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.asciiHost]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://browser/content/pageinfo/security.js :: hostHasCookies :: line 305"  data: no]

The bottom part of the Security tab appears empty, and the JS error prevents the Permissions tab from hiding (it is normally visible only for http/https URIs)

nsIURI.asciiHost fails (NS_ERROR_FAILURE) for at least jar and moz-icon URIs.
For data URIs, it will return an empty string. I guess we should just catch the exception...

Comment 1

10 years ago
yeah, if it's throwing we should just catch & bail.
This works for me on Firefox Nightly 22. I tested using moz-icon://.pdf?size=16, opened the Page Info dialog and looked in the Security tab. I checked the Error Console and the Web Console.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.