Skip to content

Commit

Permalink
cefclient: Don't call GetExtension when NOTIMPLEMENTED (see #3681)
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenblatt committed May 2, 2024
1 parent 2938135 commit 6b13b1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/cefclient/browser/client_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,8 @@ void ClientHandler::OnAfterCreated(CefRefPtr<CefBrowser> browser) {
SetOfflineState(browser, true);
}

if (browser->GetHost()->GetExtension()) {
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
if (use_alloy_style_ && browser->GetHost()->GetExtension()) {
// Browsers hosting extension apps should auto-resize.
browser->GetHost()->SetAutoResizeEnabled(true, CefSize(20, 20),
CefSize(1000, 1000));
Expand All @@ -1027,6 +1028,7 @@ void ClientHandler::OnAfterCreated(CefRefPtr<CefBrowser> browser) {
extension, GetResourceManager());
}
}
#endif

NotifyBrowserCreated(browser);
}
Expand Down

0 comments on commit 6b13b1c

Please sign in to comment.