Changes: use document.createEvent instead of new Event on Android WebView