fix: crash when navigating from a page with webview that has inherited zoom level (#24757)
* fix: cleanup webview zoom level observers on navigation * add spec * webview should be on same partition * wait for webview to finish loading
This commit is contained in:
parent
38fafe4986
commit
b6321cc22d
5 changed files with 41 additions and 0 deletions
|
@ -57,6 +57,10 @@ void WebViewGuestDelegate::AttachToIframe(
|
|||
api_web_contents_->Emit("did-attach");
|
||||
}
|
||||
|
||||
void WebViewGuestDelegate::WillDestroy() {
|
||||
ResetZoomController();
|
||||
}
|
||||
|
||||
void WebViewGuestDelegate::DidDetach() {
|
||||
ResetZoomController();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue