From 62a79729a43f0edeabd0e5fdfe484c72621a7c8e Mon Sep 17 00:00:00 2001 From: Bob Owen Date: Fri, 25 Apr 2014 12:05:44 +0100 Subject: [PATCH] Bug 973837 - Check that view-source is not allowed for s. r=johns --- content/base/test/file_general_document.html | 10 +++ content/base/test/mochitest.ini | 2 + .../test_viewsource_forbidden_in_object.html | 74 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 content/base/test/file_general_document.html create mode 100644 content/base/test/test_viewsource_forbidden_in_object.html diff --git a/content/base/test/file_general_document.html b/content/base/test/file_general_document.html new file mode 100644 index 00000000000..2539669de9f --- /dev/null +++ b/content/base/test/file_general_document.html @@ -0,0 +1,10 @@ + + + + +General document for testing + + +

Hello mochitest!

+ + diff --git a/content/base/test/mochitest.ini b/content/base/test/mochitest.ini index e5e67acb9c1..7c9270779a1 100644 --- a/content/base/test/mochitest.ini +++ b/content/base/test/mochitest.ini @@ -135,6 +135,7 @@ support-files = file_bug902350.html file_bug902350_frame.html file_bug907892.html + file_general_document.html file_html_in_xhr.html file_html_in_xhr.sjs file_html_in_xhr2.html @@ -604,6 +605,7 @@ skip-if = toolkit == 'android' || e10s #RANDOM [test_title.html] [test_treewalker_nextsibling.xml] [test_viewport_scroll.html] +[test_viewsource_forbidden_in_object.html] [test_w3element_traversal.html] [test_w3element_traversal.xhtml] [test_w3element_traversal_svg.html] diff --git a/content/base/test/test_viewsource_forbidden_in_object.html b/content/base/test/test_viewsource_forbidden_in_object.html new file mode 100644 index 00000000000..67ad367efd4 --- /dev/null +++ b/content/base/test/test_viewsource_forbidden_in_object.html @@ -0,0 +1,74 @@ + + + + + +Tests for Bug 973837 + + + + + + + +Mozilla Bug 973837 +

+ + + + +