summaryrefslogtreecommitdiffstats
path: root/webkit/data
diff options
context:
space:
mode:
authorager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 14:09:26 +0000
committerager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 14:09:26 +0000
commit46e8a5e00718d3df5b598bb6650d2474cdd6e660 (patch)
tree8ccd52e810bdc882ff0e6e24cd164014698f3294 /webkit/data
parentaf15f265ae6ff8b1eea4563cd314c9fe6a6d70c7 (diff)
downloadchromium_src-46e8a5e00718d3df5b598bb6650d2474cdd6e660.zip
chromium_src-46e8a5e00718d3df5b598bb6650d2474cdd6e660.tar.gz
chromium_src-46e8a5e00718d3df5b598bb6650d2474cdd6e660.tar.bz2
Copy expectations for dataURL tests from windows to mac. The reason
for the rebaselining is the error message which is the same on all platforms. Review URL: http://codereview.chromium.org/53052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame-expected.txt19
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url-expected.txt21
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url-expected.txt19
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt3
4 files changed, 62 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame-expected.txt
new file mode 100644
index 0000000..5894d3b
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame-expected.txt
@@ -0,0 +1,19 @@
+CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL data:text/html,<html><head><script>function fireSentinel() {if (window.layoutTestController)layoutTestController.globalFlag = true;}</script></head><body onload="fireSentinel();"><p>Inner iframe.</p><p id='accessMe'>Pass: Cross frame access from a sibling data: URL was denied.</p></body></html> from frame with URL data:text/html,<html><head><script>function loaded() {if (window.layoutTestController) {setTimeout(waitForFlag, 1);function waitForFlag() {if (!layoutTestController.globalFlag) {setTimeout(waitForFlag, 1);return;}performTest();}} else {document.getElementById('console').innerHTML = 'Click the button when all the subframes have finished loading.';}}function performTest() {try {parent.frames['firstSubFrame'].document.getElementById('accessMe').innerHTML = 'FAIL: Cross frame access from a sibling data: URL was allowed.';} catch (e) {}if (window.layoutTestController)layoutTestController.notifyDone();}</script></head><body onload="loaded();"><p>Inner iframe.</p><button onclick='performTest();'>Test</button><pre id='console'></pre></body></html>. Domains, protocols and ports must match.
+
+This tests that a data: URL subframe can't access a sibling data: URL subframe.
+
+
+
+--------
+Frame: 'firstSubFrame'
+--------
+Inner iframe.
+
+Pass: Cross frame access from a sibling data: URL was denied.
+
+--------
+Frame: 'secondSubFrame'
+--------
+Inner iframe.
+
+Test
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url-expected.txt
new file mode 100644
index 0000000..42af3f2
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url-expected.txt
@@ -0,0 +1,21 @@
+CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL data:text/html,<html><head><script>function fireSentinel() {if (window.layoutTestController)layoutTestController.globalFlag = true;}</script></head><body onload="fireSentinel();"><p id="accessMe">PASS: Cross frame access from a data: URL was denied.</p><p>Inner-inner iframe.</p></body></html> from frame with URL data:text/html,<html><head><script>function loaded() {var iframe = document.getElementById('inner');iframe.src = 'data:text/html,<html><head><scr' + 'ipt>function fireSentinel() {if (window.layoutTestController)layoutTestController.globalFlag = true;}</scr' + 'ipt></head><body onload="fireSentinel();"><p id="accessMe">PASS: Cross frame access from a data: URL was denied.</p><p>Inner-inner iframe.</p></body></html>';if (window.layoutTestController) {setTimeout(waitForFlag, 1);function waitForFlag() {if (!layoutTestController.globalFlag) {setTimeout(waitForFlag, 1);return;}performTest();}} else {document.getElementById('console').innerHTML = 'Click the button when all the subframes have finished loading.';}}function performTest() {try {frames[0].document.getElementById('accessMe').innerHTML = 'FAIL: Cross frame access from a data: URL was allowed.';} catch (e) {}if (window.layoutTestController)layoutTestController.notifyDone();}</script></head><body onload='loaded();'><iframe id='inner'></iframe><p>Inner iframe.</p><button onclick='performTest();'>Test</button><pre id='console'></pre></body></html>. Domains, protocols and ports must match.
+
+This tests that a data: URL subframe can't access a child data: URL subframe of itself.
+
+
+
+--------
+Frame: 'aFrame'
+--------
+
+Inner iframe.
+
+Test
+
+
+--------
+Frame: 'inner'
+--------
+PASS: Cross frame access from a data: URL was denied.
+
+Inner-inner iframe.
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url-expected.txt
new file mode 100644
index 0000000..598be9c
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url-expected.txt
@@ -0,0 +1,19 @@
+CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL data:text/html,<html><body><p id='accessMe'>PASS: Cross frame access from a data: URL was denied.</p><p>Inner iframe.</p><iframe name='innerFrame' id='innerFrame' src='data:text/html,<html><head><script>function test() {try {parent.document.getElementById("accessMe").innerHTML = "FAIL: Cross frame access from a data: URL was allowed.";} catch (e) {}if (window.layoutTestController)layoutTestController.notifyDone();}</script></head><body onload="test();"><p>Inner-inner iframe.</p></body></html>'></iframe></body></html> from frame with URL data:text/html,<html><head><script>function test() {try {parent.document.getElementById("accessMe").innerHTML = "FAIL: Cross frame access from a data: URL was allowed.";} catch (e) {}if (window.layoutTestController)layoutTestController.notifyDone();}</script></head><body onload="test();"><p>Inner-inner iframe.</p></body></html>. Domains, protocols and ports must match.
+
+This tests that a data: URL loaded in an iframe inside another data: URL loaded iframe doesn't have access to its parent, the first data: URL loaded iframe.
+
+
+
+--------
+Frame: 'aFrame'
+--------
+PASS: Cross frame access from a data: URL was denied.
+
+Inner iframe.
+
+
+
+--------
+Frame: 'innerFrame'
+--------
+Inner-inner iframe.
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt
new file mode 100644
index 0000000..47bf835
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt
@@ -0,0 +1,3 @@
+CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL data:text/html,<html><head><script>function loaded() {if (window.layoutTestController)layoutTestController.globalFlag = true;}</script></head><body onload='loaded();'><p id='accessMe'>PASS: Access from the main frame was denied!</p><p>Inner-inner iframe. This iframe (which is data: URL and whose parent is on a foreign domain) is the frame that the main frame is trying to access. It should not have access to it.</p></body></html> from frame with URL http://127.0.0.1:8000/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open.html. Domains, protocols and ports must match.
+
+PASS: Cross frame access to a data: URL embed in a frame window.open'ed on foreign domain denied!