Closed
Bug 935973
Opened 12 years ago
Closed 12 years ago
ThirdPartyCookieProbe errors
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: Yoric, Assigned: fabrice)
Details
(Whiteboard: [Async][mentor=Yoric][lang=js][good first bug])
Attachments
(1 file)
|
2.25 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
In bug 837326, John Bacon wrote: « Well I don't care what stats. you gather. I just don't want my error console cluttered up with messages like this:
ThirdPartyCookieProbe: Uncaught error [Exception... "Component returned failure code: 0x804b0051 (NS_ERROR_HOST_IS_IP_ADDRESS) [nsIEffectiveTLDService.getBaseDomainFromHost]" nsresult: "0x804b0051 (NS_ERROR_HOST_IS_IP_ADDRESS)" location: "JS frame :: resource://gre/modules/ThirdPartyCookieProbe.jsm :: normalizeHost :: line 181" data: no]
undefined »
| Reporter | ||
Comment 1•12 years ago
|
||
Note to anyone who picks that bug: this can be fixed by tweaking the |catch| block at http://dxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/ThirdPartyCookieProbe.jsm?from=ThirdPartyCookieProbe.jsm#l90, as follows:
- check whether the exception is an instance of nsIXPCException;
- if so and, check if its |result| field is equal to Components.results.NS_ERROR_HOST_IS_IP_ADDRESS;
- if so, just swallow the exception and return without doing anything else.
Whiteboard: [Async][mentor=Yoric][lang=js]
| Reporter | ||
Updated•12 years ago
|
Whiteboard: [Async][mentor=Yoric][lang=js] → [Async][mentor=Yoric][lang=js][good first bug]
| Assignee | ||
Comment 2•12 years ago
|
||
See also bug 902121 and bug 901697
| Assignee | ||
Comment 3•12 years ago
|
||
The referrer was '?' in the NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS case.
Assignee: nobody → fabrice
Attachment #829634 -
Flags: review?(dteller)
| Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 829634 [details] [diff] [review]
cookie-levels.patch
Review of attachment 829634 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the following trivial changes
::: toolkit/components/telemetry/ThirdPartyCookieProbe.jsm
@@ +75,5 @@
> // Not a third-party cookie
> return;
> }
> // Add host to this._thirdPartyCookies
> + dump("XXX referrer=" + referrer + " 3rdParty=" + docURI.QueryInterface(Ci.nsIURI).spec);
Looks like debugging code.
@@ +99,1 @@
> // Errors should not remain silent
"Other errors"
Attachment #829634 -
Flags: review?(dteller) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•