# HG changeset patch # User Ryo HIKOSAKA # Date 1392704647 -32400 # Tue Feb 18 15:24:07 2014 +0900 # Node ID 8fb541f1506e7c60e74392ddfb82430a4b6f0480 # Parent 8058b5952212307e7f7c938deab1e55b2a40dc0d Part17: mochitests - iframe sandbox general diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if1.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,35 @@ + + + + + Test for Bug 949435 + + + + + + + I am sandboxed but with "allow-scripts" + +
+ First name: + Last name: + +
+ + click me + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if2.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,23 @@ + + + + + Test for Bug 949435 + + + + + + + I am sandboxed with no permissions + + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if3.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if3.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,26 @@ + + + + + Test for Bug 949435 + + + + + + + I am sandboxed but with "allow-scripts allow-forms" + +
+ First name: + Last name: + +
+ + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if4.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,45 @@ + + + + + Test for Bug 949435 + + + + + + I am sandboxed but with "allow-scripts allow-same-origin" + + open window + open window + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if5.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if5.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,20 @@ + + + + + Test for Bug 949435 + + + + + + + I am sandboxed but with "allow-same-origin" + + click me + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if6.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if6.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,24 @@ + + + + + Test for Bug 949435 + + + + + + + I am sandboxed but with "allow-same-origin" and "allow-scripts" + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if7.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if7.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,27 @@ + + + + + Test for Bug 949435 + + + + + I am sandboxed but with "allow-scripts" + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_c_if8.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_c_if8.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,27 @@ + + + + + Test for Bug 949435 + + + + + I am sandboxed but with "allow-scripts allow-same-origin" + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_fail.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_fail.js Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,1 @@ +ok(false, "documents sandboxed with allow-scripts should NOT be able to run + + + + + I should NOT be loaded by a form submit from a sandbox without 'allow-forms' + + + + \ No newline at end of file diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_form_pass.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_form_pass.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,19 @@ + + + + + Test for Bug 949435 + + + + + + I should be loaded by a form submit from a sandbox with 'allow-forms' + + + + \ No newline at end of file diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_open_window_fail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_open_window_fail.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,19 @@ + + + + + Test for Bug 949435 + + + + + I should NOT be opened by a sandboxed iframe via any method + + + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_open_window_pass.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_open_window_pass.html Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,25 @@ + + + + + Test for Bug 949435 + + + + + I should be opened by a sandboxed iframe via any method when "allow-popups" is specified. + + + + diff -r 8058b5952212 -r 8fb541f1506e content/svg/content/test/file_iframe_sandbox_pass.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/svg/content/test/file_iframe_sandbox_pass.js Tue Feb 18 15:24:07 2014 +0900 @@ -0,0 +1,1 @@ +ok(true, "documents sandboxed with allow-scripts should be able to run + + + + + +Mozilla Bug 949435 +

+ +
+ + + + + + + + + + + + + + + + + + + + + +finish me +
+ + +