Don't emit predicted_navigation for reloads at all
When we reload a page because of a config change, we won't get another titleChanged signal (at least sometimes). Also, the predicted_navigation signal is worthless when reloading anyways, as we're going to load the same URL and not something different. Fixes #3718
This commit is contained in:
parent
724e531087
commit
a22f973c99
@ -706,9 +706,6 @@ class WebEngineTab(browsertab.AbstractTab):
|
||||
self._widget.shutdown()
|
||||
|
||||
def reload(self, *, force=False):
|
||||
if self.url().isValid():
|
||||
self.predicted_navigation.emit(self.url())
|
||||
|
||||
if force:
|
||||
action = QWebEnginePage.ReloadAndBypassCache
|
||||
else:
|
||||
|
@ -701,9 +701,6 @@ class WebKitTab(browsertab.AbstractTab):
|
||||
self._widget.shutdown()
|
||||
|
||||
def reload(self, *, force=False):
|
||||
if self.url().isValid():
|
||||
self.predicted_navigation.emit(self.url())
|
||||
|
||||
if force:
|
||||
action = QWebPage.ReloadAndBypassCache
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user