Closed Bug 114215 Opened 24 years ago Closed 24 years ago

Dragging a bookmark on closed folder in sidebar deletes it

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
All
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nils, Assigned: bugzilla)

References

Details

(Keywords: dataloss, regression)

Attachments

(1 file, 1 obsolete file)

This must be new in the last couple of days, maybe related to Blake's outliner stuff (see related bug 113660). This is on Linux CVS build, 2001-12-80, 07:00 UTC, RH 7.1. Dragging an existing bookmark in the bookmark sidebar over a *closed* folder, it will be deleted. This is reproducable. To repeat: 1. Open bookmark sidebar 2. Drag some bookmark over a closed folder icon. Release. 3. Observe it's gone. You have been warned! Expected result: Bookmark should be moved into that folder. Observed result: Bookmark is gone. Note: dragging a bookmark into an opened folder works. Also dragging a bookmark from the URL bar over a closed folder in the bookmark sidebar works. In the faulty case, the following warning can be observed on the console: ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIRDFContainer.Init]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: <unknown filename> :: anonymous :: line 129" data: no] ************************************************************
Adding keyword.
Keywords: dataloss
To blake. Which part of "This is a work in progress, please do not file bugs on it yet" do people not understand?
Assignee: pchen → blakeross
Umm...hmm. Can anyone else reproduce? The bookmark is appended to the end of the folder, as expected, for me.
To correct myself after a lot of more testing: not always reproducable, but in most cases (ca. 80% so far). Most reliably if you create a new BM folder that then still hasn't got either a [+] nor a [-] box next to it. Drag sth. on it, and for me the bookmark is gone. Just confirmed with mozilla.org's nightly 2001120806 installer build. [NB. The bookmark is really gone, as a look at bookmark.html shows. Folder is empty. However, after a lot of creating and deleting I got a bunch of bookmarks at the end of my bookmark file that aren't displayed anymore. But that's another not-so-serious issue, and won't file a bug on that. Promise.]
Can repro with 2001120708/linux. 4 out of 4 bookmarks disappeared.
Severity: major → critical
*** Bug 114663 has been marked as a duplicate of this bug. ***
Are you guys sure that you're not seeing bug 114256? (read it to the end)
I can confirm that this happens too with 2001-12-11-08 on Linux. It happens reliably if I create a new folder and drag bookmarks to it directly.
Heh, I take that back. It ended up in the folder above it just like in my bug bug 114256.
Please have a lock at my Bug #114663. Can it be that the bookmarks that seems lost are still anywhere ???
Keywords: mozilla0.9.7
No, the bookmarks are gone. I've tested it in the following scenario: 1. Open bookmarks in sidebar, create empty new folder at the bottom 2. Create a new bookmark below it. Verify in bookmarks.html that the new bookmark is indeed at the right location. 3. Now drag the new bookmark on the empty folder just above. The bookmark disappears from view. A check of bookmarks.html shows that it is still there *below* the folder in the *old* location, but not visible in the sidebar. 4. Even if you try to open the new folder, the bookmark is not in there. 5. Exit Mozilla and check bookmarks.html. *Now* the bookmark is really gone, as if deleted. That's why this is a dataloss, and the difference to bug 114256 is that the bookmark didn't end up in another folder. Just confirmed again with today's build.
Blocks: 114455
NilsE: Please read: http://bugzilla.mozilla.org/show_bug.cgi?id=114256#c9 It can help some people to save there bookmarks.
this also affects the manage bookmarks code... its not just sidebar. I just tried in 12-14 w2K build to verify the problem in bug 110578 and seen this bug. I was dragging a folder and trying to drop it on a closed folder, it expanded the closed folder, but the bookmark folder I was trying to move, disappeared, and is gone, deleted. :)
it used to be that in 12-6 or 12-7 build a moved bookmark showed it listed at the bottom of the bookmark list. maybe the code that blake cleaned up after that also removed the code that actually puts the bookmark back in the file after a move.
Can everyone attempt to try out my theory here.. I've deleted the installation for the builds before 12-10.. but try build 12-05, 12-06, 12-07 and see if this problem exists.. maybe like I said, some cleanup actually removed the functionality.
should add regression while we are at it :)
see bug 113660 comment 3 for more on moving bookmarks & deletion.
seeing this on win32 too
OS: Linux → All
Does not only delete single bookmarks but also complete folders. Severity should imho be blocker and target milestone set to 0.9.7.
this also happens in the bookmarks manager with bookmarks/folders/seperators. Note that I can delete bookmarks by dragging it into the "Inported IE Favorites" folder and get this error. Error: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXULOutlinerBuilder.getResourceAtIndex]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: <unknown filename> :: anonymous :: line 128" data: no] Source File: Line: 128 I've also found that if the bookmark was positioned before (above) the folder. dragging it into the folder works, but if it is positioned after the folder it does not.
Another thing is that dragging from folder to folder seems to be fine, this only happens when dragging from "root".
Keywords: regression
Blake, it seems the bookmarks went from one build (as in bug 114256) it was just moving bookmarks in weird places (even in bookmark manager) to deletion and moving in weird places in another build.
I just grabbed build 12-08 and it has some really scary behavior.. it deletes, moves, copies, puts them in the wrong folder, and even cant delete them, or move them sometimes.. (this build, or 12-7, I believe has the updating after you do an operation but doesnt visually update changes till you restart, (or possibly close and reopen bookmarks?) Anyway. I didn't have to import any bookmarks to try this out. And depending whether you moved them up or down it doesnt different behavior. Blake, I'm curious about the code for this? Do you a link to LXR file for the bookmarks manager that works on these operations?
scratch that "root" comment I made earlier. It happens also in folders but only when I drag to subfolders and only when dragging "up" not "down". Dennis: I suspect that the other things you are seeing are due to the weird state this drag deletion bug causes. btw I'm currently testing this with build 2001121508 win32
Attached patch patch for dataloss/drop issues (obsolete) — Splinter Review
Attachment #62119 - Attachment is obsolete: true
I can verify that this patch fixed bug 114256.
Attachment #62120 - Flags: review+
a=asa (on behalf of drivers) for checkin to 0.9.7
Comment on attachment 62120 [details] [diff] [review] patch for dataloss/drop issues r=hewitt
fixed on branch and trunk.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
No longer blocks: 114455
v Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: