From e32b3278e32cb2b4a5b9770ace48a2246b461ca8 Mon Sep 17 00:00:00 2001 From: Bob Owen Date: Wed, 29 Apr 2015 07:28:17 +0100 Subject: [PATCH] Bug 1156059 Part 2: Ensure that META REFRESH is blocked by iframe sandbox. r=bz --- .../test/file_iframe_sandbox_refresh.html | 2 + .../file_iframe_sandbox_refresh.html^headers^ | 1 + dom/html/test/mochitest.ini | 3 + .../test/test_iframe_sandbox_refresh.html | 101 ++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 dom/html/test/file_iframe_sandbox_refresh.html create mode 100644 dom/html/test/file_iframe_sandbox_refresh.html^headers^ create mode 100644 dom/html/test/test_iframe_sandbox_refresh.html diff --git a/dom/html/test/file_iframe_sandbox_refresh.html b/dom/html/test/file_iframe_sandbox_refresh.html new file mode 100644 index 00000000000..1fad80c4282 --- /dev/null +++ b/dom/html/test/file_iframe_sandbox_refresh.html @@ -0,0 +1,2 @@ + +refresh diff --git a/dom/html/test/file_iframe_sandbox_refresh.html^headers^ b/dom/html/test/file_iframe_sandbox_refresh.html^headers^ new file mode 100644 index 00000000000..a7cc383b4fc --- /dev/null +++ b/dom/html/test/file_iframe_sandbox_refresh.html^headers^ @@ -0,0 +1 @@ +Refresh: 0 url=data:text/html,Refreshed diff --git a/dom/html/test/mochitest.ini b/dom/html/test/mochitest.ini index 57caf5cd73e..3e1b54ecaa1 100644 --- a/dom/html/test/mochitest.ini +++ b/dom/html/test/mochitest.ini @@ -161,6 +161,8 @@ support-files = file_iframe_sandbox_redirect.html file_iframe_sandbox_redirect.html^headers^ file_iframe_sandbox_redirect_target.html + file_iframe_sandbox_refresh.html + file_iframe_sandbox_refresh.html^headers^ file_iframe_sandbox_top_navigation_fail.html file_iframe_sandbox_top_navigation_pass.html file_iframe_sandbox_window_form_fail.html @@ -485,6 +487,7 @@ skip-if = buildapp == 'b2g' # b2g(multiple concurrent window.open()s fail on B2G [test_iframe_sandbox_popups_inheritance.html] skip-if = buildapp == 'b2g' || e10s || toolkit == 'android' # b2g(multiple concurrent window.open()s fail on B2G) b2g-debug(multiple concurrent window.open()s fail on B2G) b2g-desktop(Bug 931116, b2g desktop specific, initial triage) android(bug 939642) [test_iframe_sandbox_redirect.html] +[test_iframe_sandbox_refresh.html] [test_iframe_sandbox_same_origin.html] [test_iframe_sandbox_workers.html] [test_img_attributes_reflection.html] diff --git a/dom/html/test/test_iframe_sandbox_refresh.html b/dom/html/test/test_iframe_sandbox_refresh.html new file mode 100644 index 00000000000..770a4ba8ffa --- /dev/null +++ b/dom/html/test/test_iframe_sandbox_refresh.html @@ -0,0 +1,101 @@ + + + + + + Tests for Bug 1156059 + + + + + +Mozilla Bug 1156059 +

+ +
+
+ +