diff options
Diffstat (limited to 'qutebrowser/browser/shared.py')
-rw-r--r-- | qutebrowser/browser/shared.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/browser/shared.py b/qutebrowser/browser/shared.py index 562442b5a..13080ece6 100644 --- a/qutebrowser/browser/shared.py +++ b/qutebrowser/browser/shared.py @@ -31,7 +31,7 @@ from qutebrowser.qt.core import QUrl, pyqtBoundSignal from qutebrowser.config import config from qutebrowser.utils import (usertypes, message, log, objreg, jinja, utils, - qtutils, version) + qtutils, version, urlutils) from qutebrowser.mainwindow import mainwindow from qutebrowser.misc import guiprocess, objects @@ -229,7 +229,7 @@ def handle_certificate_error( # scheme might not match. is_resource = ( first_party_url.isValid() and - not request_url.matches(first_party_url, QUrl.UrlFormattingOption.RemoveScheme)) + not request_url.matches(first_party_url, urlutils.FormatOption.REMOVE_SCHEME)) if conf == 'ask' or conf == 'ask-block-thirdparty' and not is_resource: err_template = jinja.environment.from_string(""" @@ -259,7 +259,7 @@ def handle_certificate_error( error=error, ) urlstr = request_url.toString( - QUrl.UrlFormattingOption.RemovePassword | QUrl.ComponentFormattingOption.FullyEncoded) + urlutils.FormatOption.REMOVE_PASSWORD | urlutils.FormatOption.ENCODED) title = "Certificate error" try: |