4 ms·
"instead of just giving developers a way to get textures from DOM elements" I'm guessing this functionality is already in progress. Canvas has a bunch of draw
by seanalltogether 15y ago
"instead of just giving developers a way to get textures from DOM elements"
I'm guessing this functionality is already in progress. Canvas has a bunch of draw operations on it and browser makers are already extending it with functions like drawWindow(). I'm guessing it won't be long before we see a Canvas.drawDOM() method
- kevingadd 15y agoThe numerous security issues make it unlikely that a drawWindow will ever make it into the canvas API for content, from my perspective. Firefox has supported it as an extension for a while now but it's not enabled for content due to the security problems.
- ootachi 15y agoNo, there are too many security problems. You could do history sniffing with drawWindow(), for example, by making a link and checking the color. Or you could read the contents of cross-domain iframes, allowing web pages to discover your Facebook identity.