Closed Bug 336286 Opened 19 years ago Closed 17 years ago

Dragging Local files to Bookmarks Toolbar no longer works

Categories

(Firefox :: Bookmarks & History, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 3 beta3

People

(Reporter: mrtech, Assigned: mak)

Details

(Keywords: regression)

Attachments

(1 file, 5 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060502 Minefield/3.0a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060502 Minefield/3.0a1 When dragging local files (at least in windows) to the Bookmark Toolbar (at least) no longer creates a link. Reproducible: Always Steps to Reproduce: 1. Open Firefox 2. Drag any file, text, xpi, etc to the Bookmarks Toolbar Actual Results: No bookmark added and the following error shows up in js console with strict & show enabled: Error: data has no properties Source file: chrome://browser/content/places/controller.js Line: 1795 Expected Results: Bookmark to local file created.
any idea if this ever worked / regressiondate (estimate) ?
On 1.5 it seems to work on Windows but not Linux (at least mine, but it's old). I doubt it ever worked with places.
(In reply to comment #2) > On 1.5 it seems to work on Windows but not Linux (at least mine, but it's old). > I doubt it ever worked with places. > I'm sure i've seen the comment about linux somewhere (couldn't find it)
Not really sure if it ever worked, I usually only does this for local page testing and just don't seem to remember it working since places was put in, sorry for the lack of details.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I found that this is just because the first flavor is "text/x-moz-url" (at least for PlacesController) and the data does not contain any "\n". I guess the original mime was "text/url-list", but gecko appended no linefeed when converted it into "text/x-moz-url". As a result, PlacesController.unwrapNodes(...) kicks the droped data as it believes one-line "text/x-moz-url" is malformed.
Attached patch patch v.1 (obsolete) — Splinter Review
Just checked with Windows XP. I'll take a look the behavior in linux, later.
Attached patch patch v.2 (obsolete) — Splinter Review
Fixed incorrect increment handling in the previous patch.
Attachment #229083 - Attachment is obsolete: true
Flags: blocking1.9a1?
Keywords: regression
The regression range on Windows XP is: 20060327-20060328
Version: unspecified → Trunk
(In reply to comment #4) > just don't seem to remember it working since places was put in, > Places landed on trunk on 2006-03-02. Philor linked me to this page: http://developer.mozilla.org/devnews/index.php/2006/03/02/places-enabled-by-default-on-trunk/ and it worked on 2006-03-27. Meanwhile you can drag the file to the browser window and then to drag the url to the bookmark toolbar.
(In reply to comment #8) > The regression range on Windows XP is: > 20060327-20060328 Yes, it's bug 323812, apparently, but it's not the point. What we should decide now is "string without a line brake is a malformed x-moz-url, or not". If we regard it as *malformed*, probably we should fix nsClipboard:FindURLFromLocalFile, http://lxr.mozilla.org/mozilla/source/widget/src/windows/nsClipboard.cpp#756 because the data has no line break, and it's easy to append one here, at least on Windows. If no-line-break is OK, we should do some trick to make Firefox accept it, something like attachment (id=229095). Or catching x-moz-file before x-moz-url is also good to work around (in that case, it's still malformed as a x-moz-url, so there can be side effects somewhere somehow). I said "what we shoud decide now", and it's "what the owner/peers decide", indeed. And I myself have no opinion on which is the better.
Flags: blocking1.9a1?
Flags: blocking-firefox3?
WFM Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a5pre) Gecko/20070521 Minefield/3.0a5pre
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: blocking-firefox3? → blocking-firefox3-
Resolution: --- → INVALID
Resolution: INVALID → WORKSFORME
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070523 Minefield/3.0a5pre ID:2007052307 [cairo] I get Error: data has no properties Source file: chrome://browser/content/places/utils.js Line: 686 when I drag a local file (tried html and images) to the Bookmarks Toolbar Reopening
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Flags: blocking-firefox3- → blocking-firefox3?
Flags: blocking-firefox3? → blocking-firefox3+
Target Milestone: --- → Firefox 3 alpha5
Target Milestone: Firefox 3 alpha5 → Firefox 3 alpha6
doesn't work on mac either
OS: Windows XP → All
Hardware: PC → All
Priority: -- → P3
Assignee: nobody → cyen
Status: REOPENED → NEW
Assignee: cyen → swon
I wonder why the assignee changes frequently. Can I steal this bug?
Sure.It's set as a A6 blocker btw.
Need to know ASAP if you are working on this or not.
Attached patch Minimum patch v1 (obsolete) — Splinter Review
By "minimum", I mean it should work in the same way as Fx 2.0.x does. And I expect it would ease reviewers. (In reply to comment #16) > Need to know ASAP if you are working on this or not. I'm sorry for being late, I'm not that active on weekdays.
Attachment #229095 - Attachment is obsolete: true
Attachment #269200 - Attachment is obsolete: true
Attached patch Minimum patch v2 (obsolete) — Splinter Review
I don't understand which is larger, apparently.
Attachment #269201 - Flags: review?(mano)
Assignee: swon → torisugari
Target Milestone: Firefox 3 alpha6 → Firefox 3 beta1
JS comments go in //, please. Agreed on the contents btw ;)
Attached patch Patch (obsolete) — Splinter Review
(In reply to comment #19) > Agreed on the contents btw ;) Maybe I should file another bug, but I'd ask you to review it too, anyway. So I addressed that XXX comment.
Attachment #269201 - Attachment is obsolete: true
Attachment #272030 - Flags: review?(mano)
Attachment #269201 - Flags: review?(mano)
Target Milestone: Firefox 3 M7 → Firefox 3 M9
moving out bugs that don't need to block b1
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Whiteboard: [has patch][needs review mano]
Target Milestone: Firefox 3 M10 → Firefox 3 M11
Comment on attachment 272030 [details] [diff] [review] Patch I apologize for the very long delay here, this no longer applies :( If you don't have cycles to update this patch, let me know and I'll take care of that as soon as I can.
Attachment #272030 - Flags: review?(mano)
Whiteboard: [has patch][needs review mano]
original patch does not apply anymore, i've tried to apply the same idea to the new code, and it's working.
Attachment #272030 - Attachment is obsolete: true
Attachment #295494 - Flags: review?(mano)
Comment on attachment 295494 [details] [diff] [review] attempted new patch r=mano.
Attachment #295494 - Flags: review?(mano) → review+
Keywords: checkin-needed
Assignee: torisugari → mak77
Checking in browser/components/places/content/utils.js; /cvsroot/mozilla/browser/components/places/content/utils.js,v <-- utils.js new revision: 1.93; previous revision: 1.92 done
Status: NEW → RESOLVED
Closed: 18 years ago17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Tomcat and I aren't able to drag a local file to the toolbar using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008010704 Minefield/3.0b3pre. He sees the same issue on Leopard.
os x only problem? this is working on windows, can someone test on linux?
Marcia, please file a new bug for it not working on the Mac.
Filed Bug 411384 for le Mac.
Dragging locally to bookmarks toolbar works on Linux, as well as Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b3pre) Gecko/2008010805 Minefield/3.0b3pre. Verifying fixed for those two. The actual bookmark name appears strange, but I can file a separate bug on that.
Status: RESOLVED → VERIFIED
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.

Attachment

General

Created:
Updated:
Size: