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"
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);
21 link.appendChild(text);
23 gContainer.appendChild(li);