tag 406380 + patch
thanks
On Sat, Oct 18, 2008 at 07:24:55PM +0200, Mike Hommey wrote:
> On Wed, Aug 13, 2008 at 11:14:33AM +0200, Gabriel Corona wrote:
> >
> > You get the gollowing message in the console error of Icweasel,
> > when trying to add the feed to an external application
> > withtou gnome plugin :
> >
> > Erreur : [Exception... "Component returned failure code: 0x80570016
> > (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult:
> > "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame ::
> > file:///usr/lib/iceweasel/components/FeedConverter.js ::
> > FRS_addToClientReader :: line 415" data: no]
> > Fichier Source : file:///usr/lib/iceweasel/components/FeedConverter.js
> > Ligne : 415
>
> This should go away if you install iceweasel-gnome-support.
Or, if you don't want to install iceweasel-gnome-support, the attached
patch should work (you can apply it directly to
/usr/lib/iceweasel/components/FeedConverter.js )
Mike
diff --git a/browser/components/feeds/src/FeedConverter.js
b/browser/components/feeds/src/FeedConverter.js
index e555074..41e71a0 100644
--- a/browser/components/feeds/src/FeedConverter.js
+++ b/browser/components/feeds/src/FeedConverter.js
@@ -447,10 +447,18 @@ var FeedResultService = {
else
spec = "feed:" + spec;
- var ss =
- Cc["@mozilla.org/browser/shell-service;1"].
- getService(Ci.nsIShellService);
- ss.openApplicationWithURI(clientApp, spec);
+ try {
+ var ss =
+ Cc["@mozilla.org/browser/shell-service;1"].
+ getService(Ci.nsIShellService);
+ try { ss.openApplicationWithURI(clientApp, spec); } catch(e) {}
+ } catch(e) {
+ var p =
+ Cc["@mozilla.org/process/util;1"].
+ createInstance(Ci.nsIProcess);
+ p.init(clientApp);
+ try { p.run(false, [spec], 1); } catch(e) {}
+ }
break;
default: