Reviewers: felix8a,
Description:
Guest 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.
Please review this at https://codereview.appspot.com/153290043/
Affected files (+166, -65 lines):
M src/com/google/caja/plugin/domado.js
M src/com/google/caja/plugin/html-emitter.js
M src/com/google/caja/plugin/ses-frame-group.js
M tests/com/google/caja/plugin/test-cajajs-invocation.js
M tests/com/google/caja/plugin/test-domado-events-guest.html
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.