Closed Bug 508642 Opened 15 years ago Closed 15 years ago

Bookmarks JSON restore failed; PU_restoreBookmarksFromJSONString :: line 1335

Categories

(Firefox :: Bookmarks & History, defect)

x86_64
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: lrn1986, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2a1pre) Gecko/20090805 Minefield/3.6a1pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2a1pre) Gecko/20090805 Minefield/3.6a1pre

Updated Minefield today, after restart all bookmarks disappeared. When i'm trying to import bookmarks from a backup, none of the backups work. The error message is always:
Error: Bookmarks JSON restore failed: [Exception... "Component returned failure code: 0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS) [nsINavBookmarksService.runInBatchMode]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: file:///D:/Progs/Minefield/modules/utils.js :: PU_restoreBookmarksFromJSONString :: line 1335"  data: no]
Source File: file:///D:/Progs/Minefield/modules/utils.js
Line: 1211

Tried to fix .json file (thought it to be malformed), but fixed (it was malformed, so i've fixed it) version can't be loaded either (same error).

Reproducible: Always

Steps to Reproduce:
1. Update Minefield
2. Import bookmarks from the file

Actual Results:  
Error dialog shows up, bookmarks are not loaded.

Expected Results:  
No error should show up, bookmarks should be loaded

I can attach the .json file in question...that is, after i figure out how to attach files in this bugzilla.
attaching your json will discover your bookmarks to anyone, so evaluate if that's fine for you.

HAve you tried to import that backup into a clean new firefox profile?
Works with clean new profile.
Ah, forgot to mention: not just my bookmarks are lost. All bookmark nodes (such as "Bookmarks Menu" or "Bookmarks Toolbar") disappeared.
indeed, so it is not the backup that is corrupt. try removing places.sqlite from you old profile dir, then Fx should restore bookmarks from the current backups.
No, that didn't work. I've closed Minefield, removed bookmarks.html, bookmarks.postplaces.html, places.sqlite and places.sqlite-journal, started Minefield again, and bookmark manager is still empty, even though Minefield created a new places.sqlite.
First error in the error console is:
Error: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: file:///D:/Progs/Minefield/components/nsBrowserGlue.js :: bg__initPlaces :: line 495"  data: no]
Source File: file:///D:/Progs/Minefield/components/nsBrowserGlue.js
Line: 495
and there are several
Error: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]"  nsresult: "0x80004002 (NS_NOINTERFACE)"
errors in ignore-history.js
ignore-history.js is not part of Firefox...
Please try in safe mode http://support.mozilla.com/kb/Safe+Mode
All of this could be caused by an extension
that's TOR Button extension exactly, try disabling it
Yes. After disabling Torbutton everything is ok.
not a Firefox bug
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.