vk: Fix not showing emoji keyboard when triggered from right click menu.
There's a race condition with the right-click emoji menu: 1. User clicks "emoji". 2. We change the input_view_url to be the emoji url. 3. We then force the keyboard to show by enabling it temporarily. 4. This will wake up the extension JS code if it's been suspended. 5. Extension JS will listen to 'onActivate' which triggers the engine to re-enable. 6. Enabling will reset the input_view_url to be the url specified in the XKB manifest and we overwrite the emoji URL set in step 2. Hence, we need to prevent step 6 from overidding. A crude way to do this to add a boolean flag to indicate whether the inputview url is currently overridden. If it's overridden, then enabling the engine should not reset the inputview url. This is not an ideal solution, but it's the simplest with lowest impact. Bug: 887612 Change-Id: I5530bb09ab9127bd0c56e86f8e08c89db84b0047 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2198856 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:Shu Chen <shuchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#769588}
Showing
Please register or sign in to comment