From 488c17dbef91efc48ae0b506b6625ec15697251f Mon Sep 17 00:00:00 2001 From: Ian Melven Date: Mon, 20 Aug 2012 11:34:33 -0700 Subject: [PATCH] Bug 341604 - tests for iframe sandbox - same origin r=jst --- content/html/content/test/Makefile.in | 4 + .../test/file_iframe_sandbox_b_if1.html | 11 ++ .../test/file_iframe_sandbox_b_if2.html | 49 ++++++++ .../test/file_iframe_sandbox_b_if3.html | 65 +++++++++++ .../test/test_iframe_sandbox_same_origin.html | 108 ++++++++++++++++++ 5 files changed, 237 insertions(+) create mode 100644 content/html/content/test/file_iframe_sandbox_b_if1.html create mode 100644 content/html/content/test/file_iframe_sandbox_b_if2.html create mode 100644 content/html/content/test/file_iframe_sandbox_b_if3.html create mode 100644 content/html/content/test/test_iframe_sandbox_same_origin.html diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index b4657bb3709..506c3393c01 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -266,6 +266,10 @@ MOCHITEST_FILES = \ test_input_file_picker.html \ test_bug763626.html \ test_bug780993.html \ + test_iframe_sandbox_same_origin.html \ + file_iframe_sandbox_b_if1.html \ + file_iframe_sandbox_b_if2.html \ + file_iframe_sandbox_b_if3.html \ $(NULL) MOCHITEST_BROWSER_FILES = \ diff --git a/content/html/content/test/file_iframe_sandbox_b_if1.html b/content/html/content/test/file_iframe_sandbox_b_if1.html new file mode 100644 index 00000000000..a65cbec6b97 --- /dev/null +++ b/content/html/content/test/file_iframe_sandbox_b_if1.html @@ -0,0 +1,11 @@ + + + + + Test for Bug 341604 + + + + I am sandboxed without any permissions + + diff --git a/content/html/content/test/file_iframe_sandbox_b_if2.html b/content/html/content/test/file_iframe_sandbox_b_if2.html new file mode 100644 index 00000000000..08e7453574b --- /dev/null +++ b/content/html/content/test/file_iframe_sandbox_b_if2.html @@ -0,0 +1,49 @@ + + + + + Test for Bug 341604 + + + + + I am sandboxed but with "allow-same-origin" and "allow-scripts" + + diff --git a/content/html/content/test/file_iframe_sandbox_b_if3.html b/content/html/content/test/file_iframe_sandbox_b_if3.html new file mode 100644 index 00000000000..bcdfb06c144 --- /dev/null +++ b/content/html/content/test/file_iframe_sandbox_b_if3.html @@ -0,0 +1,65 @@ + + + + + Test for Bug 341604 + + + + + I am sandboxed but with "allow-scripts" + + diff --git a/content/html/content/test/test_iframe_sandbox_same_origin.html b/content/html/content/test/test_iframe_sandbox_same_origin.html new file mode 100644 index 00000000000..d752601f6c6 --- /dev/null +++ b/content/html/content/test/test_iframe_sandbox_same_origin.html @@ -0,0 +1,108 @@ +\ + + + + + Test for Bug 341604 + + + + + +Mozilla Bug 341604 - Implement HTML5 sandbox attribute for IFRAMEs +

+
+ + + +