Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / templates / articles / app_external.html
index 2d70767..609b3b9 100644 (file)
@@ -61,7 +61,7 @@ xhr.open('GET', 'https://supersweetdomainbutnotcspfriendly.com/image.png', true)
 xhr.responseType = 'blob';
 xhr.onload = function(e) {
   var img = document.createElement('img');
-  img.src = window.webkitURL.createObjectURL(this.response);
+  img.src = window.URL.createObjectURL(this.response);
   document.body.appendChild(img);
 };
 
@@ -141,8 +141,7 @@ but you won't be able to use the cool new stuff.
 <h3 id="inline_scripts">Use inline scripts in sandbox</h3>
 
 <p>
-Here's a sample sandboxed page
-which uses an inline script and <code>eval()</code>:
+Here's a sample sandboxed page which uses an inline script and <code>eval()</code>:
 </p>
 
 <pre data-filename="sandboxed.html">
@@ -150,8 +149,7 @@ which uses an inline script and <code>eval()</code>:
   &lt;body>
     &lt;h1>Woot&lt;/h1>
     &lt;script>
-      document.write('I am an inline script.&lt;br>');
-      eval('document.write(\'I am an eval-ed inline script.\');');
+      eval('console.log(\'I am an eval-ed inline script.\')');
     &lt;/script>
   &lt;/body>
 &lt;/html>