Fix QTBUG-54419 workaround for invalid URLs
This commit is contained in:
parent
73c608dce7
commit
c17bbd47b8
@ -527,7 +527,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
||||
background = self.currentIndex() != idx
|
||||
|
||||
if (tab.backend == usertypes.Backend.QtWebEngine and
|
||||
tab.needs_qtbug54419_workaround):
|
||||
tab.needs_qtbug54419_workaround and url.isValid()):
|
||||
log.misc.debug("Doing QTBUG-54419 workaround for {}, "
|
||||
"url {}".format(tab, url))
|
||||
self.setUpdatesEnabled(False)
|
||||
|
@ -151,6 +151,11 @@ Feature: Using hints
|
||||
And I hint with args "all" and follow a
|
||||
Then the error "Invalid link clicked - *" should be shown
|
||||
|
||||
Scenario: Clicking an invalid link opening in a new tab
|
||||
When I open data/invalid_link.html
|
||||
And I hint with args "all tab" and follow a
|
||||
Then the error "Invalid link clicked - *" should be shown
|
||||
|
||||
Scenario: Hinting inputs without type
|
||||
When I open data/hints/input.html
|
||||
And I hint with args "inputs" and follow a
|
||||
|
Loading…
Reference in New Issue
Block a user