Closed
Bug 1419803
Opened 7 years ago
Closed 7 years ago
Typing into textarea or input element inside customElement duplicates characters on Android
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: anaran, Assigned: jessica)
References
Details
Attachments
(2 files)
2.94 KB,
application/x-javascript
|
Details | |
1.28 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Just type a key into the textarea at
https://anaran.github.io/import/
and notice how characters get duplicated a funny way on Android.
123 -> 321
abc -> abcabcaba
123abc -> cba321
abc123 -> abc123abc12abc1abc1abcabcaba
Use linux to see a crash instead, as reported in Bug 1419799.
input elements inside custom elements show same problem on Android, but work fine on linux.
Pasting text into these elements works correctly in my testing.
Reporter | ||
Updated•7 years ago
|
Severity: normal → major
Reporter | ||
Comment 1•7 years ago
|
||
To review and reproduce testcase locally, use this:
git clone https://github.com/anaran/import.git
git checkout gh-pages
python -m SimpleHTTPServer
Visit http://localhost:8000/
Updated•7 years ago
|
Priority: -- → P2
Reporter | ||
Comment 2•7 years ago
|
||
testcase is also available as tarball at https://bugzilla.mozilla.org/show_bug.cgi?id=1419799#c4
Updated•7 years ago
|
Blocks: custom-elements-initial-release
Reporter | ||
Comment 3•7 years ago
|
||
New minimal testcase now available at
https://raw.githubusercontent.com/anaran/import/9bf3e184ad4bfffb4b5377f0e03ff64018cf6164/shadowy_testcase.js
Just run it in a Scratchpad on a newly opened tab (Ctrl+T) or just about:blank.
Use Scratchpad in WebIDE to remotely debug on Android device.
Assignee | ||
Comment 4•7 years ago
|
||
Hi Adrian, can you still see this now that Bug 1419799 is fixed?
Flags: needinfo?(adrian.aichner)
Reporter | ||
Comment 5•7 years ago
|
||
(In reply to Jessica Jong [:jessica] from comment #4)
> Hi Adrian, can you still see this now that Bug 1419799 is fixed?
Hi Jessica, unfortunately this bug is still around in
navigator.buildID
20171220100049
navigator.userAgent
Mozilla/5.0 (Android 6.0.1; Mobile; rv:59.0) Gecko/59.0 Firefox/59.0
Flags: needinfo?(adrian.aichner)
Assignee | ||
Comment 6•7 years ago
|
||
Thanks, Adrian.
I set up my environment and was able to reproduce this too using the testcase in attachment 8934060 [details].
Typing "123" shows "321", and printing document.getElementsByTagName("div")[0].shadowRoot.firstChild.value gives "321" too.
Assignee | ||
Comment 7•7 years ago
|
||
I saw a bunch of warnings:
I/Gecko (13535): [13535, Main Thread] WARNING: 'startNode->GetUncomposedDoc() != mPresShell->GetDocument()', file /home/jessica/hg/fennec/dom/events/ContentEventHandler.cpp, line 312
I/Gecko (13535): [13535, Main Thread] WARNING: 'NS_FAILED(rv)', file /home/jessica/hg/fennec/dom/events/ContentEventHandler.cpp, line 380
So I changed to use GetComposedDoc() instead, which makes sense I think.
The warnings are shown in Desktop too, but it looks like we ignore the warning/error result in Desktop?
There are still a lot of use `GetUncomposedDoc` that needs to be checked, we will track them in Bug 1413105.
Attachment #8940656 -
Flags: review?(bugs)
Comment 8•7 years ago
|
||
Comment on attachment 8940656 [details] [diff] [review]
patch, v1.
yeah, makes sense.
Attachment #8940656 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
No longer blocks: custom-elements-initial-release
Assignee | ||
Comment 9•7 years ago
|
||
Assignee: nobody → jjong
Keywords: checkin-needed
Comment 10•7 years ago
|
||
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2ba9bb352b5d
Use GetComposedDoc instead of GetUncomposedDoc in ContentEventHandler. r=smaug
Keywords: checkin-needed
Comment 11•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•