fix: uaf in WebContents::DidStopLoading (#26702)
This commit is contained in:
parent
7cc571801c
commit
770e245de5
1 changed files with 2 additions and 2 deletions
|
@ -1447,12 +1447,12 @@ void WebContents::DidStartLoading() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::DidStopLoading() {
|
void WebContents::DidStopLoading() {
|
||||||
Emit("did-stop-loading");
|
|
||||||
|
|
||||||
auto* web_preferences = WebContentsPreferences::From(web_contents());
|
auto* web_preferences = WebContentsPreferences::From(web_contents());
|
||||||
if (web_preferences &&
|
if (web_preferences &&
|
||||||
web_preferences->IsEnabled(options::kEnablePreferredSizeMode))
|
web_preferences->IsEnabled(options::kEnablePreferredSizeMode))
|
||||||
web_contents()->GetRenderViewHost()->EnablePreferredSizeMode();
|
web_contents()->GetRenderViewHost()->EnablePreferredSizeMode();
|
||||||
|
|
||||||
|
Emit("did-stop-loading");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebContents::EmitNavigationEvent(
|
bool WebContents::EmitNavigationEvent(
|
||||||
|
|
Loading…
Reference in a new issue