himo8 / google-axs-chrome

Automatically exported from code.google.com/p/google-axs-chrome
0 stars 1 forks source link

cvox.Api.stop() results in uncaught error #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Running this code in a webpage loaded in a WebView in an Android application on 
a device with TalkBack enabled (which results in loading ChromeVox js):

document.addEventListener("chromeVoxLoaded",cvoxLoadedHandler, true);
function cvoxLoadedHandler(evt) {
    if (window.console) console.log("Intercepting CVox event ");
    evt.preventDefault();
    evt.stopPropagation();
    cvox.Api.stop();
    return false;
}

What is the expected output? What do you see instead?

09-13 20:44:16.879    8339-8339/net.megafone.android.webapp D/Web console:﹕ 
Uncaught TypeError: Cannot call method 'stop' of undefined

What version of the product are you using? On what operating system?

Android 4.1.2

Original issue reported on code.google.com by matteosi...@gmail.com on 13 Sep 2014 at 7:23

GoogleCodeExporter commented 9 years ago
Note that the uncaught error triggered by inside CVox's own code, so even if 
there was anything wrong in my code, it's a bug.

Original comment by matteosi...@gmail.com on 13 Sep 2014 at 7:23