mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Disable browser-side navigation by default (issue #2290)
This commit is contained in:
@@ -435,6 +435,13 @@ bool CefMainDelegate::BasicStartupComplete(int* exit_code) {
|
|||||||
switches::kUncaughtExceptionStackSize,
|
switches::kUncaughtExceptionStackSize,
|
||||||
base::IntToString(settings.uncaught_exception_stack_size));
|
base::IntToString(settings.uncaught_exception_stack_size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If browser-side navigation is not explicitly enabled or disabled, disable
|
||||||
|
// it. See https://crbug.com/776884.
|
||||||
|
if (!command_line->HasSwitch(switches::kDisableBrowserSideNavigation) &&
|
||||||
|
!command_line->HasSwitch(switches::kEnableBrowserSideNavigation)) {
|
||||||
|
command_line->AppendSwitch(switches::kDisableBrowserSideNavigation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content_client_.application().get()) {
|
if (content_client_.application().get()) {
|
||||||
|
Reference in New Issue
Block a user