Skip to content

Instantly share code, notes, and snippets.

@arantius
Created February 11, 2014 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arantius/8943384 to your computer and use it in GitHub Desktop.
Save arantius/8943384 to your computer and use it in GitHub Desktop.
Exercise GM bug 1869
// ==UserScript==
// @name Crash GM + FF 27
// @author Rob W <gwnRob@gmail.com>
// @namespace robwu.nl
// @version 3.7.1
// @include *
// @grant GM_getValue
// ==/UserScript==
setTimeout(function() {
if (confirm('Crash?')) clearInterval();
});
var x = setInterval(dump, 1500, 'foo\n');
setTimeout(function() {
dump('Trying to clear interval ...\n');
try {
clearInterval(x);
} catch (e) {
dump('Failed! \n' + e + '\n');
}
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment