Commit ebc45775 authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

weblayer: ensure DisplayCutoutController is destroyed

BUG=1140143
TEST=none

Change-Id: If89a59ce8992c13ef269b24dbe0a1458c72718fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485842Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818705}
parent 9691aca0
...@@ -931,6 +931,11 @@ public final class TabImpl extends ITab.Stub implements LoginPrompt.Observer { ...@@ -931,6 +931,11 @@ public final class TabImpl extends ITab.Stub implements LoginPrompt.Observer {
} }
} }
if (mDisplayCutoutController != null) {
mDisplayCutoutController.destroy();
mDisplayCutoutController = null;
}
// This is called to ensure a listener is removed from the WebContents. // This is called to ensure a listener is removed from the WebContents.
setScrollOffsetsEnabled(false); setScrollOffsetsEnabled(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment