Fix crash when getting an invalid url from url_changed
This commit is contained in:
parent
7c175543d0
commit
5a77119ab8
@ -890,6 +890,9 @@ class _WebEngineScripts(QObject):
|
|||||||
url: The url to get the stylesheet for.
|
url: The url to get the stylesheet for.
|
||||||
force: Also update the global stylesheet.
|
force: Also update the global stylesheet.
|
||||||
"""
|
"""
|
||||||
|
if not url.isValid():
|
||||||
|
# FIXME should we be dropping this request completely?
|
||||||
|
url = None
|
||||||
css = shared.get_user_stylesheet(searching=searching, url=url)
|
css = shared.get_user_stylesheet(searching=searching, url=url)
|
||||||
if css is configutils.UNSET and force:
|
if css is configutils.UNSET and force:
|
||||||
css = shared.get_user_stylesheet(searching=searching, url=None)
|
css = shared.get_user_stylesheet(searching=searching, url=None)
|
||||||
|
Loading…
Reference in New Issue
Block a user