summaryrefslogtreecommitdiffstats
path: root/dom/security/test/general/file_data_download.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/security/test/general/file_data_download.html')
-rw-r--r--dom/security/test/general/file_data_download.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/security/test/general/file_data_download.html b/dom/security/test/general/file_data_download.html
new file mode 100644
index 0000000000..4cc92fe8f5
--- /dev/null
+++ b/dom/security/test/general/file_data_download.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <title>Test download attribute for data: URI</title>
+</head>
+<body>
+ <a href="data:text/html,<body>data download</body>" download="data-foo.html" id="testlink">download data</a>
+ <script>
+ // click the link to have the downoad panel appear
+ let testlink = document.getElementById("testlink");
+ testlink.click();
+ </script>
+ </body>
+</html>