Closed
Bug 1266322
Opened 9 years ago
Closed 9 years ago
Fennec for Android doesn't allow user to paste from clipboard on etherpad
Categories
(Firefox for Android Graveyard :: Text Selection, defect)
Firefox for Android Graveyard
Text Selection
Tracking
(firefox46 affected, firefox47 affected, firefox48 affected, firefox49 verified)
RESOLVED
FIXED
Firefox 49
People
(Reporter: Swarnava, Assigned: capella)
References
()
Details
Attachments
(1 file)
STR:
1. Go to https://public.etherpad-mozilla.org/p/testforclipboard
2. Try to paste something using long tap on text area.
Actual Result:
Nothing happening, neither the paste option is coming not copy paste clipboard toolbar is appearing on urlbar.
Expected Result:
It should allow pasting from other's source.
Reporter | ||
Updated•9 years ago
|
Summary: Fennec for Android doesn't allow user to paste from clipboard → Fennec for Android doesn't allow user to paste from clipboard on etherpad
Reporter | ||
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
Ah, Etherpad again :/ I notice that CUT isn't made available as an action either, so I'd guess Services.FocusManager is tricking us in _getSelectionTargets() / [0].
[0] http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/ActionBarHandler.js?rev=4646acc6df79&mark=165-165#157
Component: Keyboards and IME → Text Selection
Comment 2•9 years ago
|
||
Is a regression on Nightly, or does this affect all release channels?
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to :Margaret Leibovic from comment #2)
> Is a regression on Nightly, or does this affect all release channels?
I tested with Fennec 46 beta on Samsung Galaxy S4 running Android 5.1.1 Custom Rom
Reporter | ||
Updated•9 years ago
|
status-firefox46:
--- → affected
status-firefox47:
--- → affected
Assignee | ||
Comment 4•9 years ago
|
||
Etherpad is a document in designMode. Updating the ActionBarHandler / building some tests doesn't look too difficult on first glance.
I haven't looked at retro-fitting SelectionHandler for pre-48 versions yet.
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•9 years ago
|
||
fyi, I'm using [0] for a simplified testcase for Etherpad / designMode documents for now. It may become more robust / complex as I continue through testing. I believe it mostly completes updates for the ActionBarHandler, so the Selection UI (ActionCompat / FloatingToolbar) will work.
I'm going to post my WIP and ask TYLin and jchen to look it over, for core::selection and Keyboards/IME coverage.
for TYLin:
I see cases where I believe the AccessibleCaret shouldn't be hiding for example. It looks like |AccessibleCaretManager::IsCaretDisplayableInCursorMode| is returning false, likely based on the same assumption ActionBarHandler was making, that it's only valid where editables are involved.
for jchen:
It seems there's similar issues associated with having editing available in this new state. Blur/Focus isn't available on the document, and IME hide/show can also be confused when toggling DesignMode via control such as the button in my testpage.
More details as I dig further...
[0] https://www.dropbox.com/s/uruq7j9o62yv8nf/simple_designMode.html?dl=0
Assignee | ||
Comment 6•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48627/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/48627/
Updated•9 years ago
|
Assignee | ||
Comment 7•9 years ago
|
||
So, the bit I saw for Caret visibility is being addressed seperately in bug 1267576.
@jchen, Using the testcase from comment 5, if I tap the "Design Mode" toggle ON, the keyboard opens for editing, but if you tap it a second time / toggle it OFF, the keyboard stays open. Is this expected? I can file a followup if not.
Flags: needinfo?(nchen)
Comment 8•9 years ago
|
||
(In reply to Mark Capella [:capella] from comment #7)
>
> @jchen, Using the testcase from comment 5, if I tap the "Design Mode" toggle
> ON, the keyboard opens for editing, but if you tap it a second time / toggle
> it OFF, the keyboard stays open. Is this expected? I can file a followup if
> not.
Yeah that's currently the expected behavior, but I don't know if it's the correct behavior.
Flags: needinfo?(nchen)
Assignee | ||
Comment 9•9 years ago
|
||
Chrome, Opera, default CM13 Browser all behave uniformly, different than Fennec. I filed followup:
Bug 1268968 - Correct IME open/close behaviour on enabling/disabling document.designMode
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8744577 [details]
MozReview Request: Bug 1266322 - Fennec doesn't allow user cut/paste in etherpad
I think this particular patch is ready for review.
Attachment #8744577 -
Flags: review?(margaret.leibovic)
Comment 11•9 years ago
|
||
I don't know that I'm the best reviewer here.
Ting, can you help review this?
Flags: needinfo?(tlin)
Comment 12•9 years ago
|
||
I'm not super familiar with ActionBarHandler.js, but I can help review and test it.
Flags: needinfo?(tlin)
Updated•9 years ago
|
Attachment #8744577 -
Flags: review+
Comment 13•9 years ago
|
||
Comment on attachment 8744577 [details]
MozReview Request: Bug 1266322 - Fennec doesn't allow user cut/paste in etherpad
https://reviewboard.mozilla.org/r/48627/#review47415
If I understand this patch correctly, it updates the action bar when the document is in designMode to correctly expose the 'cut' operation. And it works for me.
::: mobile/android/chrome/content/ActionBarHandler.js:68
(Diff revision 1)
>
> // Else, update an open ActionBar.
> if (this._selectionID) {
> - let [element, win] = this._getSelectionTargets();
> - if (this._targetElement === element && this._contentWindow === win) {
> + if (!this._selectionHasChanged()) {
> + // Still the same active selection.
> if (e.reason == 'visibilitychange' || e.reason == 'presscaret') {
You'll need to rebase and expect a conflict here. A related easy follow-up here in bug 1266922 :)
::: mobile/android/tests/browser/robocop/testAccessibleCarets.js:130
(Diff revision 1)
> selectionID: ActionBarHandler._selectionID,
> };
> }
>
> /**
> + * Checks the Selection UI (ActionBar or FloatingToolbar)
Nit: white space at the end of the line.
Updated•9 years ago
|
Attachment #8744577 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 14•9 years ago
|
||
Going on review from TYLin, rebased, and nit corrected, let's push-to-try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=23514b95d154d85290dbcc0e7c1084c83288c931&group_state=expanded
Assignee | ||
Comment 15•9 years ago
|
||
Bah, the one test that complains validly is ours ...
|is(UIhasActionByID("paste_action"), value| fails on TRY. The code assumes pasteable text in the clipboard. While most likely in local tests, it's not true at the start of robocop tests.
Re-push the RC4 test with successful patch. I plan to qfold this and carryover the r+ this weekend.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c284c253914d742e22e26d3ccb86e3601d90360a
Comment 17•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Comment 18•9 years ago
|
||
Is this something you would consider uplifting in Beta 47 and Aurora 48?
I'm going to leave this flagged as: "verified for 49" until further info.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•