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

Issue 2480273003: Revert of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)

Created:
4 years, 1 month ago by perkj_chrome
Modified:
4 years, 1 month ago
CC:
chromium-reviews, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (patchset #1 id:1 of https://codereview.chromium.org/2483063002/ ) Reason for revert: Seems to cause heap use after free on tests in Mac Asan 10.9. https://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%2064%20Tests%20%281%29/builds/23999 FocusTraversalTest.TraversalWithInvisibleViews FocusTraversalTest.NormalTraversalMac FocusTraversalTest.PaneTraversal FocusTraversalTest.FullKeyboardToggle FocusTraversalTest.TraversalWithNonEnabledViews FocusTraversalTest.NormalTraversal Original issue's description: > Improves focus/activation for aura-mus and DesktopNativeWidgetAura > > When using DesktopNativeWidgetAura there is a FocusClient per > DesktopNativeWidgetAura. Aura-mus was assuming there would be a global > FocusClient, but that's painful for DesktopNativeWidgetAura. So, this > makes aura-mus work with multiple FocusClients. Specifically this does > the following: > > Env gets a function to track the active FocusClient. Env doesn't > maintain this, it's assuming others will. In particular > DesktopWindowTreeHostMus and WindowTreeClient makes call to it. > > Focus logic moves out of WindowTreeClient and into > FocusSynchronizer. FocusSynchronizer adds itself as an EnvObserserver > to track when the active FocusClient changes so that it can update the > server. > > BUG=660994 > TEST=covered by tests > R=ben@chromium.org > > Committed: https://crrev.com/3b82d5c5307d2ae7e25243efa006eb13fd631d92 > Cr-Commit-Position: refs/heads/master@{#430464} TBR=ben@chromium.org,sky@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=660994 Committed: https://crrev.com/3e652a8cbbe2991e34e65cbb7635bc3d89db19f4 Cr-Commit-Position: refs/heads/master@{#430556}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -364 lines) Patch
M ui/aura/BUILD.gn View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/aura/client/focus_client.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/client/focus_client.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ui/aura/env.h View 4 chunks +0 lines, -21 lines 0 comments Download
M ui/aura/env.cc View 4 chunks +0 lines, -55 lines 0 comments Download
M ui/aura/env_observer.h View 2 chunks +0 lines, -8 lines 0 comments Download
D ui/aura/mus/focus_synchronizer.h View 1 chunk +0 lines, -72 lines 0 comments Download
D ui/aura/mus/focus_synchronizer.cc View 1 chunk +0 lines, -98 lines 0 comments Download
D ui/aura/mus/focus_synchronizer_delegate.h View 1 chunk +0 lines, -28 lines 0 comments Download
M ui/aura/mus/in_flight_change.h View 2 chunks +1 line, -6 lines 0 comments Download
M ui/aura/mus/in_flight_change.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 8 chunks +16 lines, -7 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 11 chunks +58 lines, -14 lines 0 comments Download
M ui/aura/mus/window_tree_client_delegate.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 4 chunks +1 line, -10 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 4 chunks +6 lines, -27 lines 0 comments Download
M ui/views/mus/mus_client.h View 3 chunks +4 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.cc View 3 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
perkj_chrome
Created Revert of Improves focus/activation for aura-mus and DesktopNativeWidgetAura
4 years, 1 month ago (2016-11-08 09:36:16 UTC) #2
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/2480273003/1
4 years, 1 month ago (2016-11-08 09:36:29 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-08 09:37:53 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/3e652a8cbbe2991e34e65cbb7635bc3d89db19f4 Cr-Commit-Position: refs/heads/master@{#430556}
4 years, 1 month ago (2016-11-08 09:40:45 UTC) #7
perkj_chrome
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2488723002/ by perkj@chromium.org. ...
4 years, 1 month ago (2016-11-08 15:35:37 UTC) #8
sky
4 years, 1 month ago (2016-11-08 17:23:48 UTC) #9
Message was sent while issue was closed.
On 2016/11/08 15:35:37, perkj_chrome wrote:
> A revert of this CL (patchset #1 id:1) has been created in
> https://codereview.chromium.org/2488723002/ by mailto:perkj@chromium.org.
> 
> The reason for reverting is: Relanding this. The real culprit was
> https://codereview.chromium.org/2484203002/.

Thanks for the reland and sorry for the headache.

Powered by Google App Engine
This is Rietveld 408576698