diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-08-24 14:49:53 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-08-26 13:11:01 +0000 |
commit | 5309b594a9939023ce3161e1713b534c90ef3605 (patch) | |
tree | b4424d4762277faa7bbf1c872b8aee3cf150e968 /src/core/content_browser_client_qt.cpp | |
parent | 047edac0938b80a76827748c5ec850af396d26db (diff) |
Remove unneeded extension -> file access privilege
It was hacked in before we got guest views working for the pdf
viewer, but should no longer be needed.
Pick-to: 6.2
Change-Id: I3085c1ba591c600942e488751ada12473c6454d0
Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu>
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r-- | src/core/content_browser_client_qt.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index f580e6f77..cab8f09b1 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -1086,12 +1086,8 @@ void ContentBrowserClientQt::RegisterNonNetworkSubresourceURLLoaderFactories(int url = web_contents->GetVisibleURL(); // Install file scheme if necessary: - // FIXME: "extension -> file" will not be needed after switching to using transferable url loaders and guest views. bool install_file_scheme = false; -#if BUILDFLAG(ENABLE_EXTENSIONS) - install_file_scheme = install_file_scheme || url.SchemeIs(extensions::kExtensionScheme); -#endif - if (!install_file_scheme && web_contents) { + if (web_contents) { const auto *settings = static_cast<WebContentsDelegateQt *>(web_contents->GetDelegate())->webEngineSettings(); if (settings->testAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls)) { for (const auto &local_scheme : url::GetLocalSchemes()) { |