Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorLucian Branescu Mihaila <lucian.branescu@gmail.com>2010-10-06 13:22:48 (GMT)
committer Lucian Branescu Mihaila <lucian.branescu@gmail.com>2010-10-06 13:22:48 (GMT)
commit978cc1edf77fc88c6c80c75694f96e2848c02ef1 (patch)
treeae542566d767eb02a3658dd792d31a148d2ffb43 /webtoolbar.py
parente8130523d74e24be64362c723a9ebed1087fc521 (diff)
Fix history on resume. The code is a bit hacky because of xulrunner limitations. I plan to make this code nicer when we move to webkit.
Diffstat (limited to 'webtoolbar.py')
-rw-r--r--webtoolbar.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index 20616a4..290011e 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -366,9 +366,7 @@ class PrimaryToolbar(ToolbarBox):
def _set_address(self, uri):
if uri is not None:
- cls = components.classes['@mozilla.org/intl/texttosuburi;1']
- texttosuburi = cls.getService(interfaces.nsITextToSubURI)
- ui_uri = texttosuburi.unEscapeURIForUI(uri.originCharset, uri.spec)
+ ui_uri = self._browser.get_url_from_nsiuri(uri)
else:
ui_uri = None
self.entry.props.address = ui_uri