mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Fix Check failed: frame->IsMain() when loading Worker scripts (issue #2561)
This commit is contained in:
		| @@ -1648,7 +1648,8 @@ CefRefPtr<CefFrame> CefBrowserHostImpl::GetFrameForRequest( | |||||||
|   // The value of |IsMainFrame| is unreliable in these cases. |   // The value of |IsMainFrame| is unreliable in these cases. | ||||||
|   const bool is_main_frame_state_flaky = |   const bool is_main_frame_state_flaky = | ||||||
|       info->IsDownload() || |       info->IsDownload() || | ||||||
|       info->GetResourceType() == content::RESOURCE_TYPE_XHR; |       info->GetResourceType() == content::RESOURCE_TYPE_XHR || | ||||||
|  |       info->GetResourceType() == content::RESOURCE_TYPE_SCRIPT; | ||||||
|   return GetOrCreateFrame(info->GetRenderFrameID(), info->GetFrameTreeNodeId(), |   return GetOrCreateFrame(info->GetRenderFrameID(), info->GetFrameTreeNodeId(), | ||||||
|                           CefFrameHostImpl::kUnspecifiedFrameId, |                           CefFrameHostImpl::kUnspecifiedFrameId, | ||||||
|                           info->IsMainFrame(), is_main_frame_state_flaky, |                           info->IsMainFrame(), is_main_frame_state_flaky, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user