Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt causes javascripts to stop running #1483

Closed
Sausage opened this issue Dec 8, 2011 · 1 comment
Closed

Prompt causes javascripts to stop running #1483

Sausage opened this issue Dec 8, 2011 · 1 comment

Comments

@Sausage
Copy link

Sausage commented Dec 8, 2011

Greasemonkey 0.9.13
Firefox 8.0
JQuery 1.7.0

I've written a user.js script for a webpage. The script uses the above pertinent information. The webpage already has scripts (i didn't write these) running which control timers, a running clock and a marquee. But the user script I've created, which prompts the user for a name, stops all scripts from running after the ok or cancel button is clicked. I've narrowed the entire script down to only a function call (with all other code removed from the script) where the function declares a variable and assigns the value of a prompt to that variable. That's when my user script stops running and also the original javascript running the timers, running clocks and marquee stop running as well.

getName();

function getName(){
var p;
p = prompt('Enter your name: ', '');

};

Other noteables...the original page includes JQuery 1.4.2.

@arantius
Copy link
Collaborator

arantius commented Dec 8, 2011

This is #1318 and #1350 . It's Mozilla's bug.

@arantius arantius closed this as completed Dec 8, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants