Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1598 by [email protected]: Within Caja, throw error on calling canvas.getContext("2d").measureText("text").width
http://code.google.com/p/google-caja/issues/detail?id=1598

What steps will reproduce the problem?
1. run below code on caja (I tried in HtmlService on Google Apps Script and Caja Playground(ES5/3 Mode)).
--------
var ctx =  canvas.getContext("2d");
var textMetrix = ctx.measureText("text")
alert(textMetrix.width); //throw error
--------
What is the expected output? What do you see instead?

on calling textMetrix.width , throw below error.
--------
'Host object leaked without being tamed' in source:
--------

Does Caja not support ctx.measureText("text")  ?


Reply via email to