Merge branch 'master' of ssh://lupin/qutebrowser

This commit is contained in:
Florian Bruhin 2014-07-06 21:01:44 +02:00
commit 934b009fd0
7 changed files with 14 additions and 15 deletions

View File

@ -28,10 +28,10 @@ Requirements
The following software and libraries are required to run qutebrowser:
* http://www.python.org/[Python] 3.3 or newer (3.4 recommended)
* http://qt-project.org/[Qt] 5.2 or newer (5.3 recommended)
* http://qt-project.org/[Qt] 5.2 or newer (5.3.1 recommended)
* QtWebKit
* http://www.riverbankcomputing.com/software/pyqt/intro[PyQt] 5.2 or newer (5.3
recommended) for Python 3
* http://www.riverbankcomputing.com/software/pyqt/intro[PyQt] 5.2 or newer
(5.3.1 recommended) for Python 3
* https://pypi.python.org/pypi/setuptools/[pkg_resources/setuptools]
The following libraries are optional and provide better debugging:

View File

@ -1,8 +1,6 @@
Bugs
====
- Rapid hinting exits hinting mode
- Concept of "current URL" should work better before urlChanged is emitted,
e.g. loading a page and immediately yanking the (non-resolved) URL should
work.

View File

@ -66,10 +66,8 @@ class BrowserPage(QWebPage):
self._view = view
if PYQT_VERSION > 0x050300:
# This breaks in <= 5.3.0, but in anything later it hopefully
# works.
# FIXME confirm this as soon as 5.3.1 is out!
# pylint: disable=invalid-name
# This is broken in Qt <= 5.3.0.
# See http://www.riverbankcomputing.com/pipermail/pyqt/2014-June/034385.html
self.javaScriptPrompt = self._javascript_prompt
def _javascript_prompt(self, _frame, msg, default):

View File

@ -148,8 +148,6 @@ class NetworkManager(QNetworkAccessManager):
# currency on http://ch.mouser.com/localsites/
#
# See http://www.riverbankcomputing.com/pipermail/pyqt/2014-June/034420.html
#
# FIXME: Check if this is really fixed in 5.3.1.
with log.disable_qt_msghandler():
reply = super().createRequest(op, req, outgoing_data)
else:

View File

@ -127,8 +127,8 @@ def fix_harfbuzz(args):
https://bugreports.qt-project.org/browse/QTBUG-39278
So the new engine will be more stable.
- On Qt 5.3.1 this bug hopefully will be fixed and the old engine
will be the more stable one again.
- On Qt 5.3.1 this bug is fixed and the old engine will be the more stable
one again.
IMPORTANT: This needs to be done before QWidgets is imported in any way!

View File

@ -167,6 +167,7 @@ class TabbedBrowser(TabWidget):
tab.hintmanager.hint_strings_updated.connect(self.hint_strings_updated)
tab.hintmanager.download_get.connect(self.download_get)
tab.hintmanager.openurl.connect(self.openurl)
self.cur_load_started.connect(self.on_cur_load_started)
# downloads
tab.page().unsupportedContent.connect(self.start_download)
tab.page().start_download.connect(self.start_download)
@ -357,6 +358,12 @@ class TabbedBrowser(TabWidget):
return
self.setTabIcon(idx, EmptyTabIcon())
@pyqtSlot()
def on_cur_load_started(self):
"""Leave insert/hint mode when loading started."""
for mode in ('insert', 'hint'):
modeman.maybe_leave(mode, 'load started')
@pyqtSlot(WebView, str)
def on_title_changed(self, tab, text):
"""Set the title of a tab.

View File

@ -367,8 +367,6 @@ class WebView(QWebView):
@pyqtSlot()
def on_load_started(self):
"""Leave insert/hint mode and set vars when a new page is loading."""
for mode in ('insert', 'hint'):
modeman.maybe_leave(mode, 'load started')
self.progress = 0
self._has_ssl_errors = False
self.load_status = LoadStatus.loading