Status: New
Owner: [email protected]
Labels: Type-Defect Priority-High Client-AppScript

New issue 1766 by [email protected]: Google Visualization taming URL rewriter fails
http://code.google.com/p/google-caja/issues/detail?id=1766

Google Visualization taming, at rewriteDataSourceUrl():

https://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/apitaming/google.visualization.policyFactory.js?r=5218#84

calls frame.rewriteUri() from the host frame, passing a host object through the taming membrane. But frame.rewriteUri() expects to be called from guest code. It tries to un-tame the object it's been given, realizes that this is a host frame object, and panics (as well it should). The errors on the console look like:

Rejecting url http://spreadsheets.google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&pub=1 because TypeError: Host object leaked without being tamed ses-single-frame.js?debug=1:15879
Event handler threw:  TypeError {} caja.js:189

The fix is to do something more clever in the rewriteDataSourceUrl() function. Note that this function is *always* resident in the host frame, due to the fact that the code it is a part of is coresident with the feral Google JS API.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- 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/groups/opt_out.


Reply via email to