Closed
Bug 891688
Opened 13 years ago
Closed 13 years ago
Defect - Caret selections not always appearing when tapping inside text areas embedded in iframes
Categories
(Firefox for Metro Graveyard :: Input, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: kjozwiak, Assigned: jimm)
References
Details
(Whiteboard: [selection] feature=defect u=metro_firefox_user c=content_features p=3)
Attachments
(2 files, 3 obsolete files)
|
980 bytes,
text/html
|
Details | |
|
13.62 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
When tapping inside text area's, the caret selection monocles will not be consistent and only appear on every other tap.
Steps to reproduce the issue:
1) Open Firefox Metro
2) Go to https://developer.mozilla.org/en-US/docs/HTML/HTML_Elements/textarea#HTML_Content
3) Tap on the word "something" inside the text area where the "Write something here" message appears (caret monocle should appear)
4) Tap on the word "Write" inside the text area (caret monocle will not be displayed)
5) Tap on the word "here" inside the text area (caret monocle should appear)
6) Tap on the word "something" inside the text area (caret monocle will not be displayed)
Current Behavior:
- caret selection monocles only appear on every other tap and are not consistent
Expected Behavior:
- caret selection monocle should be displayed every single time a user taps anywhere inside the text area
| Assignee | ||
Comment 1•13 years ago
|
||
confirmed, I can reproduce.
Whiteboard: feature=defect u=metro_firefox_user c=content_features p=0 → feature=defect u=metro_firefox_user c=content_features p=0, [selection]
| Assignee | ||
Updated•13 years ago
|
Summary: Defect - Caret selections not always appearing when tapping inside text area's → Defect - Caret selections not always appearing when tapping inside text areas embedded in iframes
| Assignee | ||
Comment 2•13 years ago
|
||
| Assignee | ||
Comment 3•13 years ago
|
||
text area in iframe: http://www.mathies.com/mozilla/textareainiframe.html
Updated•13 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 4•13 years ago
|
||
This is caused by us getting sub-frame relative coords in our tap capture listener -
http://mxr.mozilla.org/mozilla-central/source/browser/metro/base/content/helperui/SelectionHelperUI.js#809
which results in pointInTargetElement begin false here -
http://mxr.mozilla.org/mozilla-central/source/browser/metro/base/content/helperui/SelectionHelperUI.js#820
so we shut down selection on every other tap.
Tricky bug to fix, _msgTarget is the parent browser, so the translation doesn't happen.
This is a pretty serious flaw when dealing with subframes, but I don't see a way to address it without breaking remote content compatibility.
| Assignee | ||
Comment 5•13 years ago
|
||
What we could do here is detect that it's a subframe in SelectionHandler on set up and hand back coordinate offset info SelectionHelperUI can apply.
| Assignee | ||
Comment 6•13 years ago
|
||
Assignee: nobody → jmathies
| Assignee | ||
Comment 7•13 years ago
|
||
Attachment #781893 -
Attachment is obsolete: true
Updated•13 years ago
|
Status: NEW → ASSIGNED
QA Contact: jbecerra
Whiteboard: feature=defect u=metro_firefox_user c=content_features p=0, [selection] → [selection] feature=defect u=metro_firefox_user c=content_features p=0
| Assignee | ||
Updated•13 years ago
|
Whiteboard: [selection] feature=defect u=metro_firefox_user c=content_features p=0 → [selection] feature=defect u=metro_firefox_user c=content_features p=3
| Assignee | ||
Comment 8•13 years ago
|
||
Attachment #781898 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•13 years ago
|
||
Pushed to try. This test also pummels our FormHelper code pretty hard, which triggers a number of js errors in that module during the run. I'll file a follow up on that.
Attachment #782520 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 782521 [details] [diff] [review]
patch + tests
https://tbpl.mozilla.org/?tree=Try&showall=0&rev=4edf749c980f
Turned out that most of logic in the click handler could go away, the rest of the selection code has solidified up enough that it wasn't needed.
Attachment #782521 -
Flags: review?(mbrubeck)
Updated•13 years ago
|
Attachment #782521 -
Flags: review?(mbrubeck) → review+
| Assignee | ||
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Comment 13•13 years ago
|
||
Please land on fx-team now (see newsgroup post) - this unfortunately caused conflicts with metro landings on fx-team. Thank you :-)
Comment 14•13 years ago
|
||
Sorry forgot the link:
https://mail.mozilla.org/pipermail/firefox-dev/2013-July/000618.html
Comment 15•13 years ago
|
||
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Build ID: 20130815030203
Built from http://hg.mozilla.org/mozilla-central/rev/a8daa428ccbc
WFM
Tested on windows 8 using latest nightly for iteration-12. Followed steps provided in comment0 and got expected result.
Updated•12 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•