Description* A <script> element evaluated in the sandbox now fires a 'load' event
after successful eval and an 'error' event otherwise. No error
details are yet included.
* Taming a <script> element which is already in the document does not
replace its content with a caja_dynamic_script*___ hook. This includes
script elements that are static HTML. The problematic behavior was
introduced in r5358.
Supporting changes:
* The onerror= attribute is now whitelisted everywhere, per HTML5.
* Refactoring in html-emitter.js: resolveUntrustedExternal now
passes its results to the continuation function rather than taking
a separate handler function, and is no longer responsible for
providing substitute content on error.
Fixes <https://code.google.com/p/google-caja/issues/detail?id=1763>.
@r5455
Patch Set 1 #
Total comments: 7
MessagesTotal messages: 4
|