browser_bug441169.js is throwing on nsIDOMLocation.hostname

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
9 years ago
6 years ago

People

(Reporter: mak, Assigned: ddahl)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

see bug 481406 for more informations.

chrome://mochikit/content/browser/docshell/test/browser/browser_bug441169.js

TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/docshell/test/browser/browser_bug441169.js | [JavaScript Error: "uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.hostname]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: about:neterror?e=nssBadCert&u=https%3A//test.kuix.de/&c=UTF-8&d=This%20sentence%20should%20not%20be%20parsed%20to%20include%20a%20%3Cspan%20id=%22test_span%22%3Enamed%3C/span%3E%20span%20tag.%0A%0AThe%20certificate%20is%20only%20valid%20for%20%3Ca%20id=%22cert_domain_link%22%20title=%22kuix.de%22%3Ekuix.de%3C/a%3E%0A%0A(Error%20code%3A%20ssl_error_bad_cert_domain) :: addDomainErrorLink :: line 251"  data: no]"]
We should just fix both addDomainErrorLink functions to fail gracefully (i.e. try/catch) for URIs without a hostname.
(Assignee)

Updated

9 years ago
Assignee: nobody → ddahl
No longer blocks: 481406
Depends on: 481406
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1246882480.1246889689.29547.gz&fulltext=1
Linux mozilla-central unit test on 2009/07/06 05:14:40
Flags: wanted-firefox3.6?

Comment 3

7 years ago
In my case I have found it when opening www.google.co.uk - I have disabled geo location if that assists.

Noticed in 3.6.8

Comment 4

7 years ago
"Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.host]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://smarterwiki/content/smarterwiki.js :: anonymous :: line 1171"  data: no]
Made irrelevant by bug 562433.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME

Comment 6

7 years ago
Issue still occurs with Firefox 3.6.9 - when will this be released?  If its part of 3.6.9 then the patch has not worked

Comment 7

7 years ago
To reproduce use I went from google with the link to the BBC site with the search term good food and got the error - note I have disabled the location awareness of firefox

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.host]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://smarterwiki/content/smarterwiki.js :: anonymous :: line 1225"  data: no]
Bug 562443 was fixed for Firefox 4.0. You can confirm that it's fixed with a current beta release. It was not fixed for 3.6.x.
Depends on: 562433
Flags: wanted-firefox3.6?
You need to log in before you can comment on or make changes to this bug.