diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-14 11:27:47 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-14 16:40:48 +0200 |
commit | 44267635f32be01ae0be1434583f2a2f3cca583b (patch) | |
tree | a73f96955eaf8b83d14a91f6dcc1c590e4efec26 /src/core | |
parent | 98ecea4b23c2e3122fda6e5b1df0e23a56d93ffe (diff) |
Make loading PDF view less racy
There was some kind of race between loading as a plugin and this
redirect.
Task-number: QTBUG-84340
Change-Id: I57ac8fcae0c1de98b1fd3013d2b5299c85547cc0
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/net/plugin_response_interceptor_url_loader_throttle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp b/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp index d854a556c..4fdb8c3d0 100644 --- a/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp +++ b/src/core/net/plugin_response_interceptor_url_loader_throttle.cpp @@ -125,6 +125,8 @@ void PluginResponseInterceptorURLLoaderThrottle::WillProcessResponse(const GURL if (extension_id.empty()) return; + *defer = true; + base::PostTask(FROM_HERE, {content::BrowserThread::UI}, base::BindOnce(&onPdfStreamIntercepted, response_url, |