Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-10-06 17:39:37 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-10-06 17:39:37 (GMT)
commit18c756760b78ebdf7680a6cfc44600d90e5cbbb0 (patch)
tree82bf55cf63800431359ddde6149e9f9342ab7f53 /webtoolbar.py
parent85cfa5b196e978424efd9f01af5cc93020dabedf (diff)
fix #2383 : Browse: history not right when resuming
Previously Browse does not saved the current tabs opened, saved the history and assumes the last url in the history is the current.
Diffstat (limited to 'webtoolbar.py')
-rw-r--r--webtoolbar.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index 428fd89..d87dbd8 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -281,11 +281,7 @@ class WebToolbar(gtk.Toolbar):
gobject.idle_add(self._reload_session_history, current_page_index)
def _location_changed_cb(self, progress_listener, uri):
- cls = components.classes['@mozilla.org/intl/texttosuburi;1']
- texttosuburi = cls.getService(interfaces.nsITextToSubURI)
- ui_uri = texttosuburi.unEscapeURIForUI(uri.originCharset, uri.spec)
-
- self._set_address(ui_uri)
+ self._set_address(self._browser.get_url_from_nsiuri(uri))
self._update_navigation_buttons()
filepicker.cleanup_temp_files()