On 09/20/2011 05:50 AM, neo wrote:
it seems like Greasymonkey is swallowing exceptions when they happen
inside a callback function from an event listener.

This is not completely true.  This definitely shows in the console:

  window.addEventListener('load', function() {
    undefined();
  }, true);

This version, also, shows in the console:

  var s = document.createElement("script");
  s.type = "text/javascript";
s.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js";;
  s.addEventListener("load", function() {
    undefined();
  }, false);
  document.body.appendChild(s);

They are not displayed in the error console. I'm using Firefox 6.0.2 and
Greasemonkey 0.9.11.

I see errors in the console for both examples above, and for your example. Even in a blank stock test profile. Something else is causing this. Running some troubleshooting would be a good idea:

http://wiki.greasespot.net/Troubleshooting_(Users)

Most especially the clean profile stuff, by my best guess.

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to