On Wed, Feb 20, 2008 at 3:05 PM, Maciej Stachowiak <<a href="mailto:mjs@apple.com">mjs@apple.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">If XMLHttpRequest is one of the APIs available on background threads,<br></div></div>
does that include its XML parsing/serialization features (responseXML<br>
and the ability to pass a Document as the post data)? If so, then<br>
effectively the whole DOM API has to be available on the background<br>
thread, which may increase the implementation complexity a fair bit<br>
over having only selected APIs available.<br>
</blockquote><div><br>Having the DOM be available on other threads would be a pretty big implementation burden for us too. Then there are are DOM APIs like <canvas>, SVG APIs, etc ... each of those would either have to be disabled on worker threads or take additional work to make thread-safe (even if the additional work is just checking code). There's also styles and subresource loading, which we already disable on XHR data documents but I'm not sure if that's defined in any spec. Basically this is a very big can of worms you're opening here...<br>
<br></div></div>Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]