DescriptionGuest window.onerror is now invoked for these error cases:
* top-level code (that is, <script>throw ...;</script>). Fixes
https://code.google.com/p/google-caja/issues/detail?id=1433.
* setTimeout, setInterval, or requestAnimationFrame callbacks.
The existing calls to onerror have been changed to use a single
implementation, domicile.handleUncaughtException. This function
takes care to not throw even if the error object or onerror handler
cause errors when used, and passes the full set of standardized
arguments (still with dummy values).
Also reorganized the setTimeout-and-friends implementation
(tameSetAndClear) so that the early-exit path is more direct.
@r5701
Patch Set 1 #
Total comments: 14
Patch Set 2 : Expand and refactor window.onerror support. #
MessagesTotal messages: 5
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||