Bug 1357372 - Restrict safebrowsing tests from reaching support.mozilla.org draft
authorRaajit Raj <raajit.raj@gmail.com>
Thu, 11 May 2017 20:24:29 +0530
changeset 576271 5be4bbd84f812f59a33c708c4251ca62a2a82329
parent 576270 b90e1d1b388090b12f928a3bedd27189fce3978a
child 576290 03636348fa7c4cf30d0019b60790bf95e32826d9
push id58306
push userbmo:raajit.raj@gmail.com
push dateThu, 11 May 2017 14:56:54 +0000
bugs1357372
milestone55.0a1
Bug 1357372 - Restrict safebrowsing tests from reaching support.mozilla.org MozReview-Commit-ID: IY1N9mibOap
testing/firefox-ui/resources/support.html
new file mode 100644
--- /dev/null
+++ b/testing/firefox-ui/resources/support.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  <script type="text/javascript">
+    function show() {
+      var results = /\?topic=(.+)$/.exec(window.document.location);
+      var topic = decodeURIComponent(results[1].replace(/\+/g, " "))
+      var node = document.getElementById("topic");
+
+      node.textContent = topic;
+    }
+  </script>
+</head>
+
+<body onload="show()">
+  <div id="topic"></div>
+</body>
+</html>