From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- toolkit/content/aboutGlean.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 toolkit/content/aboutGlean.js (limited to 'toolkit/content/aboutGlean.js') diff --git a/toolkit/content/aboutGlean.js b/toolkit/content/aboutGlean.js new file mode 100644 index 0000000000..8ff0b8852a --- /dev/null +++ b/toolkit/content/aboutGlean.js @@ -0,0 +1,19 @@ +/* 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/. */ + +"use strict"; + +function onLoad() { + document.getElementById("controls-submit").addEventListener("click", () => { + let tag = document.getElementById("tag-pings").value; + let log = document.getElementById("log-pings").checked; + let send = document.getElementById("send-pings").value; + let FOG = Cc["@mozilla.org/toolkit/glean;1"].createInstance(Ci.nsIFOG); + FOG.setLogPings(log); + FOG.setTagPings(tag); + FOG.sendPing(send); + }); +} + +window.addEventListener("load", onLoad); -- cgit v1.2.3