Closed Bug 1394158 Opened 7 years ago Closed 7 years ago

getSelectionDetails should return link information if a URL is highlighted inside an input element

Categories

(Toolkit :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: tcsc, Assigned: tcsc)

References

Details

Attachments

(1 file)

This allows the context menu to show e.g. "Send Link to Device". One obvious use case for this is sites like https://send.firefox.com/ which provide a link inside an `<input>` element for easier copying.

Fairly trivial patch incoming.
Felipe: feel free to point me at a better reviewer if necessary, wasn't sure who to request from.
Comment on attachment 8901509 [details]
Bug 1394158 - Make BrowserUtils.getSelectionDetails check for URLs inside editable elements

https://reviewboard.mozilla.org/r/172964/#review178748
Attachment #8901509 - Flags: review?(felipc) → review+
Pushed by tchiovoloni@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5f4464e0054
Make BrowserUtils.getSelectionDetails check for URLs inside editable elements r=Felipe
https://hg.mozilla.org/mozilla-central/rev/d5f4464e0054
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
It seems this patch could be the cause of bug 1420560
Depends on: 1423122
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: