mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-04-17 04:07:24 +02:00
- Mac: Xcode 12.2 and the MacOS 11.0 SDK are now required for building. - MacOS 10.10 (Yosemite) is no longer supported (see https://crbug.com/1126056). - Flash is no longer supported (see https://www.chromium.org/flash-roadmap).
55 lines
2.3 KiB
Diff
55 lines
2.3 KiB
Diff
diff --git content/browser/storage_partition_impl.cc content/browser/storage_partition_impl.cc
|
|
index d5fa2604e741..1337e6369373 100644
|
|
--- content/browser/storage_partition_impl.cc
|
|
+++ content/browser/storage_partition_impl.cc
|
|
@@ -491,10 +491,6 @@ class LoginHandlerDelegate {
|
|
}
|
|
|
|
WebContents* web_contents = web_contents_getter_.Run();
|
|
- if (!web_contents) {
|
|
- OnAuthCredentials(base::nullopt);
|
|
- return;
|
|
- }
|
|
|
|
// WeakPtr is not strictly necessary here due to OnRequestCancelled.
|
|
creating_login_delegate_ = true;
|
|
@@ -547,12 +543,6 @@ void OnAuthRequiredContinuation(
|
|
mojo::PendingRemote<network::mojom::AuthChallengeResponder>
|
|
auth_challenge_responder,
|
|
base::RepeatingCallback<WebContents*(void)> web_contents_getter) {
|
|
- if (!web_contents_getter || !web_contents_getter.Run()) {
|
|
- mojo::Remote<network::mojom::AuthChallengeResponder>
|
|
- auth_challenge_responder_remote(std::move(auth_challenge_responder));
|
|
- auth_challenge_responder_remote->OnAuthCredentials(base::nullopt);
|
|
- return;
|
|
- }
|
|
new LoginHandlerDelegate(std::move(auth_challenge_responder),
|
|
std::move(web_contents_getter), auth_info,
|
|
is_request_for_main_frame, process_id, routing_id,
|
|
@@ -2396,8 +2386,12 @@ void StoragePartitionImpl::GetQuotaSettings(
|
|
return;
|
|
}
|
|
|
|
+ // CEF always returns false for IsOffTheRecord(), so also check the path.
|
|
+ const bool is_incognito = browser_context_->IsOffTheRecord() ||
|
|
+ browser_context_->GetPath().empty();
|
|
+
|
|
storage::GetNominalDynamicSettings(
|
|
- GetPath(), browser_context_->IsOffTheRecord(),
|
|
+ GetPath(), is_incognito,
|
|
storage::GetDefaultDeviceInfoHelper(), std::move(callback));
|
|
}
|
|
|
|
@@ -2409,6 +2403,11 @@ void StoragePartitionImpl::InitNetworkContext() {
|
|
GetContentClient()->browser()->ConfigureNetworkContextParams(
|
|
browser_context_, is_in_memory_, relative_partition_path_,
|
|
context_params.get(), cert_verifier_creation_params.get());
|
|
+ if (context_params->context_name &&
|
|
+ *context_params->context_name == "magic_shutting_down") {
|
|
+ // Don't re-initialize the network context during shutdown.
|
|
+ return;
|
|
+ }
|
|
devtools_instrumentation::ApplyNetworkContextParamsOverrides(
|
|
browser_context_, context_params.get());
|
|
DCHECK(!context_params->cert_verifier_params)
|