Closed Bug 411384 Opened 18 years ago Closed 19 days ago

[Mac] Dragging Local files to Bookmarks Toolbar does not work

Categories

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

x86
macOS
defect

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: marcia, Assigned: Logan)

Details

(Keywords: polish)

Attachments

(1 file)

Seen using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b3pre) Gecko/2008010804 Minefield/3.0b3pre. STR: 1. Start Firefox 2. Drag any file, html, text, xpi, etc to the Bookmarks Toolbar Actual Results: Unable to add the bookmark. No error in console. Bug 336286 was filed for Windows and Linux but it seems to work on those two operating systems.
Since bug 336286 was blocking-firefox3+, it seems to me this should block too.
Flags: blocking-firefox3?
Flags: blocking-firefox3? → blocking-firefox3+
Priority: -- → P4
Not blocking on this bug for final ship. Would take a safe enough patch if one comes through.
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Keywords: polish
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
Priority: P4 → --
Priority: -- → P3
Severity: normal → S3

When a file is dragged on macOS to Firefox's Bookmarks Toolbar,
advertise URL support and convert the file to a file:// URL at the widget
level. This mirrors the Windows implementation (FindURLFromLocalFile).

The fix has two parts:

  1. nsDragService.mm: Advertise URL support when files are present on the
    pasteboard by checking for kUTTypeFileURL when kURLMime is requested
  2. nsCocoaUtils.mm: Convert files to file:// URLs when kURLMime is
    requested but only kUTTypeFileURL is available, formatting as
    "URL\nTitle" to match the expected text/x-moz-url format
Assignee: nobody → loganrosen
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
QA Whiteboard: [qa-ver-opt-c153/b152]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: