public bool OnError(nsAUTF8String message, nsAUTF8String fileName, uint line, uint pos, uint flags, uint errnum, jsdIValue exc)
 {
     var eventArgs = new JavascriptErrorEventArgs(message.ToString(), fileName.ToString(), line, pos, flags, errnum);
     m_browser.OnJavascriptError(eventArgs);
     return true;
 }
            public bool OnError(nsAUTF8StringBase message, nsAUTF8StringBase fileName, uint line, uint pos, uint flags, uint errnum, jsdIValue exc)
            {
                if (m_browser.IsDisposed)
                {
                    return(true);
                }
                var eventArgs = new JavascriptErrorEventArgs(message.ToString(), fileName.ToString(), line, pos, flags, errnum);

                m_browser.OnJavascriptError(eventArgs);
                return(true);
            }