diff options
Diffstat (limited to 'comm/mail/test/browser/content-policy/html')
-rw-r--r-- | comm/mail/test/browser/content-policy/html/401.sjs | 10 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/mailtolink.html | 8 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/pass.png | bin | 0 -> 732 bytes | |||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/plugin.html | 10 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/remote-noscript.html | 19 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/remoteimage.html | 9 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/remoteimagedata.html | 9 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/remotevideo.html | 9 | ||||
-rw-r--r-- | comm/mail/test/browser/content-policy/html/video.ogv | bin | 0 -> 40604 bytes |
9 files changed, 74 insertions, 0 deletions
diff --git a/comm/mail/test/browser/content-policy/html/401.sjs b/comm/mail/test/browser/content-policy/html/401.sjs new file mode 100644 index 0000000000..93757fe5a5 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/401.sjs @@ -0,0 +1,10 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, you can obtain one at http://mozilla.org/MPL/2.0/. */ + +function handleRequest(request, response) { + if (!request.hasHeader("Authorization")) { + response.setStatusLine("1.1", 401, "Unauthorized"); + response.setHeader("WWW-Authenticate", `Basic realm="401test"`); + } +} diff --git a/comm/mail/test/browser/content-policy/html/mailtolink.html b/comm/mail/test/browser/content-policy/html/mailtolink.html new file mode 100644 index 0000000000..4027a5248e --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/mailtolink.html @@ -0,0 +1,8 @@ +<html> + <head> + <title>Mailto Link Test</title> + </head> + <body bgcolor="#FFFFFF"> + <a href="mailto:nobody@mozilla.invalid" id="mailtolink">mailtolink</a> + </body> +</html> diff --git a/comm/mail/test/browser/content-policy/html/pass.png b/comm/mail/test/browser/content-policy/html/pass.png Binary files differnew file mode 100644 index 0000000000..4b0d444cf6 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/pass.png diff --git a/comm/mail/test/browser/content-policy/html/plugin.html b/comm/mail/test/browser/content-policy/html/plugin.html new file mode 100644 index 0000000000..f8a3f4e241 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/plugin.html @@ -0,0 +1,10 @@ +<html> + <head> + <title>Plugin Test</title> + </head> + <body bgcolor="#FFFFFF"> + <embed id="testelement" type="application/x-test" + style="width:400px; height:400px; margin-top:20px;" border="1"> + </embed> + </body> +</html> diff --git a/comm/mail/test/browser/content-policy/html/remote-noscript.html b/comm/mail/test/browser/content-policy/html/remote-noscript.html new file mode 100644 index 0000000000..28445bfe11 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/remote-noscript.html @@ -0,0 +1,19 @@ +<html> + <head> + <meta charset="utf-8"/> + <title>noscript test</title> + </head> + <body bgcolor="#FFFFFF"> + <h1>remote-noscript.html</h1> + <p>This content is served over http!</p> + <noscript> + JavaScript is OFF! + </noscript> + + <div id="scripted"></div> + <script> + var jsIsTurnedOn = true; // variable to check in test + document.getElementById("scripted").innerHTML = "JavaScript is ON!"; + </script> + </body> +</html> diff --git a/comm/mail/test/browser/content-policy/html/remoteimage.html b/comm/mail/test/browser/content-policy/html/remoteimage.html new file mode 100644 index 0000000000..f7a005cf57 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/remoteimage.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head> + <title>Remote Image Test</title> + </head> + <body bgcolor="#FFFFFF"> + <img id="testelement" src="pass.png"/> + </body> +</html> diff --git a/comm/mail/test/browser/content-policy/html/remoteimagedata.html b/comm/mail/test/browser/content-policy/html/remoteimagedata.html new file mode 100644 index 0000000000..aca2427376 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/remoteimagedata.html @@ -0,0 +1,9 @@ +<html> + <head> + <title>Remote Image Test</title> + </head> + <body bg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AAASUVORK5CYII="/> + (that's smiley-tongue-out.png) + </body> +</html> diff --git a/comm/mail/test/browser/content-policy/html/remotevideo.html b/comm/mail/test/browser/content-policy/html/remotevideo.html new file mode 100644 index 0000000000..2a4cad15b5 --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/remotevideo.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head> + <title>Remote Image Test</title> + </head> + <body bgcolor="#FFFFFF"> + <video id="testelement" src="video.ogv"/> + </body> +</html> diff --git a/comm/mail/test/browser/content-policy/html/video.ogv b/comm/mail/test/browser/content-policy/html/video.ogv Binary files differnew file mode 100644 index 0000000000..61c179447f --- /dev/null +++ b/comm/mail/test/browser/content-policy/html/video.ogv |