[Ieview] XPCNativeWrapper error and fix.
Paul Roub
paul at roub.net
Thu Jul 7 15:00:43 EDT 2005
mozillafirebird at gmail.com wrote:
> I encountered a Console error that said:
> Error: [Exception... "Could not convert JavaScript argument" nsresult:
> "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"
> location: "JS frame :: chrome://ieview/content/ieviewOverlay.js ::
> anonymous :: line 951" data: no]
> Source File: chrome://ieview/content/ieviewOverlay.js
> Line: 951
>
> If you change these lines in ieviewOverlay.js:
> var winWrapper = new XPCNativeWrapper(window._content, 'document');
> var docWrapper = new XPCNativeWrapper(winWrapper.document, 'location');
> var locWrapper = new XPCNativeWrapper(docWrapper.location, 'href');
>
> return(locWrapper.href);
>
> to:
> var locWrapper = new XPCNativeWrapper(window, 'location', 'href');
>
> return(locWrapper.location.href);
>
> the error goes away, and ieview still works.
>
What version of Firefox/Mozilla was this under? I don't think we can
count on 'window' meaning what we want it to, in chrome context, in
recent Firefox versions.
-paul
More information about the Ieview
mailing list