From fcfc09f541db6254a06c6d689e1390ae9411d5a4 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 11 Nov 2015 10:22:02 +0100 Subject: [PATCH] Revoke "LocalContentCanAccess*Urls" Since we embed the content of the PDF directly, we no longer need the permissions for pdf.js. --- qutebrowser/browser/webview.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qutebrowser/browser/webview.py b/qutebrowser/browser/webview.py index e1740b3fc..008d25b4c 100644 --- a/qutebrowser/browser/webview.py +++ b/qutebrowser/browser/webview.py @@ -145,12 +145,6 @@ class WebView(QWebView): self.loadProgress.connect(lambda p: setattr(self, 'progress', p)) objreg.get('config').changed.connect(self.on_config_changed) - # Allow pdf.js to retrieve pages - self.settings().setAttribute( - QWebSettings.LocalContentCanAccessRemoteUrls, True) - self.settings().setAttribute( - QWebSettings.LocalContentCanAccessFileUrls, True) - def _init_page(self): """Initialize the QWebPage used by this view.""" page = webpage.BrowserPage(self.win_id, self.tab_id, self)