Open
Bug 1323563
Opened 9 years ago
Updated 3 years ago
nsIAbDirectory.URI not initialized error in chrome://messenger/content/addressbook/abTrees.js
Categories
(Thunderbird :: Address Book, defect)
Thunderbird
Address Book
Tracking
(Not tracked)
NEW
People
(Reporter: aceman, Unassigned)
Details
Deleting an addressbook in the Addressbook window produces an error:
22:50:43.528 NS_ERROR_NOT_INITIALIZED: Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIAbDirectory.URI] 1 abTrees.js:256
dtv_onItemRemoved chrome://messenger/content/addressbook/abTrees.js:256:1
AbDeleteDirectory chrome://messenger/content/addressbook/abCommon.js:268:3
AbDeleteSelectedDirectory chrome://messenger/content/addressbook/abCommon.js:227:3
doCommand chrome://messenger/content/addressbook/abCommon.js:158:11
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/addressbook/addressbook.xul:1:1
Comment 1•9 years ago
|
||
I'll guess you'll fix this one yourself, right?
Not sure yet. The problem is at line:
if (aParent.URI == kAllDirectoryRoot ||
aParent.URI == kAllDirectoryRoot + "?") {
aParent is a Ci.nsIAbDirectory, probably the All Addressbooks node as I was removing a normal (top-level) addressbook. The .URI attribute exists, but it throws. I don't know why it says uninitialized in this case, because we surely call. URI on the tree row on different places (e.g. just showing the context menu on it).
So you if can spot the problem faster, I'd be happy.
These days the error is now (on ESR68):
ReferenceError: reference to undefined property "URI" abTrees.js:280:7
so only shows up if you have the following prefs set to true:
browser.dom.window.dump.enabled
javascript.options.strict
Updated•3 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•