Fix accessing user_agent()
This commit is contained in:
parent
1d4729c7f7
commit
ee2461a6fe
@ -1495,7 +1495,7 @@ class CommandDispatcher:
|
||||
target = downloads.FileDownloadTarget(dest)
|
||||
|
||||
tab = self._current_widget()
|
||||
user_agent = tab.user_agent()
|
||||
user_agent = tab.private_api.user_agent()
|
||||
|
||||
if url:
|
||||
if mhtml_:
|
||||
|
@ -305,7 +305,7 @@ class HintActions:
|
||||
|
||||
prompt = False if context.rapid else None
|
||||
qnam = context.tab.private_api.networkaccessmanager()
|
||||
user_agent = context.tab.user_agent()
|
||||
user_agent = context.tab.private_api.user_agent()
|
||||
|
||||
# FIXME:qtwebengine do this with QtWebEngine downloads?
|
||||
download_manager = objreg.get('qtnetwork-download-manager')
|
||||
|
Loading…
Reference in New Issue
Block a user