I'm using the default web browser WPF control in an closed down kiosk type system (.NET 4.5) running Windows 8.1. The problem is that we need to disable the javscript error dialogs.
"Disabled script debugging (IE) & Others" and "Disable a notification about every script error" are enabled.
I already tried injecting this in the document on the onNavigating and onNavigated events
function noError() { return true; } window.onerror = noError;
but it doesn't work. Setting the silent
settings is not an option.
Also using the WindowsFormsHost and ScriptErrorsSuppressed are non-viable options.
Thanks