diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-03-30 10:55:07 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-04-11 08:23:47 +0000 |
commit | 9dffc5dd18c466950325454706b10e08edf24231 (patch) | |
tree | 3a8bda38d07de22ddac885fce0d4c01c9c22e515 | |
parent | c9cd7497cbb38de9bc74ec3da5858234d7794fdb (diff) |
Still send navigation request signal on non-blocking intercept
If a URL interceptor changes the request but doesn't block it, we
currently do not send the navigation requested signal to the API layer.
Instead continue as normal when not blocking.
Change-Id: Ida6aad5767fcaef58093c50aa3932092334f499c
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r-- | src/core/network_delegate_qt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/network_delegate_qt.cpp b/src/core/network_delegate_qt.cpp index 0c0de64fd..8420d7f99 100644 --- a/src/core/network_delegate_qt.cpp +++ b/src/core/network_delegate_qt.cpp @@ -122,7 +122,8 @@ int NetworkDelegateQt::OnBeforeURLRequest(net::URLRequest *request, const net::C request->SetExtraRequestHeaderByName(header.key().toStdString(), header.value().toStdString(), /* overwrite */ true); } - return result; + if (result != net::OK) + return result; } } |