Closed Bug 1433205 Opened 6 years ago Closed 6 years ago

[iOS 11] Allow hyperlinks to be dragged and dropped into Firefox for iOS

Categories

(Firefox for iOS :: Browser, enhancement, P1)

Other
iOS
enhancement

Tracking

()

VERIFIED FIXED
Tracking Status
fxios 11.0 ---
fxios-v11.0 --- verified

People

(Reporter: justindarc, Assigned: justindarc)

References

Details

Attachments

(1 file)

55 bytes, text/x-github-pull-request
st3fan
: review+
justindarc
: ui-review?
bbell
Details | Review
iOS 11 introduced drag and drop APIs allowing content to be dragged and dropped between apps on iPad. Firefox for iOS should be able to receive hyperlinks/URLs to be dropped in from other apps.
Assignee: nobody → jdarcangelo
Status: NEW → ASSIGNED
Priority: -- → P1
Attached file GitHub Pull Request
This patch enables our browser chrome to have hyperlinks/URLs dropped in from other apps. Hyperlinks/URLs can also be dropped anywhere on the home tab panel. The webview is not part of the drop target for this feature which enables hyperlinks/URLs to still be dragged into text fields inside of web content.
Attachment #8945549 - Flags: ui-review?(bbell)
Attachment #8945549 - Flags: review?(sarentz)
This looks great. I think we should land this and file followup bugs for the following two:

Safari allows links to be dropped anywhere in an already loaded page. It will make an exception for stuff dropped in form fields and text areas, but anything dropped in the 'white space' of a page will result in loading that url. This is why https://github.com/mozilla-mobile/firefox-ios/pull/3209 was written, but that is admittedly a pretty hacky (although working!) solution. I wonder if WebKit has a JS API that allows us to accept drops. We could install a default handler on pages to forward drops to Swift. I vaguely remember that Apple was talking about this in some document.

We should also accept a content type of text, which should translate to a search, just like Paste & Go does.
Attachment #8945549 - Flags: review?(sarentz) → review+
Blocks: 1433278
Verifying as fix on 11.0(9148). Hyperlinks/URLs can be dropped in Firefox from other apps.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: