Webbrowser component is hosted in my winForm application. On one site occurred JS error and webbrowser show me error window. "Unable to get property 'call' of undefined or null reference" The same error occurred in installed IE, I have seen it in debug mode, but IE doesn't show this error window. I need to hide this window in my application too.
I can't set scriptErrorSuppressed = true because in this case window for select certificate is not opened too, and I can't open site page at all.
What I have tried:
document.Window.Error += new HtmlElementErrorEventHandler(Window_Error); - event is not fired at all
IOleCommandTarget::Exec - it occurs after error window was closed, and doesn't take affect to this window
Is there any way to get rid from this window?
Translation:
Webpage error Do you want to debug this webpage? This page contain errors that that might prevent it from displaying or working correctly. If this page has not been verified, press No. "Unable to get property 'call' of undefined or null reference"