Closed
Bug 1199161
Opened 11 years ago
Closed 11 years ago
Add selectedTextContent to CaretStateChangedEvent
Categories
(Core :: DOM: Selection, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | fixed |
People
(Reporter: gasolin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
(Keywords: feature, foxfood)
Attachments
(3 files)
When we select a certain text, we can parse it and show the related actions when the text matches certain format.
Such as
1. select a tel number or text starts with tel: and shows dial action in copy & paste float panel. press the action will trigger the dialer
2. select a short sentence and shows search or dictionary action. press the action will trigger browser or other search options
| Reporter | ||
Comment 1•11 years ago
|
||
(2. may better served with support search providers via existing desktop opensearch addon)
3. select a url (without hyperlink) and shows `browser` action in float panel, press the action will trigger the browser
| Assignee | ||
Updated•11 years ago
|
Blocks: AccessibleCaret
| Reporter | ||
Comment 2•11 years ago
|
||
in today's experiment, window.selection() fail because of system app can't directly access content inside of app window...
| Reporter | ||
Comment 3•11 years ago
|
||
It add a new button in float menu and can trigger an action. Need gecko support to get select string content from event.detail.
| Assignee | ||
Comment 4•11 years ago
|
||
ni myself for the gecko support in comment 3.
Flags: needinfo?(tlin)
| Reporter | ||
Comment 5•11 years ago
|
||
append workflow diagram to help communicate the idea
| Assignee | ||
Comment 6•11 years ago
|
||
Bug 1199161 - Add selectedTextContent to CaretStateChangedEvent. r=kanru, sr=smaug
The old SelectionStateChangedEvent dispatched by SelectionChanged had
this field, but it has not being ported to CaretStateChangedEvent. We
should include selected text in the event so that Gaia could have a
chance to enhance user experience.
Attachment #8661719 -
Flags: review?(kchen)
Attachment #8661719 -
Flags: review?(bugs)
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(tlin)
Attachment #8661719 -
Flags: superreview?(bugs)
Updated•11 years ago
|
Attachment #8661719 -
Flags: superreview?(bugs)
Attachment #8661719 -
Flags: superreview+
Attachment #8661719 -
Flags: review?(bugs)
Attachment #8661719 -
Flags: review+
| Assignee | ||
Comment 7•11 years ago
|
||
Please help check in "Bug 1199161 - Add selectedTextContent to CaretStateChangedEvent."
Keywords: checkin-needed,
leave-open
| Assignee | ||
Updated•11 years ago
|
Attachment #8661719 -
Flags: review?(kchen)
Keywords: checkin-needed
| Reporter | ||
Comment 9•11 years ago
|
||
Thanks TingYu! I'll prototyping the float menu action in bug 1205650
Assignee: nobody → tlin
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Summary: [feature] smarter copy & paster float panel to show related actions by matching patterns → Add selectedTextContent to CaretStateChangedEvent
| Assignee | ||
Comment 10•11 years ago
|
||
No problem. Let's wait until the patch land on m-c then :-)
| Assignee | ||
Updated•11 years ago
|
Component: Gaia → Selection
Product: Firefox OS → Core
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•