Closed Bug 479127 Opened 15 years ago Closed 14 years ago

nsILivemarkService fails to load on addon initialization from resource

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mikeal, Unassigned)

Details

Attachments

(1 file)

If you have an overlay that imports a resource module that loads nsILivemarkService it will cause an uncaught exception.

Error: uncaught exception: 2147500033
Source File: file:///private/var/folders/Hs/HsyWzDriHMiGEd1BMyFZiU+++TI/-Tmp-/tmp2RtLEw.mozrunner/extensions/pushmarks@mozilla.com/resource/modules/init.js
Line: 5

I'm attaching a reduced extension that can reproduce the issue.

Clint says: "This not only shouldn't throw an error but that is the wrong error to throw."
Confirmed on Shiretoko as well and on Windows: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090218 Shiretoko/3.1b3pre
OS: Mac OS X → All
In at least one other case (utils.js), the message
Error: uncaught exception: 2147500033
is mozilla-speak for "an object did not have the requested interface". (QI fails)
Currently looks like a places issues but could be something more.
URL: swa
URL: swa
Hardware: x86 → All
Does this help?
file:///G:/mozilla/mozilla-central/src/obj-i686-pc-mingw32/dist/bin/components/nsLivemarkService.js:609.0

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4pre) Gecko/20090420 Shiretoko/3.5b4pre

Does not make a lot of sense however:
  deleteLivemarkChildren: function LS_deleteLivemarkChildren(aFolderId) {
    this._bms.removeFolderChildren(aFolderId);
  },
See also 499568. Eventually I started getting so may of the errors like that in  comment 4 I had to create new profile. That fixed it.
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: