[Project_owners] Re: nsIIDNService.idl

Neil neil at parkwaycc.co.uk
Tue May 17 11:49:35 EDT 2005


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.


More information about the Project_owners mailing list