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._update_navigation_buttons() filepicker.cleanup_temp_files()
def __uri_changed_cb(self, widget, param): self._set_address(widget.get_uri()) self._update_navigation_buttons() filepicker.cleanup_temp_files()