Closed
Bug 509676
Opened 16 years ago
Closed 16 years ago
Can't drag and drop a tag container to another standard point
Categories
(Firefox :: Bookmarks & History, defect)
Tracking
()
RESOLVED
FIXED
Firefox 3.7a1
| Tracking | Status | |
|---|---|---|
| status1.9.2 | --- | beta1-fixed |
People
(Reporter: vicky.sun, Assigned: mak)
References
Details
Attachments
(1 file, 2 obsolete files)
|
11.44 KB,
patch
|
beltzner
:
approval1.9.2+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.1) Gecko/20090803 Firefox/3.5.1
Steps to Perform:
1. Go to Bookmarks | Organize Bookmarks
2. Add a tag to a bookmark or set of bookmarks within the library.
3. Go to the newly created tag folder, via the left pane, and drag-and-drop it to the Bookmarks Toolbar folder. View the contents of the newly added instance.
4. Repeat step 3 for the Bookmarks menu.
Expected Results:
After step 3 and 4, a new instance of step 2's tag folder should be added to the standard point. It's contents should include the tagged bookmark(s) and the original tag folder should not be removed from the general Tags folder.
Actual Results:
Nothing happened.
In error console, there is an error as below:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavBookmarksService.getFolderIdForItem]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: file:///usr/lib/firefox/components/nsPlacesTransactionsService.js :: placesMoveItemTransactions :: line 570" data: no]
Also broken on Linux.
372 case PlacesUtils.TYPE_X_MOZ_PLACE:
373 if (data.id <= 0) // non-bookmark item
374 return this._getURIItemCopyTransaction(data, container, index);
375
376 if (copy) {
377 // Copying a child of a live-bookmark by itself should result
378 // as a new normal bookmark item (bug 376731)
379 return this._getBookmarkItemCopyTransaction(data, container, index,
380 ["livemark/bookmarkFeedURI"]);
381 }
382 else
383 return this.ptm.moveItem(data.id, container, index);
data.id is undefined.
copy is false on GNOME, because drop effect is "link" not "copy".
On Mac, data.id is also undefined, but drop effect is "copy".
OS: Solaris → Linux
This might be a regression of Bug 371823.
I guess, if (data.id <= 0) should be if (typeof data.id == 'undefined' || data.id <= 0)
Comment 4•16 years ago
|
||
Probably related: bug 502192, bug 484489
| Assignee | ||
Comment 7•16 years ago
|
||
can i get a better description of steps 3 and 4?
i should drag a tag container from library to the toolbar, and then also drag a tag container to bookmarks menu?
And this is reproduceable only in Linux and SunOS?
(In reply to comment #7)
> i should drag a tag container from library to the toolbar, and then also drag a
> tag container to bookmarks menu?
No, the step3 and step4 are not precedence relationship. the purpose of the test case is to prove the tag folder can be copied to Bookmark toolbar or Bookmark menu
>
> And this is reproduceable only in Linux and SunOS?
I haven't other OS at hand now. But I know Mac is ok.
(In reply to comment #7)
> can i get a better description of steps 3 and 4?
> i should drag a tag container from library to the toolbar, and then also drag a
> tag container to bookmarks menu?
>
> And this is reproduceable only in Linux and SunOS?
Drag it to either toolbar or bookmark menu or bookmark folder would fail on Linux and SunOS.
Comment #2 and comment #3 explained why it fails, and why it doesn't on Mac OS X.
| Assignee | ||
Comment 10•16 years ago
|
||
yeah, data.id is undefined on windows too, so that's not the problem (still a bug though), the copy does not happen due to the "link" dropEffect issue.
Assignee: nobody → mak77
| Assignee | ||
Comment 11•16 years ago
|
||
Our utils are so complex to follow, they are doing fancy loops and calls to accomplish quite easy tasks. They really need a cleanup, fixing a bug like this takes a lot of time just to follow all serialization calls.
Attachment #399378 -
Flags: review?(dietrich)
| Assignee | ||
Updated•16 years ago
|
Attachment #399378 -
Attachment is obsolete: true
Attachment #399378 -
Flags: review?(dietrich)
| Assignee | ||
Comment 12•16 years ago
|
||
Comment on attachment 399378 [details] [diff] [review]
patch v1.0
forgot something
| Assignee | ||
Comment 13•16 years ago
|
||
this one is correct
Attachment #399384 -
Flags: review?(dietrich)
Comment 14•16 years ago
|
||
Comment on attachment 399384 [details] [diff] [review]
patch v1.1
>+ // Mark root folders.
>+ if (aJSNode.id == self.bookmarks.placesRoot)
>+ aJSNode.root = "placesRoot";
>+ else if (aJSNode.id == self.bookmarks.bookmarksMenuFolder)
>+ aJSNode.root = "bookmarksMenuFolder";
>+ else if (aJSNode.id == self.bookmarks.tagsFolder)
>+ aJSNode.root = "tagsFolder";
>+ else if (aJSNode.id == self.bookmarks.unfiledBookmarksFolder)
>+ aJSNode.root = "unfiledBookmarksFolder";
>+ else if (aJSNode.id == self.bookmarks.toolbarFolder)
>+ aJSNode.root = "toolbarFolder";
>+ }
we should probably make the roots into consts for all of utils.js to reduce all the xpconnect traversals. please file a followup for this, or fix here.
r=me otherwise.
Attachment #399384 -
Flags: review?(dietrich) → review+
| Assignee | ||
Comment 15•16 years ago
|
||
addressed comments, replaced some instance of PU.bookmarks.some_root, that is bad.
Attachment #399384 -
Attachment is obsolete: true
| Assignee | ||
Comment 16•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
| Assignee | ||
Comment 17•16 years ago
|
||
Comment on attachment 400012 [details] [diff] [review]
patch v1.2
asking approval, hard to test automatically, but small change.
Attachment #400012 -
Flags: approval1.9.2?
Comment 18•16 years ago
|
||
Comment on attachment 400012 [details] [diff] [review]
patch v1.2
a192=beltzner, if we do this, needs to be for beta
Attachment #400012 -
Flags: approval1.9.2? → approval1.9.2+
| Assignee | ||
Comment 19•16 years ago
|
||
status1.9.2:
--- → beta1-fixed
Comment 21•16 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•