[Ieview] XPCNativeWrapper error and fix.
mozillafirebird at gmail.com
mozillafirebird at gmail.com
Thu Jul 7 13:50:49 EDT 2005
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.
Thanks,
Grayson Mixon
More information about the Ieview
mailing list