What's New: The Latest Release NotesThis thread will track significant changes to the Sandbox.<br><br><strong>November 5th:</strong><br>This was a pretty big update:<br> <ol> <li>We added a few significant performance optimizations.  Array manipulations, User-defined objects and classes, and function invocation are now significantly faster.</li> <li> <p>We fixed a number of security issues.  We had a bug in the prototype chain handling code that could cause native methods to accidentally leak.  We also missed one scenario which allows you to perform arbitrary code execution:</p> <p>Function(&quot;alert('hi')&quot;)()  </p> <p>There are quite a few variants of the above code:</p> <p>(&quot;&quot;.toString.constructor(&quot;HI&quot;))();</p> <p>All of these should no longer be possible.<br><br></p></li></ol> <p><strong>October 24th:</strong><br>Fixed Siliverlight issues and loading the blockbash.html game </p>© 2009 Microsoft Corporation. All rights reserved.Wed, 29 Apr 2009 00:54:33 Z469d2f77-c111-4a78-8f1b-121be9bfbb15http://social.msdn.microsoft.com/Forums/en-US/websandbox/thread/469d2f77-c111-4a78-8f1b-121be9bfbb15#469d2f77-c111-4a78-8f1b-121be9bfbb15http://social.msdn.microsoft.com/Forums/en-US/websandbox/thread/469d2f77-c111-4a78-8f1b-121be9bfbb15#469d2f77-c111-4a78-8f1b-121be9bfbb15Scott Isaacshttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20IsaacsWhat's New: The Latest Release NotesThis thread will track significant changes to the Sandbox.<br><br><strong>November 5th:</strong><br>This was a pretty big update:<br> <ol> <li>We added a few significant performance optimizations.  Array manipulations, User-defined objects and classes, and function invocation are now significantly faster.</li> <li> <p>We fixed a number of security issues.  We had a bug in the prototype chain handling code that could cause native methods to accidentally leak.  We also missed one scenario which allows you to perform arbitrary code execution:</p> <p>Function(&quot;alert('hi')&quot;)()  </p> <p>There are quite a few variants of the above code:</p> <p>(&quot;&quot;.toString.constructor(&quot;HI&quot;))();</p> <p>All of these should no longer be possible.<br><br></p></li></ol> <p><strong>October 24th:</strong><br>Fixed Siliverlight issues and loading the blockbash.html game </p>Mon, 03 Nov 2008 21:07:27 Z2008-11-07T00:51:37Zhttp://social.msdn.microsoft.com/Forums/en-US/websandbox/thread/469d2f77-c111-4a78-8f1b-121be9bfbb15#29236b6f-d8cf-4681-9f2d-fb46f0f055f6http://social.msdn.microsoft.com/Forums/en-US/websandbox/thread/469d2f77-c111-4a78-8f1b-121be9bfbb15#29236b6f-d8cf-4681-9f2d-fb46f0f055f6Scott Isaacshttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20IsaacsWhat's New: The Latest Release Notes<p><strong>Changes for November 13th:</strong><br><br>1) We now silently ignore any invalid or unsupported CSS property values specified via a stylesheet. In debug mode, any bad values will throw an exception.<br><br>2) Fixed a bug with deleting the first item in an array (e.g., <font face="Courier New">delete arrayInstance[0]</font>)<br><br>3) Added support for dynamically loading scripts. For example:<br><font face="Courier New">var elScript = document.createElement(&quot;script&quot;)<br>elScript.src=&quot;urltosamplescript.js&quot;<br>document.documentElement.appendChild(elScript)<br><br></font>4) Fixed a bug with empty string delimiters for the Array join method. e.g., Array.join(&quot;&quot;).<br><br>5) Fixed support for the HTML select element and added support for the OPTGROUP element.<br><br>6) Fixed getElementById for non-existent elements (no longer throw an error)<br><br>7) Added initial support for HTML DOM prototypes for all supported HTML elements.  E.g.,<br><font face="Courier New">HTMLElement.prototype.customMethod = function() <br>{<br>    alert(&quot;Add new method&quot;);return null;<br>};<br><br>HTMLDivElement.prototype.extendDiv = function() {<br>    alert(&quot;New Div method&quot;);return null<br>};</font></p> <p>Known Issues:<br>Support for getters/setters is coming soon.<br>Any custom methods currently must return a value other than undefined (e.g., return null is acceptable).<br><br>8) Support for changing the type of an input element.<br><br>Known Issue:<br>Once you change the type of the element, you must reset any references you may have to the element. For example:<br><br><font face="Courier New">var elInput = document.getElementById(&quot;someinput&quot;);<br>elInput.type = &quot;button&quot;<br>// If you change the type, you must do the following before acting on elInput again<br>elInput = document.getElementById(&quot;someinput&quot;);<br>// now you have a good reference<br>alert(elInput.value);</font></p> <p>The sandbox will throw an error if you violate this pattern.<br><br>9) Closed a security hole with dereferencing a constructor chain:<br><br><font face="Courier New">(function(){x=</font><font face="Courier New">(arguments.callee.constructor.constructor('alert(&quot;Bad </font><font face="Courier New">Stuff&quot;)'));x()})();<br></font><br>10) Added support for toDateString and toTimeString to date instances. <br><br>Known Issue:<br>Currently only supported on browsers that support these methods. </p> <p> 11) The onload event now simulates the normal timing of the browser and does not fire until all images on the page are also loaded.  <br><br>Known Issue:<br>If images are disabled in IE, the onload event does not fire.</p>Fri, 14 Nov 2008 03:40:36 Z2008-11-14T03:44:14Zhttp://social.msdn.microsoft.com/Forums/en-US/websandbox/thread/469d2f77-c111-4a78-8f1b-121be9bfbb15#5fb00faa-f60f-43c8-815f-f1fadccd9996http://social.msdn.microsoft.com/Forums/en-US/websandbox/thread/469d2f77-c111-4a78-8f1b-121be9bfbb15#5fb00faa-f60f-43c8-815f-f1fadccd9996Dragos Manolescuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dragos%20ManolescuWhat's New: The Latest Release Notes Changes for <strong>December 10th</strong>:<br><br><font style="font-size:12px">  </font> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">1) Fixed a number of bugs around the cssText property.</font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">2) Added support for dynamically changing the type of INPUT elements.</font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">3) Improved support for HTML prototypes (e.g., added TABLESectionElement, etc.)</font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">4) Improved support for document.write. You should be able to use document.write for injecting well-formed HTML into the page. Your document.write still cannot inject event handlers or scripts. </font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">5) Added fixes in event handler's removeEventListener.</font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">6) Enabled IE's currentStyle and runtimeStyle properties (for IE only)</font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">7) Fixed a memory leak that could lock-up IE6 if an ID-based CSS rule was specified.  This memory leak is prevented regardless of the rule specified by the untrusted code.</font></p> <p style="font-size:11pt;margin:0in;font-family:Calibri"><font color="#1f497d"><font style="font-size:12px" face=Verdana color="#000000">8) Added support for indexed access to strings. IE does not support &quot;abc&quot;[0]  to return the first character.  We enabled this pattern to work in all browsers.  This issue enables the <a href="http://softwareas.com/guid0-a-javascript-guid-generator">GUID library </a></font></font><font color="#1f497d"><font style="font-size:12px" face=Verdana color="#000000">to run in Internet Explorer unmodified (without the sandbox, the code failed in IE).</font></font></p> <p style="font-size:11pt;margin:0in;color:#1f497d;font-family:Calibri"><font style="font-size:12px" face=Verdana color="#000000">9) Added the option to use the <a href="http://websandbox.livelabs.com/documentation/overview_how.aspx#transform">Azure-hosted transformation pipeline </a>in the interactive pages.<br><br>Happy holidays!<br><br>-Dragos</font></p> <hr class=sig> Dragos Manolescu, Live Labs Program ManagerThu, 18 Dec 2008 18:42:28 Z2008-12-18T18:43:00Z