url_str -> urlstr: urlstr used accross the codebase, more consistent
This commit is contained in:
parent
bb8bc7ea3c
commit
88ff0c0425
@ -106,10 +106,10 @@ class WebEngineAction(browsertab.AbstractAction):
|
|||||||
# Qt < 5.8
|
# Qt < 5.8
|
||||||
tb = objreg.get('tabbed-browser', scope='window',
|
tb = objreg.get('tabbed-browser', scope='window',
|
||||||
window=self._win_id)
|
window=self._win_id)
|
||||||
url_str = self._tab.url().toString(QUrl.RemoveUserInfo)
|
urlstr = self._tab.url().toString(QUrl.RemoveUserInfo)
|
||||||
# The original URL becomes the path of a view-source: URL
|
# The original URL becomes the path of a view-source: URL
|
||||||
# (without a host), but query/fragment should stay.
|
# (without a host), but query/fragment should stay.
|
||||||
url = QUrl('view-source:' + url_str)
|
url = QUrl('view-source:' + urlstr)
|
||||||
tb.tabopen(url, background=False, related=True)
|
tb.tabopen(url, background=False, related=True)
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,10 +71,10 @@ class WebKitAction(browsertab.AbstractAction):
|
|||||||
new_tab = tb.tabopen(background=False, related=True)
|
new_tab = tb.tabopen(background=False, related=True)
|
||||||
# The original URL becomes the path of a view-source: URL
|
# The original URL becomes the path of a view-source: URL
|
||||||
# (without a host), but query/fragment should stay.
|
# (without a host), but query/fragment should stay.
|
||||||
url = QUrl('view-source:' + url_str)
|
url = QUrl('view-source:' + urlstr)
|
||||||
new_tab.set_html(highlighted, url)
|
new_tab.set_html(highlighted, url)
|
||||||
|
|
||||||
url_str = self._tab.url().toString(QUrl.RemoveUserInfo)
|
urlstr = self._tab.url().toString(QUrl.RemoveUserInfo)
|
||||||
self._tab.dump_async(show_source_cb)
|
self._tab.dump_async(show_source_cb)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user