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)
Toolkit
Safe Browsing
Tracking
()
VERIFIED
DUPLICATE
of bug 447648
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(2 obsolete files)
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)
Comment 1•16 years ago
|
||
Uh, I don't think adding yourself to the contributors block for a one line change is appropriate here.
Assignee: nobody → ehsan.akhgari
Assignee | ||
Comment 2•16 years ago
|
||
(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)
Assignee | ||
Updated•16 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•16 years ago
|
Attachment #338800 -
Flags: review? → review?(dcamp)
Assignee | ||
Updated•16 years ago
|
No longer blocks: PrivateBrowsing
Assignee | ||
Updated•16 years ago
|
Blocks: PrivateBrowsing
Comment 3•16 years ago
|
||
This looks like bug 447648 and related to bug 430074
Assignee | ||
Comment 4•16 years ago
|
||
(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
Assignee | ||
Updated•16 years ago
|
Attachment #338800 -
Attachment is obsolete: true
Attachment #338800 -
Flags: review?(dcamp)
Updated•16 years ago
|
Attachment #338799 -
Flags: review+
Updated•11 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•