gecko-dev/mobile/android
Emily Toop 3fd2272331 Bug 1546851 - Ensure that the context menu is closed when performing a paste. r=geckoview-reviewers,droeh
This issue was caused by the updating of the caret position after the paste occurs firing an `updateposition` event resulting in an `GeckoView:ShowSelectionAction` message to reposition context menu without any attempt to close the context menu. The solution is to hide the context menu before the repositioning of the caret occurs such that the `updateposition` event doesn't trigger a redisplay.

I tried several versions of this trying to trigger the menu close from inside `GeckoViewSelectionActionDelegate`, including making the call to `docShell.doCommand("cmd_paste");` asynchronous and firing `ACTION_HIDE` before firing `ACTION_PASTE`, but the result is always the same - one of the events is processed before the other and so the second event is rejected as a stale response.

Therefore we are firing the `pagehide` from inside the code that performs the paste. This has to be done before the paste occurs otherwise the `updateposition` event is fired before the page hide event and the context menu redisplays before being hidden.

Differential Revision: https://phabricator.services.mozilla.com/D29665

--HG--
extra : moz-landing-system : lando
2019-05-02 15:06:58 +00:00
..
annotations Bug 1540820 - Don't write generated JNI wrappers for every Java-level change. r=agi 2019-04-09 20:02:44 +00:00
app Backed out changeset 0727a51d7ae1 (bug 1547929) as requested by petru. CLOSED TREE 2019-05-02 13:46:56 +03:00
base Backed out changeset 0727a51d7ae1 (bug 1547929) as requested by petru. CLOSED TREE 2019-05-02 13:46:56 +03:00
branding Bug 1539620 - Add a brand product string that doesn't change across different channels r=Pike 2019-03-28 11:44:41 +00:00
chrome Bug 1546851 - Ensure that the context menu is closed when performing a paste. r=geckoview-reviewers,droeh 2019-05-02 15:06:58 +00:00
components Backed out 4 changesets (bug 1320404) for xperf failures on permissions.sqlite-journal. 2019-05-02 04:51:18 +03:00
config Bug 1547710 - Add FENNEC_NIGHTLY define to Fennec nightly builds. r=mshal 2019-05-01 18:37:29 +00:00
docs Bug 1536044 - Fully disable jacoco builds for Android r=agi 2019-03-28 20:26:45 +00:00
extensions Bug 1539918 - remove nightly-only guard and allow about:compat to ride the trains; r=miketaylr 2019-04-22 15:04:49 +00:00
fonts
geckoview Backed out 6 changesets (bug 1540573) for failures in test_CSP.html 2019-05-02 06:41:33 +03:00
geckoview_example Bug 1527074 - Expose storage manager API to GeckoView r=geckoview-reviewers,snorp 2019-04-25 16:20:48 +00:00
gradle Bug 1527796 - Part 4. Convert file separator to slash. r=nalexander 2019-03-29 16:04:06 +09:00
installer Bug 1512451 - Read OneCRL blocklist from security-states/onecrl r=jcj,mgoodwin,glasserc 2019-04-24 14:52:13 +00:00
locales Bug 1544525 - Update about:addons's AMO title; r=Pike,JanH 2019-04-19 07:14:54 +00:00
modules Backed out 4 changesets (bug 1501108) for causing very frequent leaks in macOS debug wpt tests. a=backout 2019-04-29 17:39:42 +02:00
services Bug 1544076 - [0.1] Upgrade Android support library to 28.0.0 to avoid version conflicts with the lifecycle library. r=nalexander,droeh 2019-04-24 16:22:50 +00:00
stumbler Bug 1541017 - Update in-tree bugzilla components which used 'Android Background Services'. r=snorp 2019-04-09 20:46:36 +00:00
tests Bug 1544525 - Update about:addons's AMO title; r=Pike,JanH 2019-04-19 07:14:54 +00:00
themes Bug 1543468 - Stop using toolkit netError.css URL on Android. r=JanH 2019-04-10 19:32:20 +00:00
thirdparty Bug 1523572 Increment Leanplum's version r=sdaswani 2019-01-29 18:29:09 +00:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander 2018-11-16 01:15:35 +00:00
debug_sign_tool.py
gradle.configure Bug 1538760 - Parse all output from checkstyle. r=nalexander 2019-04-01 16:20:28 +00:00
gradle.py Bug 1527796 - Part 1. Add python.exe path to call mach shell script from python. r=nalexander 2019-02-12 14:45:36 +09:00
LICENSE
mach_commands.py Bug 1538760 - Parse all output from checkstyle. r=nalexander 2019-04-01 16:20:28 +00:00
moz.build Bug 1541017 - Update in-tree bugzilla components which used 'Android Background Services'. r=snorp 2019-04-09 20:46:36 +00:00
moz.configure Bug 1547710 - Add FENNEC_NIGHTLY define to Fennec nightly builds. r=mshal 2019-05-01 18:37:29 +00:00