diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2017-04-04 01:55:44 -0700 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-05 09:09:25 +0000 |
commit | 5bf0846938574020ab6684a471560c5f15009593 (patch) | |
tree | 04ee7ffba1cf883e8d99972aa5a02fc0c0d05340 /src/core | |
parent | 6ea5d56ae81bc486a6deaf1bfedaa8bfbf734647 (diff) |
Install filesystem: protocol handler
File creation with FileSystem API is supported, but these files were
not accessible through their filesystem: URLs.
Change-Id: Ic45a8ad766917947a70eb0079d37490576ea5d22
Task-number: QTBUG-56531
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/url_request_context_getter_qt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/url_request_context_getter_qt.cpp b/src/core/url_request_context_getter_qt.cpp index 6422a0228..e6314039a 100644 --- a/src/core/url_request_context_getter_qt.cpp +++ b/src/core/url_request_context_getter_qt.cpp @@ -537,13 +537,16 @@ void URLRequestContextGetterQt::generateJobFactory() std::unique_ptr<net::URLRequestJobFactoryImpl> jobFactory(new net::URLRequestJobFactoryImpl()); { - // Chromium has transferred a few protocol handlers to us, only pick blob: and chrome: and ignore the rest. + // Chromium has transferred a few protocol handlers to us, only pick blob:, chrome: and filesystem:. content::ProtocolHandlerMap::iterator it = m_protocolHandlers.find(url::kBlobScheme); Q_ASSERT(it != m_protocolHandlers.end()); jobFactory->SetProtocolHandler(it->first, std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>(it->second.release())); it = m_protocolHandlers.find(content::kChromeUIScheme); Q_ASSERT(it != m_protocolHandlers.end()); jobFactory->SetProtocolHandler(it->first, std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>(it->second.release())); + it = m_protocolHandlers.find(url::kFileSystemScheme); + Q_ASSERT(it != m_protocolHandlers.end()); + jobFactory->SetProtocolHandler(it->first, std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>(it->second.release())); m_protocolHandlers.clear(); } |