Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1278 by tobie.langel: window.onload handler never gets called
http://code.google.com/p/google-caja/issues/detail?id=1278
What revision of the cajoler exhibits the problem? On what browser and OS?
SVN revision 4293 with patch http://codereview.appspot.com/2206045/ applied.
Firefox 3.5.13 on Mac OS 10.5.8
What steps will reproduce the problem?
set:
window.onload = function() { /* dostuff*/ };
handler never gets called.
Looks like the testing going on in domita.js around line 3348 isn't
behaving as expected:
var onload = ((___.canRead(imports, '$v')
&& ___.canCallPub(imports.$v, 'ros')
&& imports.$v.ros('onload'))
|| (imports.window &&
___.readPub(imports.window, 'onload')));
Especially, ___.canRead(imports, '$v') returns false.