Merge "Remove Webview Overlays on destroy"

This commit is contained in:
Huihong Luo
2021-07-24 01:01:35 +00:00
committed by Android (Google) Code Review

View File

@@ -100,6 +100,9 @@ WebViewFunctor::~WebViewFunctor() {
destroyContext();
ATRACE_NAME("WebViewFunctor::onDestroy");
if (mSurfaceControl) {
removeOverlays();
}
mCallbacks.onDestroyed(mFunctor, mData);
}