Fix allow_os_execution=true (fixes #2715, fixes #3851, fixes #3889)

When setting allow_os_execution=true in OnProtocolExecution the
confirmation dialog should display consistently, the load should
be canceled with ERR_ABORTED, and no interstitial error page
should be displayed.
This commit is contained in:
Marshall Greenblatt
2025-04-01 18:08:17 -04:00
parent 5b18ca7d3f
commit 70ea6f589f
6 changed files with 26 additions and 40 deletions

View File

@@ -121,7 +121,8 @@ class InterceptedRequestHandler {
virtual void OnRequestComplete(
int32_t request_id,
const network::ResourceRequest& request,
const network::URLLoaderCompletionStatus& status) {}
const network::URLLoaderCompletionStatus& status,
bool& handled_externally) {}
// Called on error.
virtual void OnRequestError(int32_t request_id,