Error
John <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <71394a2b-b3cc-4526-8769-77b99a50eb0a@k37g2000hsf.googlegroups.com> |
Hi,
in code:
const accServiceID = '[email protected]/accessibilityService;1';
const accServiceIF =
Components.interfaces.nsIAccessibilityService;
const accService =
Components.classes[accServiceID].getService(accServiceIF);
var acc = accService.getAccessibleFor(window.content.document);
var dom_window =
acc.QueryInterface(Components.interfaces.nsIAccessibleDocument);
I have next error:
[Exception... "Component returned failure code: 0x80570018
(NS_ERROR_XPC_BAD_IID) [nsIJSCID.getService]" nsresult: "0x80570018
(NS_ERROR_XPC_BAD_IID)" location: "JS frame ::
chrome://MeExtension/content/MeExtension.js :: InitHPFiller :: line
1199" data: no]
I have FireFox version 3.0.3
In FF2 Ok
line 1199 - const accService =
Components.classes[accServiceID].getService(accServiceIF);
If i make:
var accService = Service.getService();
accService.QueryInterface('Components.interfaces.nsIAccessibilityService');
error:
[Exception... "Could not convert JavaScript argument arg 0
[nsISupports.QueryInterface]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
chrome://MeExtension/content/MeExtension.js :: InitHPFiller :: line
1201" data: no]
Please help!