Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Issue 2584773002: Set fields before calling ActionMode.invalidate() (Closed)

Created:
4 years ago by amaralp
Modified:
4 years ago
CC:
agrieve+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set fields before calling ActionMode.invalidate() Previously mEditable/mIsPassword/mNeedsPrepare were set after calling invalidate(). This means that SelectionPopupController.onPrepareActionMode() sees the old values of those fields which is incorrect. This fix could reduce flakiness in the scenario where the IME thread updates after the action mode is created. BUG=592428 Committed: https://crrev.com/fa17096f47dcc992185f1a09de28034f17d33b5d Cr-Commit-Position: refs/heads/master@{#439291}

Patch Set 1 #

Patch Set 2 : should set fields regardless of action mode status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java View 1 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
amaralp
PTAL
4 years ago (2016-12-16 22:32:56 UTC) #14
aelias_OOO_until_Jul13
It sounds like you observed a bug, could you file a crbug for it and ...
4 years ago (2016-12-16 22:48:42 UTC) #15
amaralp
On 2016/12/16 at 22:48:42, aelias wrote: > It sounds like you observed a bug, could ...
4 years ago (2016-12-16 22:52:45 UTC) #17
aelias_OOO_until_Jul13
I don't think there can be a race here. If the callback is called synchronously, ...
4 years ago (2016-12-16 23:03:31 UTC) #18
aelias_OOO_until_Jul13
After offline discussion, ou confirmed this is synchronous and this is just a rarely seen ...
4 years ago (2016-12-17 01:33:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2584773002/20001
4 years ago (2016-12-17 02:02:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2584773002/20001
4 years ago (2016-12-17 02:21:52 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-17 02:29:30 UTC) #30
commit-bot: I haz the power
4 years ago (2016-12-17 02:31:44 UTC) #32
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fa17096f47dcc992185f1a09de28034f17d33b5d
Cr-Commit-Position: refs/heads/master@{#439291}

Powered by Google App Engine
This is Rietveld 408576698