Closed
Bug 464006
Opened 16 years ago
Closed 16 years ago
Error: key is null Bronbestand: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsUrlClassifierLib.js Regel: 1173
Categories
(Toolkit :: Safe Browsing, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 447648
People
(Reporter: bartotten, Assigned: mredivo)
Details
Attachments
(1 file, 1 obsolete file)
23.91 KB,
image/jpeg
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
I get this error, when i visit routenet.nl. if i clean up private data. reload the page i get this error:
Error: key is null Bronbestand: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsUrlClassifierLib.js Regel: 1173
PROT_UrlCryptoKeyManager.prototype.unUrlSafe = function(key)
{
return key.replace("-", "+").replace("_", "/");
}
Reproducible: Always
Steps to Reproduce:
1. clean private data
2. reload routenet.nl
3.
Actual Results:
Fout: key is null
Bronbestand: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsUrlClassifierLib.js
Regel: 1173
Expected Results:
reload the page
Comment 1•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081108 Minefield/3.1b2pre
This works fine for me.
Assignee | ||
Comment 2•16 years ago
|
||
For me, it looks like this:
[Exception... "'[JavaScript Error: "key is null" {file:
"file:///D:/projects/Flock/flock-trunk/objectdir/dist/bin/components/nsUrlClassifierLib.js"
line: 2158}]' when calling method: [nsIObserver::observe]" nsresult:
"0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame
:: chrome://browser/content/sanitize.js :: anonymous :: line 80" data: yes]
Patch coming up.
Assignee: nobody → mredivo
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Version: unspecified → 3.0 Branch
Assignee | ||
Comment 3•16 years ago
|
||
This function is only called from one place, and it doesn't matter what is returned in the "key == null" case. I arbitrarily chose "".
Attachment #348116 -
Flags: review?(gavin.bugzilla)
Comment 4•16 years ago
|
||
Comment on attachment 348116 [details] [diff] [review]
Test "key" for null before dereferencing it
I guess the code path here is PROT_UrlCryptoKeyManager.prototype.dropKey calling replaceKey_(null, null) which in turn calls unUrlSafe(null)... would be good to get someone who's really familiar with this code to check whether there isn't a larger problem being exposed here (seems to me that this would mean at least part of replaceKeys is never hit when called from dropKeys, which appears to be called each time cookies are cleared?).
Attachment #348116 -
Flags: review?(gavin.bugzilla) → review?(tony)
Updated•16 years ago
|
Component: General → Phishing Protection
QA Contact: general → phishing.protection
Comment 5•16 years ago
|
||
It seems like the fix should be in http://mxr.mozilla.org/firefox/source/toolkit/components/url-classifier/content/url-crypto-key-manager.js#275 to not set clientKeyArray and serializeKey_ should just delete the key on disk.
That said, I'm confused why we don't hit this code path in the wild or maybe we are and no one has noticed?
Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #5)
> ...
> That said, I'm confused why we don't hit this code path in the wild or maybe we
> are and no one has noticed?
I only saw this because I was running a debug build of Flock (based on FF3), and it appeared on the console.
I opened the JS error window in Firefox, cleared the cookies, and sure enough, saw the error being logged.
I expect it is 100% reproducible.
Comment 7•16 years ago
|
||
I just upgraded my Firefox Installation to 3.0.5 (from 3.0.4).
Still getting this error.
Steps to reproduce the error.
1)clear private data
that's all.
Hope this helps.
Comment 8•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Updated•15 years ago
|
Attachment #348116 -
Attachment is obsolete: true
Attachment #348116 -
Flags: review?(tony)
Updated•11 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•