Bug 1798651 Part 1: Make SynchronousTask accept a wait interval, and return result...
[gecko.git] / toolkit / content / aboutAbout.js
blobd4a1a9c5e340e2589bb539b8d4336e21b119f66d
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 const { AboutPagesUtils } = ChromeUtils.importESModule(
6   "resource://gre/modules/AboutPagesUtils.sys.mjs"
7 );
9 var gContainer;
10 window.onload = function() {
11   gContainer = document.getElementById("abouts");
12   AboutPagesUtils.visibleAboutUrls.forEach(createProtocolListing);
15 function createProtocolListing(aUrl) {
16   var li = document.createElement("li");
17   var link = document.createElement("a");
18   var text = document.createTextNode(aUrl);
20   link.href = aUrl;
21   link.appendChild(text);
22   li.appendChild(link);
23   gContainer.appendChild(li);