[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 13:25:20 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 234010f0dc38ae6129124ec9719f1db5ac90e14f
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Sep 14 23:15:07 2010 +0000

    2010-09-14  James Kozianski  <soulplant at gmail.com>
    
            Reviewed by Ojan Vafai.
    
            Setting of CSSStyleDeclaration.prototype.foo on outer window affects prototype of inner window
            https://bugs.webkit.org/show_bug.cgi?id=18447
    
            Add a test for CSSStyleDeclaration.prototype.foo leaking into inner
            windows.
    
            * fast/frames/css-style-declaration-isolation-expected.txt: Added.
            * fast/frames/css-style-declaration-isolation.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67511 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index d60fa35..18d4217 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,16 @@
+2010-09-14  James Kozianski  <soulplant at gmail.com>
+
+        Reviewed by Ojan Vafai.
+
+        Setting of CSSStyleDeclaration.prototype.foo on outer window affects prototype of inner window
+        https://bugs.webkit.org/show_bug.cgi?id=18447
+
+        Add a test for CSSStyleDeclaration.prototype.foo leaking into inner
+        windows.
+
+        * fast/frames/css-style-declaration-isolation-expected.txt: Added.
+        * fast/frames/css-style-declaration-isolation.html: Added.
+
 2010-09-14  Adam Barth  <abarth at webkit.org>
 
         Reviewed by Nate Chapin.
diff --git a/LayoutTests/fast/frames/css-style-declaration-isolation-expected.txt b/LayoutTests/fast/frames/css-style-declaration-isolation-expected.txt
new file mode 100644
index 0000000..5ea7372
--- /dev/null
+++ b/LayoutTests/fast/frames/css-style-declaration-isolation-expected.txt
@@ -0,0 +1,2 @@
+ This tests that modifications to the prototype of CSSStyleDeclaration don't modify its prototype in another document.
+PASS
diff --git a/LayoutTests/fast/frames/css-style-declaration-isolation.html b/LayoutTests/fast/frames/css-style-declaration-isolation.html
new file mode 100644
index 0000000..6b9924d
--- /dev/null
+++ b/LayoutTests/fast/frames/css-style-declaration-isolation.html
@@ -0,0 +1,17 @@
+<iframe id="ifr"></iframe>
+  This tests that modifications to the prototype of CSSStyleDeclaration don't
+  modify its prototype in another document.
+<div id="result"></div>
+
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+
+CSSStyleDeclaration.prototype.foo = "foo";
+var win = document.getElementById('ifr').contentWindow;
+var result = win.CSSStyleDeclaration.prototype.foo;
+if (result)
+    document.getElementById('result').innerText = "FAIL: expected 'undefined', got '" + result + "'";
+else
+    document.getElementById('result').innerText = 'PASS';
+</script>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list