+
+ Test for Bug 949435
+
+
+
+ I am sandboxed without any permissions
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if10.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if10.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,12 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if11.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if11.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,23 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+I'm a <frame> inside an iframe which is sandboxed with 'allow-scripts allow-forms'
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if12.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if12.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,23 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+ I'm a <frame> inside a <frame> inside an iframe which is sandboxed with 'allow-scripts allow-forms'
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if13.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if13.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,13 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if14.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if14.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,34 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+I'm a <object> inside an iframe which is sandboxed with 'allow-scripts allow-forms'
+
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if15.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if15.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,33 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+ I'm a <object> inside a <frame> or <object> inside an iframe which is sandboxed with 'allow-scripts allow-forms'
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if16.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if16.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,25 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+I'm a <frame> inside an iframe which is sandboxed with 'allow-scripts allow-forms'
+
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if17.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if17.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,27 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+ I am sandboxed but with "allow-scripts". I change the sandbox flags on if_18_19 to
+ "allow-scripts allow-same-origin" then get it to re-navigate itself to
+ file_iframe_sandbox_a_if18.html, which attemps to call a function in my parent.
+ This should fail since my sandbox flags should be copied to it when the sandbox
+ flags are changed.
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if18.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if18.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,26 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+ I'm an iframe whose sandbox flags have been changed to include allow-same-origin.
+ I should not be able to call a function in my parent's parent because my parent's
+ iframe does not have allow-same-origin set.
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if19.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if19.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,21 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+
+ I'm just here to navigate to file_iframe_sandbox_a_if18.html after my owning
+ iframe has had allow-same-origin added.
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if2.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if2.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,21 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+ I am NOT sandboxed or am sandboxed with "allow-scripts" but am contained within an iframe sandboxed with sandbox = ""
+ or am sandboxed with sandbox='' inside an iframe sandboxed with "allow-scripts"
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if3.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if3.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,24 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+
+ I am sandboxed but with "allow-scripts"
+
+
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if4.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if4.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,30 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+
+ I am not sandboxed but contained within a sandboxed document with 'allow-scripts'
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if5.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if5.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,22 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+
+ I am sandboxed but with "allow-scripts allow-same-origin"
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if6.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if6.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,21 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+
+ I am sandboxed with 'allow-scripts allow-same-origin' and contained within a sandboxed document with 'allow-scripts allow-same-origin'
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if7.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if7.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,20 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+
+ I am NOT sandboxed but am contained within an iframe contained within an iframe sandboxed with sandbox = "allow-scripts"
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if8.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if8.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,26 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+ I am sandboxed but with "allow-scripts allow-same-origin". After my initial load, "allow-same-origin" is removed
+ and then I load file_iframe_sandbox_a_if9.html, which attemps to call a function in window.top. This should
+ succeed since the new sandbox flags shouldn't have taken affect on me until I'm reloaded.
+
+
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/file_iframe_sandbox_a_if9.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/file_iframe_sandbox_a_if9.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,18 @@
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+ I'm a subloaded document of file_iframe_sandbox_a_if8.html. I should be able to call a function in window.top
+ because I should be same-origin with it.
+
+
+
diff -r 8fb541f1506e -r 64071bbe3f41 content/svg/content/test/test_iframe_sandbox_inheritance.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/content/svg/content/test/test_iframe_sandbox_inheritance.html Tue Feb 18 15:26:50 2014 +0900
@@ -0,0 +1,207 @@
+
+
+
+
+
+ Test for Bug 949435
+
+
+
+
+
+Mozilla Bug 341604 - Implement HTML5 sandbox attribute for IFRAMEs
+
+