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)
Firefox
Bookmarks & History
Tracking
()
VERIFIED
FIXED
Firefox 3 beta3
People
(Reporter: mrtech, Assigned: mak)
Details
(Keywords: regression)
Attachments
(1 file, 5 obsolete files)
1.78 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•19 years ago
|
||
any idea if this ever worked / regressiondate (estimate) ?
Comment 2•19 years ago
|
||
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.
Comment 3•19 years ago
|
||
(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.
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•19 years ago
|
||
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.
Comment 6•19 years ago
|
||
Just checked with Windows XP.
I'll take a look the behavior in linux, later.
Comment 7•19 years ago
|
||
Fixed incorrect increment handling in the previous patch.
Attachment #229083 -
Attachment is obsolete: true
Updated•19 years ago
|
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.
Comment 10•19 years ago
|
||
(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.
Updated•18 years ago
|
Flags: blocking1.9a1?
Updated•18 years ago
|
Flags: blocking-firefox3?
Comment 11•18 years ago
|
||
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
Updated•18 years ago
|
Resolution: INVALID → WORKSFORME
Comment 12•18 years ago
|
||
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 → ---
Updated•18 years ago
|
Flags: blocking-firefox3- → blocking-firefox3?
Updated•18 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Updated•18 years ago
|
Target Milestone: --- → Firefox 3 alpha5
Updated•18 years ago
|
Target Milestone: Firefox 3 alpha5 → Firefox 3 alpha6
Updated•18 years ago
|
Priority: -- → P3
Updated•18 years ago
|
Assignee: nobody → cyen
Status: REOPENED → NEW
Updated•18 years ago
|
Assignee: cyen → swon
Comment 14•18 years ago
|
||
I wonder why the assignee changes frequently. Can I steal this bug?
Comment 15•18 years ago
|
||
Sure.It's set as a A6 blocker btw.
Comment 16•18 years ago
|
||
Need to know ASAP if you are working on this or not.
Comment 17•18 years ago
|
||
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
Updated•18 years ago
|
Attachment #269200 -
Attachment is obsolete: true
Comment 18•18 years ago
|
||
I don't understand which is larger, apparently.
Updated•18 years ago
|
Attachment #269201 -
Flags: review?(mano)
Updated•18 years ago
|
Assignee: swon → torisugari
Updated•18 years ago
|
Target Milestone: Firefox 3 alpha6 → Firefox 3 beta1
Comment 19•18 years ago
|
||
JS comments go in //, please. Agreed on the contents btw ;)
Comment 20•18 years ago
|
||
(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)
Updated•18 years ago
|
Target Milestone: Firefox 3 M7 → Firefox 3 M9
Comment 21•18 years ago
|
||
moving out bugs that don't need to block b1
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Updated•17 years ago
|
Whiteboard: [has patch][needs review mano]
Updated•17 years ago
|
Target Milestone: Firefox 3 M10 → Firefox 3 M11
Comment 22•17 years ago
|
||
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)
Updated•17 years ago
|
Whiteboard: [has patch][needs review mano]
Assignee | ||
Comment 23•17 years ago
|
||
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 24•17 years ago
|
||
Comment on attachment 295494 [details] [diff] [review]
attempted new patch
r=mano.
Attachment #295494 -
Flags: review?(mano) → review+
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Updated•17 years ago
|
Assignee: torisugari → mak77
Comment 25•17 years ago
|
||
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 ago → 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Comment 26•17 years ago
|
||
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.
Assignee | ||
Comment 27•17 years ago
|
||
os x only problem?
this is working on windows, can someone test on linux?
Comment 28•17 years ago
|
||
Marcia, please file a new bug for it not working on the Mac.
Comment 29•17 years ago
|
||
Filed Bug 411384 for le Mac.
Comment 30•17 years ago
|
||
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
Comment 31•15 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
•