Firefox + jQuery on OS X doesn't show errors thrown in AJAX handlers?

When an error occurs in the jQuery AJAX handler on Firefox + jQuery + OS X, the error seems to be ignored.

Sample code: http://jsfiddle.net/bGuX9/

Chrome correctly reports all errors in the JavaScript console:

error in Chrome

But Firebug in Firefox only reports one error, even if two were thrown (as evidenced by "A throw error: in ajax"):

error in firefox

The above is Firefox 8 on OS X 10.6, but I noticed a problem back in Firefox 3.5. Firefox on Windows (tested with 8) does not seem to be affected.

What's up with that? Is this a known issue?

A few notes:

  • I do not think this is a problem with Firebug, as the error also does not appear in the Firefox console.
  • I know that I can use the try/catch in the event handler and catch the error there, but this does not help me debug arbitrary code.
+6
source share
1 answer

After repeated searches, it seems that this problem is caused by the Adblock Plus extension, since this only happens when the extension is enabled.

An error was found on the Adblock Plus forum: https://adblockplus.org/forum/viewtopic.php?f=11&t=8761

0
source

Source: https://habr.com/ru/post/901591/


All Articles