[Project_owners] Re: nsIIDNService.idl

Michael Vincent van Rantwijk some at universum.org
Tue May 17 18:54:46 EDT 2005

Neil wrote:
> Michael Vincent van Rantwijk wrote:
>> I have a problem with the followeing two lines:
>> var idnService = 
>> Components.classes["@mozilla.org/network/idn-service;1"].getService(Components.interfaces.nsIIDNService); 
>> var convertedURL = idnService.convertUTF8toACE(line[1]);
>> and the problem is that it (sometimes) throw this error on the JS 
>> console:
>> Error: [JavaScript Error: "uncaught exception: [Exception... 
>> "Component returned failure code:
>> 0x80004005 (NS_ERROR_FAILURE) [nsIIDNService.convertUTF8toACE]"  
>> nsresult:
>> "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
>> chrome://multiviews/content/bindings/tabbrowser.xml :: setTabTooltip 
>> :: line 2358"
>> data: no]"]
> I had a peek at the source and the most likely failure is that the name 
> is more than 63 characters long.

Yes, I can reproduce this with a Google search query, which is pretty 
long by default, so it seems that I need to rewrite my fathers code a 
bit (and that is probably the reason he didn't commit this unfinished 

Thanks for your help Neil,

More information about the Project_owners mailing list