Closed
Bug 811177
Opened 12 years ago
Closed 11 years ago
document designMode does not bring up the keyboard
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Firefox OS Graveyard
Gaia::Keyboard
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: xyuan, Assigned: janjongboom)
References
()
Details
(Whiteboard: [label:Keyboard & IME])
Attachments
(3 files, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
xyuan
:
review+
|
Details | Diff | Splinter Review |
(deleted),
text/x-github-pull-request
|
janjongboom
:
review+
|
Details |
If we set the designMode property to 'on', the entire document will be editable. The keyboard doesn't respond to such type of document.
Testcase provided Martijn Wargers [:mw22]:
- http://people .mozilla.org/~mwargers/tests/contenteditable/designmode.htm
Reporter | ||
Updated•12 years ago
|
Whiteboard: [label:Keyboard & IME]
Comment 1•12 years ago
|
||
Can we fix this as soon as possible? It is blocking the release of my app (https://github.com/joshua-s/firetext/).
Reporter | ||
Comment 2•11 years ago
|
||
Another way to set the entire document editable is letting document.designMode = “on”, which can't bring keyboard as well.
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #796102 -
Flags: review?(xyuan)
Reporter | ||
Comment 6•11 years ago
|
||
Will the patch break bug 902168?
Status: NEW → ASSIGNED
Flags: needinfo?(janjongboom)
Assignee | ||
Comment 7•11 years ago
|
||
I don't think so, at least contenteditable kept working for me in both SMS as well as in the tests and I havent seen any messages, but it looks like it could break that yeah. I'll write a test case...
Flags: needinfo?(janjongboom)
Reporter | ||
Comment 8•11 years ago
|
||
I made a mistake in comment 2, and the other way to set the entire document editable should be:
<body contenteditable>contentEditable</body>
Reporter | ||
Updated•11 years ago
|
Reporter | ||
Comment 9•11 years ago
|
||
On b2g-desktop, the following test failed with gecko patch of Comment 4:
1. Apply gaia_test_case.patch to gaia
2. Launch b2g-desktop and open |UI Tests| -> |Empty|
3. Click the content text 'Hello World!', which is editable
Expected:
The keyboard is launched.
Actual:
The keyboard won't show for the first time, but after open the keyboard with other input field and reproduce the above steps, the keyboard may show.
Reporter | ||
Updated•11 years ago
|
Attachment #796100 -
Flags: review?(xyuan)
Assignee | ||
Comment 10•11 years ago
|
||
The bug addressed in Comment 9 has to do with nested iframes (which is what we have in UI tests)... Will take a look.
Assignee | ||
Comment 11•11 years ago
|
||
Hi Yuan, the attached patch passes:
* iframe document with designMode=on (tests attached)
* iframe with body contenteditable (bug 902168) (tests attached)
* test case provided in gaia_test_case.patch
Attachment #796100 -
Attachment is obsolete: true
Attachment #796568 -
Flags: review?(xyuan)
Reporter | ||
Comment 12•11 years ago
|
||
Comment on attachment 796568 [details] [diff] [review]
Gecko patch v2
Review of attachment 796568 [details] [diff] [review]:
-----------------------------------------------------------------
r=me.
Tested on device and b2g-desktop. The patch works fine.
Attachment #796568 -
Flags: review?(xyuan) → review+
Reporter | ||
Comment 13•11 years ago
|
||
Comment on attachment 796102 [details]
Tests
r=me.
I don't actually run the test, but it looks good for me.
And could please also add a test page to UI tests app so that QA can help to verify the bug.
Attachment #796102 -
Flags: review?(xyuan) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 14•11 years ago
|
||
Added iframe tests to UI tests, and landed in https://github.com/mozilla-b2g/gaia/commit/53d993416233fd1f5de3976ac49c62f5ddc465af (needs gecko patch to have landed as well to be working of course)
Reporter | ||
Comment 15•11 years ago
|
||
Well done!
Comment 16•11 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Comment 17•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 18•11 years ago
|
||
(In reply to Jan Jongboom [:janjongboom] from comment #14)
> Added iframe tests to UI tests, and landed in
> https://github.com/mozilla-b2g/gaia/commit/
> 53d993416233fd1f5de3976ac49c62f5ddc465af (needs gecko patch to have landed
> as well to be working of course)
Backed out due to this depends on the Gaia patch of Bug 906096, which is also backed out for new IME framework to land.
revert commit:
6e2767ebb2d34dc1511ce40914c813c7693a0f5c
Assignee | ||
Comment 19•11 years ago
|
||
Was not reopened when backing out...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 20•11 years ago
|
||
Attachment #796102 -
Attachment is obsolete: true
Attachment #802180 -
Flags: review+
Assignee | ||
Comment 21•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
Updated•11 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
Updated•10 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•