Support for drag and drop (implement nsDragService for GeckoView)
Categories
(GeckoView :: General, enhancement, P5)
Tracking
(relnote-firefox 124+, firefox124 fixed)
People
(Reporter: tigeroakes, Assigned: m_kato)
References
(Blocks 3 open bugs)
Details
(Keywords: dev-doc-needed)
Attachments
(4 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
When filling in web forms/payment pages a user may want to use split screen mode and drag a text field from one app into the relevant field on the website.
For example dragging and dropping from 1Password, as shown on this page into Chrome: https://support.1password.com/getting-started-android/#drag-and-drop-to-fill-in-other-apps
Fenix bug: https://github.com/mozilla-mobile/fenix/issues/4004
Comment 1•6 years ago
|
||
This is a user requested feature. Waiting until it becomes a priority.
| Assignee | ||
Updated•4 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
The following field has been copied from a duplicate bug:
| Field | Value | Source |
|---|---|---|
| Status | NEW | bug 691284 |
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 6•2 years ago
|
||
I have a WIP for it. Reviewable patch series are soon.
| Assignee | ||
Comment 7•2 years ago
|
||
Main thread and APZ controller thread are difffent on GeckoView. Some
drag events cannot be converted to InputData and aren't handled by APZ.
So we need consider drag events more for GeckoView.
| Assignee | ||
Comment 8•2 years ago
|
||
This implementation supports
- HTML drag & drop API.
- Drop and drop for text/plain or text/html from/to external application.
Depends on D197329
| Assignee | ||
Comment 9•2 years ago
|
||
The dropped item is set on drop event handler in Android. Current
Gecko's implementation caches dropped item as DataTransfer when any
drag events are fired. It will works on desktop platform, but doesn't
on GeckoView. Even if drop item is set by handling drop event,
DataTransfer's cache isn't refreshed.
So if drop event is received, we re-fill DataTransfer on GeckoView.
Depends on D197330
| Assignee | ||
Comment 10•2 years ago
|
||
GeckoView's drag threshold is large and mochitest runs on mobile
viewport.
So I would like to adjust this value to run drag and drop tests on
GeckoView.
Depends on D197331
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a2758c9c19ec
https://hg.mozilla.org/mozilla-central/rev/0109b64f9e84
https://hg.mozilla.org/mozilla-central/rev/610bc3316bee
https://hg.mozilla.org/mozilla-central/rev/8af82ec7ea26
| Assignee | ||
Updated•2 years ago
|
Comment 13•2 years ago
|
||
:m_kato is this something you would want to nominate for fx124 release notes?
| Assignee | ||
Comment 14•2 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
Firefox for Android supports HTML drop and drop API
[Suggested wording]:
Firefox for Android supports HTML drop and drop API when using mouse. Also, it accepts plain text or HTML text by drop operation from external application.
[Links (documentation, blog post, etc)]:
Comment 15•2 years ago
|
||
I assume you meant drag and drop?
Added to Fx124 nightly notes as well as the draft for the final release notes
https://www.mozilla.org/en-US/firefox/124.0a1/releasenotes/
Firefox for Android now supports HTML drag and drop API when using a mouse. Also, it accepts plain text or HTML text by drop operation from external applications.
| Assignee | ||
Comment 16•2 years ago
|
||
(In reply to Dianna Smith [:diannaS] from comment #15)
I assume you meant drag and drop?
Ah, yes. This is typo. Thank you for correction.
Description
•