I'm already looking for OLECMDID_SHOWSCRIPTERROR in
IOleCommandTarget::Exec and returning true to keep executing scripts,
I've also followed the advice at http://support.microsoft.com/kb/317024
for adding a js onerror event to each document to catch JS errors even
if the user has script debugging enabled for IE. This mostly works
and I catch errors in both places successfully and will continue
running script. But it seems there are some errors I still don't
catch in either place, and once I hit one my browser instance is
broken until I destroy it and create a completely new one.
Is there some way to get at the script host (is IActiveScript what I'm
looking for? Can I get a pointer to it somehow from the browser
interfaces?) interface used by the browser and tell it to re-enable
javascript each time the user navigates to a new page?
Thanks for any help or ideas!