Closed Bug 455454 Opened 16 years ago Closed 16 years ago

Clearing all cookies causes an error in url-classifier

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 447648

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(2 obsolete files)

Attached patch Patch (v1) (obsolete) — Splinter Review
STR:

1. Clear all the cookies.
2. Watch the following error in the console:

Error: key is null
Source File: file:///c:/mozroot/hgmoz/obj-ff-opt/dist/bin/components/nsUrlClassifierLib.js
Line: 1173

This is observable when entering the private browsing mode as well.

The source of the error is that PROT_UrlCryptoKeyManager.unUrlSafe doesn't check its param |key| for being null, and it can indeed be null in two cases:

 * when being called by PROT_ListManager.rekey_ in response to the url-classifier-rekey-requested notification.
 * when being called by PROT_ListManager.cookieChanged_ in response to the cookie-changed notification.

The attached patch adds the null-ness check to unUrlSafe, and returns an empty string when key is null.
Attachment #338799 - Flags: review?(dcamp)
Uh, I don't think adding yourself to the contributors block for a one line change is appropriate here.
Assignee: nobody → ehsan.akhgari
Attached patch Patch (v1) (obsolete) — Splinter Review
(In reply to comment #1)
> Uh, I don't think adding yourself to the contributors block for a one line
> change is appropriate here.

Sure, no big deal :-)
Attachment #338799 - Attachment is obsolete: true
Attachment #338800 - Flags: review?
Attachment #338799 - Flags: review?(dcamp)
Status: NEW → ASSIGNED
Attachment #338800 - Flags: review? → review?(dcamp)
No longer blocks: PrivateBrowsing
This looks like bug 447648 and related to bug 430074
(In reply to comment #3)
> This looks like bug 447648 and related to bug 430074

This is actually a dupe of bug 447648.  I'll post my patch on that bug for review.
No longer blocks: PrivateBrowsing
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Attachment #338800 - Attachment is obsolete: true
Attachment #338800 - Flags: review?(dcamp)
Attachment #338799 - Flags: review+
V.Duplicate
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: