Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2764613002: Fix race condition in content_shell which could lead to an assert on shutdown with PlzNavigate. (Closed)
Patch Set: fix assert Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/shell/browser/shell_browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 2aaa3bec6b342f9e99ea7525a11fed06d65535b5..26a4d1a127887973a01ca0960a1b918f3d521ea3 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -583,7 +583,9 @@ void ResourceDispatcherHostImpl::CancelRequestsForContext(
(loader->GetRequestInfo()->detachable_handler() &&
loader->GetRequestInfo()->detachable_handler()->is_detached()) ||
loader->GetRequestInfo()->requester_info()->IsBrowserSideNavigation() ||
- loader->is_transferring());
+ loader->is_transferring() ||
+ loader->GetRequestInfo()->GetResourceType() ==
+ RESOURCE_TYPE_SERVICE_WORKER);
}
#endif
« no previous file with comments | « no previous file | content/shell/browser/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698