moorte
moorte copied to clipboard
NS_ERROR_NOT_IMPLEMENTED in FF3.0.9
When insert tab is hit, Firefox will sometimes throw above error, but code continues to execute. Debugging shows it throwing the error while trying to run the queryValue on the link button. The error is not consistent.
A similar err is thrown when the element gains focus if it is in the root of the document.
We may implement a try..catch to catch it, is anyone willing to try to debug this further and report it to Mozilla?
AntonyT has been kind enough to research and fix the issue using a try and catch.
We have merged it in.
A request to all who improve our code: Please make a pull request when there is something we can pull.
Here is his description:
FIXME:
Firefox 3.6 has been returning this error the first time the
editable area is clicked on, and the first time it is typed into.
"Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.queryCommandState]"
This is a workaround, assuming that on failure, the state is false.
A google search returns the following links, but no solution:
- http://tinymce.moxiecode.com/punbb/viewtopic.php?id=5124
- http://tinymce.moxiecode.com/punbb/viewtopic.php?id=4960
- http://tinymce.moxiecode.com/punbb/viewtopic.php?id=10863
- http://www.zimbra.com/forums/developers/669-dwthtmleditor-exception-when-started-hidden-tab.html
- http://drupal.org/node/123857