From 18c756760b78ebdf7680a6cfc44600d90e5cbbb0 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 06 Oct 2010 17:39:37 +0000 Subject: 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. --- (limited to 'browser.py') diff --git a/browser.py b/browser.py index b0a7ae7..3781e2e 100644 --- a/browser.py +++ b/browser.py @@ -172,6 +172,14 @@ class Browser(WebView): uri = self.web_navigation.currentURI persist.saveURI(uri, self.doc_shell, None, None, None, local_file) + def get_url_from_nsiuri(self, uri): + """ + get a nsIURI object and return a string with the url + """ + cls = components.classes['@mozilla.org/intl/texttosuburi;1'] + texttosuburi = cls.getService(interfaces.nsITextToSubURI) + return texttosuburi.unEscapeURIForUI(uri.originCharset, uri.spec) + def zoom_in(self): contentViewer = self.doc_shell.queryInterface( \ interfaces.nsIDocShell).contentViewer -- cgit v0.9.1