Revoke "LocalContentCanAccess*Urls"
Since we embed the content of the PDF directly, we no longer need the permissions for pdf.js.
This commit is contained in:
parent
ea4d9e884e
commit
fcfc09f541
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user