Rename _openurl_prepare
This commit is contained in:
parent
da5527f5ef
commit
a7f7607b4d
@ -1044,8 +1044,8 @@ class AbstractTab(QWidget):
|
||||
def load_status(self) -> usertypes.LoadStatus:
|
||||
return self._load_status
|
||||
|
||||
def _openurl_prepare(self, url: QUrl, *,
|
||||
emit_before_load_started: bool = True) -> None:
|
||||
def _load_url_prepare(self, url: QUrl, *,
|
||||
emit_before_load_started: bool = True) -> None:
|
||||
qtutils.ensure_valid(url)
|
||||
if emit_before_load_started:
|
||||
self.before_load_started.emit(url)
|
||||
|
@ -1146,7 +1146,7 @@ class WebEngineTab(browsertab.AbstractTab):
|
||||
# https://github.com/qutebrowser/qutebrowser/issues/3896
|
||||
return
|
||||
self._saved_zoom = self.zoom.factor()
|
||||
self._openurl_prepare(
|
||||
self._load_url_prepare(
|
||||
url, emit_before_load_started=emit_before_load_started)
|
||||
self._widget.load(url)
|
||||
|
||||
|
@ -723,7 +723,7 @@ class WebKitTab(browsertab.AbstractTab):
|
||||
settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True)
|
||||
|
||||
def load_url(self, url, *, emit_before_load_started=True):
|
||||
self._openurl_prepare(
|
||||
self._load_url_prepare(
|
||||
url, emit_before_load_started=emit_before_load_started)
|
||||
self._widget.load(url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user