mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Don't execute URLRequest callback for already canceled requests (issue #1685)
This commit is contained in:
@@ -122,6 +122,8 @@ class CefBeforeResourceLoadCallbackImpl : public CefRequestCallback {
|
||||
disconnector->Disconnect();
|
||||
request->RemoveUserData(UserDataKey());
|
||||
|
||||
// Only execute the callback if the request has not been canceled.
|
||||
if (request->status().status() != net::URLRequestStatus::CANCELED)
|
||||
callback.Run(allow ? net::OK : net::ERR_ABORTED);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user