weblayer: fix crash in InfoBarContainerView.setTranslationY
The crash is happening because setTranslationY is being called when the InfoBarContainerView's tab is no longer active. This is problematic as when the tab is not active getBrowser().getViewController() returns null. Two fixs: . make SwipableOverlayView cancel the animation when removed. . make InfoBarContainerView handle this situation better. The latter is necessary as setTranslationY() is a public method, and may be called at any time. BUG=1121393 TEST=none (at the moment it's a bit hard to trigger this code path from tests). Change-Id: I95cd82f13efc07f81bec3a00b6c7513472bdbaea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382680Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
Bo <boliu@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#803111}
Showing
Please register or sign in to comment