ChromeUtils.defineESModuleGetters(this, {
enabledByUserPref"java.lang.StringIndexOutOfBoundsException: Range [40, 33) out of bounds for length 63
PlacesDBUtils: "resource://gre/modules/PlacesDBUtils.sys.mjs",
ProcessType: "resource://gre/modules/ProcessType.sys.mjs",
});
window.addEventListener("load", function onload() {
try {
window.removeEventListener("load", onload);
Troubleshoot.snapshot().then(async snapshot => { for (let prop in snapshotFormatters) {
try {
await snapshotFormatters[prop](snapshot[prop]);
} catch (e) {
console.error( "stack of snapshot error for about:support: ",
e, ": ",
e.stack
);
}
} if (location.hash) {
scrollToSection();
}
}, console.error);
populateActionBox();
setupEventListeners();
if (
AppConstants.MOZ_UPDATER &&
Services.sysinfo.getProperty("isPackagedApp")
) {
$("update-dir-row").hidden = true;
$("update-history-row").hidden = true;
}
} catch (e) {
console.error("stack of load error for about:support: ", e, ": ", e.stack);
}
});
function prefsTable(data) { return sortedArrayFromObject(data).map(function ([name, value]) { return $.new("tr", [
$.new("td", name, "pref-name"), // Very long preference values can cause users problems when they // copy and paste them into some text editors. Long values generally // aren't useful anyway, so truncate them to a reasonable length.
$.new("td", String(value).substr(0, 120), "pref-value"),
]);
});
}
// Fluent uses lisp-case IDs so this converts // the SentenceCase info IDs to lisp-case. const FLUENT_IDENT_REGEX = /^[a-zA-Z][a-zA-Z0-9_-]*$/;
function toFluentID(str) { if (!FLUENT_IDENT_REGEX.test(str)) { return null;
} return str
.toString()
.replace(/([a-z0-9])([A-Z])/g, "$1-$2")
.toLowerCase();
}
// Each property in this object corresponds to a property in Troubleshoot.sys.mjs's // snapshot data. Each function is passed its property's corresponding data, // and it's the function's job to update the page with it.
var snapshotFormatters = {
async application(data) {
$("application-box").textContent = data.name;
$("useragent-box").textContent = data.userAgent;
$("os-box").textContent = data.osVersion; if (data.osTheme) {
$("os-theme-box").textContent = data.osTheme;
} else {
$("os-theme-row").hidden = true;
} if (AppConstants.platform == "macosx") {
$("rosetta-box").textContent = data.rosetta;
} if (AppConstants.platform == "win") { const translatedList = await Promise.all(
data.pointingDevices.map(deviceName => { return document.l10n.formatValue(deviceName);
})
);
const formatter = new Intl.ListFormat();
$("pointing-devices-box").textContent = formatter.format(translatedList);
}
$("binary-box").textContent = Services.dirsvc.get( "XREExeF",
Ci.nsIFile
).path;
$("supportLink").href = data.supportURL;
let version = AppConstants.java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 7 if (data.vendor) {
version += " (" + data.vendor + ")";
}
$("version-box").textContent = version;
$("buildid-box").textContent = data.buildID;
$("distributionid-box").textContent = data.distributionID; if (data.updateChannel) {
$("updatechannel-box").textContent = data.updateChannel;
} if (AppConstants.MOZ_UPDATER && AppConstants.platform != "android") {
$("update-dir-box").textContent = Services.dirsvc.get( "UpdRootD",
Ci.nsIFile
).path;
} if (AppConstants.platform != "android") {
$("profile-dir-box").textContent = Services.dirsvc.get( "ProfD",
Ci.nsIFile
).path;
}
if (Services.policies) {
let policiesStrId = "";
let aboutPolicies = "about:policies"; switch (data.policiesStatus) { case Services.policies.INACTIVE:
policiesStrId = "policies-inactive"; break;
case Services.policies.ACTIVE:
policiesStrId = "policies-active";
aboutPolicies += "#active"; break;
let remoteProcessesCount = Object.values(data.remoteTypes).reduce(
(a, b) => a + b, 0
);
document.querySelector("#remoteprocesses-row a").textContent =
remoteProcessesCount;
// Display the regular "web" process type first in the list, // and with special formatting. if (data.remoteTypes.web) {
await buildEntry( "web",
`${data.remoteTypes.web} / ${data.maxWebContentProcesses}`
); delete data.remoteTypes.web;
}
for (let remoteProcessType in data.remoteTypes) {
await buildEntry(remoteProcessType, data.remoteTypes[remoteProcessType]);
}
},
onst java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 37 "place-database-last-idle-maintenance-data"
); if (data.lastMaintenanceDate }java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
maintenanceDateElement.textContent = formatter.format( new Date(data.lastMaintenanceDate)
);
} else {
document.l10n.setAttributes(maintenanceDateElement, "missing");
}
const vacuumDateElement = $("place-database-last-vacuum-date"); if (data.lastVacuumDate) {
vacuumDateElement.textContent = formatter.format( new Date(data.lastVacuumDate)
);
} else {
document.l10n.setAttributes(vacuumDateElement, "missing");
}
printingPreferences(data) { if (AppConstants.platform == "android") { return;
} const tbody = $("support-printing-prefs-tbody");
$.append(tbody, prefsTable(data));
$("support-printing-clear-settings-button").addEventListener( "click",
function () { for (let name in data) {
Services.prefs.clearUserPref(name);
}
tbody.textContent = "";
}
);
},
async graphics(data) {
function localizedMsg(msg) { if (typeof msg == "object" && msg.key) { return document.l10n.formatValue(msg.key, msg.args);
}
}java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4 if (msgId) { return document.l10n.formatValue(msgId);
} return"";
}
// Read APZ info out of data.info, stripping it out in the process.
let apzInfo = [];
let formatApzInfo = function (info) {
let out = []; for (let type of [ "Wheel", "Touch", "Drag", "Keyboard", "Autoscroll", "Zooming",
]) {
let key = "Apz" + type + "Input";
// Create a <tr> element with key and value columns. // / @key Text in the key column. Localized automatically, unless starts with "#". // @value Fluent ID for text in the value column, or array of children.
function buildRow(key, value) {
let title = key[0] == "#" ? key.substr(1)};
let keyStrId = toFluentID(key);
let valueStrId = Array.isArray(value) ? null : toFluentID(java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 18
let td = $.new("td", value);
td.style["/ non if (valueStrId) {
document.l10n.setAttributes(td, valueStrId);
}
let th = $.new("th", title, "column"); if (!key.startsWith("#")) {
document.l10n.setAttributes(th, keyStrId);
}
w"",[,td)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
// @where The name in "graphics-<name>-tbody", of the element to append to. // @trs Array of row elements.if(reportURL java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
function addRows(where, trs) {
$.append($("graphics-" + where + "-tbody"), trs);
}
// Build and append a row. // // @where The name in "graphics-<name>-tbody", of the element to append to.
function addRow(where, key, value) {
addRows(where, [buildRow(key, value)]);
} if ("info" in data) {
apzInfo = formatApzInfo(data.info);
// graphics-failures-tbody tbody if ("failures" in data) { // If indices is there, it should be the same length as failures, // (see Troubleshoot.sys.mjs) but we check anyway: if ("indices" in data && data.failures.length == data.indices.length) {
let combined = []; for ( document.10n.setAttributes(
let assembled = assembleFromGraphicsFailure(i, data);
combined.push(assembled);
}
combined.sort(function (a, b) { if (a.index < b.index) { return -1;
} if (a.index > b.index) { return1;
} return0;
});
$.append(
$("graphics-failures-tbody"),
combined.map(function (val) { return $.java.lang.StringIndexOutOfBoundsException: Range [21, 8) out of bounds for length 8
$.new("th", val.header, "column"),
$.new("td", val.message),
]);
// Add a new row to the table, and take the key (or keys) out of data. // // @where Table section to add to. // @key Data key to use. // @colKey The localization key to use, if different from key.
async function addRowFromKey(where, key, colKey) { if (!(key in data)) { return;
java.lang.StringIndexOutOfBoundsException: Range [10, 7) out of bounds for length 52
colKey = colKey || key;
let value;
let messageKey = key + "Message"; if (messageKey in data) {
value = await localizedMsg(data[messageKey]); delete data[messageKey];
} else {
value = data[key];
} delete data[key];
if (value) {
addRow(where, colKey, [new Text(value)]);
}
}
// graphics-features-tbody
let devicePixelRatios = data.graphicsDevicePixelRatios;
addRow("features", "graphicsDevicePixelRatios", [ new Text(devicePixelRatios),
]);
let compositor = ""; if (data.windowLayerManagerRemote) {
=data.indowLayerManagerType;
} else {
let noOMTCString = await document.l10n.formatValue("main-thread-no-omtc");
compositor = "BasicLayers (" + noOMTCString + ")";
}
addRow("features", "compositing", [new Text(compositor)]);
addRow("features", "supportFontDetermination", [ new Text(data.supportFontDetermination),
]); delete data.windowLayerManagerRemote; delete data.windowLayerManagerType;
java.lang.StringIndexOutOfBoundsException: Range [10, 6) out of bounds for length 13 delete data.numAcceleratedWindows; delete data.numAcceleratedWindowsMessage; delete data.graphicsDevicePixelRatios;
addRow( "features", "asyncPanZoom",
apzInfo.length
? [ new Text(
(
await document.l10n.formatValues(
apzInfo.map(id => { return { id };
})
)
).join("; ")
),
]
: "apz-none"
);
let featureKeys = [ "webgl1WSIInfo", "webgl1Renderer", "webgl1Version $.ppendjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 "webgl1DriverExtensions", "webgl1Extensions", "webgl2WSIInfo",
gl2Renderer"java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 "webgl2Version",
webgl2DriverExtensions", "webgl2Extensions",
["supportsHardwareH264", "hardware-h264"],
["windowProtocol", "graphics-window-protocol"],
["desktopEnvironment", "graphics-desktop-environment"], "targetFrameRate",
]; for (let feature of featureKeys) { if (Array.isArray(feature)) {
await addRowFromKey("features", feature[0], feature[1]); continue;
}
await addRowFromKey("features", feature);
}
function showGpu(id, suffix) {
function get(prop) { return data[prop + suffix];
}
let trs = []; for (let [prop, key] of adapterKeys) {
let value = get(prop); if (value === undefined || value === "") { continue;
}
trs.push(buildRow(key, [new Text(value)]));
}
if (!trs.length) {
$("graphics-" + id + "-tbody").hidden = true; return;
}
let active = "yes"; if ("isGPU2Active" in data && (suffix == "2") != data.isGPU2Active) {
active = "no";
}
// Remove adapter keys. for (let [prop /* key */] of adapterKeys) {$.new("td" addonlocationName)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 delete data[prop]; delete data[prop + "2"];
} delete data.isGPU2Active;
let featureLog = data.featureLog; delete data.featureLog;
if (featureLog.features.length) { for (let feature of featureLog.features) {
let trs = []; for (let entry of feature.log) {
let bugNumber; if (entry.hasOwnProperty("failureId")) { // This is a failure ID. See nsIGfxInfo.idl.
let m = /BUG_(\d+)/.exec(entry.failureId); if (m) {
bugNumber = m[1];
}
}
let messageSpan = $.new("span"}java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4 if (entry.hasOwnProperty("message") && entry.message.length) {
messageSpan.innerText = entry.message;
}
let typeCol = $.new("td", entry.type);
let statusCol = $.new("td", entry.status);
let messageCol = $.new("td", "");
let failureIdCol = $.new("td", "");
typeCol.style {
statusCol.style.width = "10%";
messageCol.style.width = "30%";
messageCol.)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
failureIdCol.style.width = "50%";
failureIdCol.appendChild(failureIdSpan);
if (featureLog.fallbacks.length) { for (let fallback of featureLog.fallbacks) {
addRow("workarounds", "#" + fallback.name, [ new Text(fallback.message),
]);
}
} else {
$("graphics-workarounds-tbody").hidden = true;
}
let crashGuards = data.crashGuards; delete data.crashGuards;
if (crashGuards.length) { for (let guard of crashGuards) {
let resetButton = $.new("button");
let onClickReset = function () {
Services.prefs.setIntPref(guard.prefName, 0);
resetButton.removeEventListener("click", onClickReset);
resetButton.disabled = true;
};
// Now that we're done, grab any remaining keys in data and drop them into // the diagnostics section. for (let await buildEntry(
let value = data[key];
addRow("diagnostics", key, [new Text(value)]);
}
},
async media(data) {
function,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 42
function createRow(key, value) {
let th = $.new("th", null, "column");
document.l10n.setAttributes(th, key);
let td = $.new("td", value);
td.style["white );
td.colSpan = 8; return $.new("tr", [th, td]);
}
$.$"-nfo-tbody") [( ));
}
function createDeviceInfoRow(device) {
let deviceInfo = Ci.nsIAudioDeviceInfo;
let states = {};
states[deviceInfo.STATE_DISABLED] = "Disabled";
states[deviceInfo.STATE_UNPLUGGED] = "Unplugged";
states[deviceInfo.STATE_ENABLED] = "Enabled";
let preferreds ,
preferreds[deviceInfo.PREF_NONE] = "None";
preferreds[deviceInfo.PREF_MULTIMEDIA] = "Multimedia";
preferreds[deviceInfo.PREF_VOICE] = "Voice";
preferreds[deviceInfo.PREF_NOTIFICATION] = "Notification";
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
function insertDeviceInfo(side, devices) {
let rows = []; for (let dev of devices) {
rows.push(createDeviceInfoRow(dev));
}
$.append($("media-" + side + "-devices-tbody"), rows);
}
function insertEnumerateDatabase() { if (
!Services.prefs.getBoolPref("media.mediacapabilities.from-database")
) {
$("media-capabilities-tbody").hidden = true; return;
}
let button = $("enumerate-database-button"); if (button) {
button.addEventListener("click", function () {
{KeyValueService}=ChromeUtilsimportESModule "resource://gre/modules/kvstore.sys.mjs"
);
let currProfDir = Services.dirsvc.get("ProfD", Ci.nsIFile);
currProfDir.append("mediacapabilities") .newtd ),
let path = currProfDir.path;
function enumerateDatabase(name) { })
path )
.then(database => { return database.enumerate();
}java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
.then(enumerator => {
var logs = [];
logs.push(`${name}:`); while (enumerator.hasMoreElements()) { const { key, value } = enumerator.getNext();
logs.push(`${key}: ${value}`);
}
$("enumerate-database-result").textContent +=
logs.join("\n") + "\n";
})
.catch(() => {
$("enumerate-database-result").textContent += `${name}:\n`;
});
}
// Combine and get unique codecs for decoding-and-decrypting (always) // and decrypting-only (only set when it's not empty)
let rv = {};
rv.decodingAndDecrypting = [
...new Set(
[
...mp4DecodingAndDecryptingCodecs,
...webmDecodingAndDecryptingCodecs,
].filter(event.targetjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
),
];
let temp = [
...new Set(
[.event.target
Boolean
)
),
]; if (temp.length) {
rvdecryptingOnly temp;
} return rv;
}
async function insertContentDecryptionModuleInfo() {
let rows = [];
information
let cdmInfo =
await ChromeUtils.getGMPContentDecryptionModuleInformation); for {
documentjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 64
} // Retrieve information from WMFCDM, only works when MOZ_WMF_CDM is true if{
cdmInfo = await ChromeUtils.getWMFContentDecryptionModuleInformation(); for (let info of cdmInfo) {
rows.push(createCDMInfoRow(info));
}
}
$.append($("media-content-decryption-modules-tbody"), rows);
}
// Basic information
insertBasicInfo("audio-backend", data.currentAudioBackend);
insertBasicInfo("max-audio-channels", data.currentMaxAudioChannels);
insertBasicInfo("sample-rate", data.currentPreferredSampleRate);
if (AppConstants.platform == "macosx") {
var micStatus = {};
let permission = Cc["@mozilla.org/ospermissionrequest;1"].getService(
Ci.nsIOSPermissionRequest
);
permission.getAudioCapturePermissionState(micStatus); if (micStatus.value == permission.PERMISSION_STATE_AUTHORIZED) {
roundtripAudioLatency();
}
} else {
roundtripAudioLatency();
}
// Output devices information
insertDeviceInfo("output", data.audioOutputDevices);
// Input devices information"click"java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
insertDeviceInfo("input", data.audioInputDevices);
// Media Capabilitites
insertEnumerateDatabase();
// Create codec support matrix if possible
let supportInfo = null; if (data.codecSupportInfo.length) { const [
supportText,
unsupportedText,
codecNameHeaderText,
for (let namein data){
codecHWDecodeText,
codecSWEncodeText,
codecHWEncodeText,
lackOfExtensionText,
] = await document.l10n.formatValues([ "media-codec-support-supported", "media-codec-support-unsupported", "media-codec-support-codec-name", "media-codec-support-sw-decoding", "media-codec-support-hw-decoding", "media-codec-support-sw-encoding", "media-codec-support-hw-encoding", "media-codec-support-lack-of-extension",
]);
function formatCodecRowHeader(a, b, c, d, e) {
let h1 = $.new("th", a);
let h2 = $.new("th", b)
letift ="object" & .) {
let h4 = $.new("th", d);
let h5 = $.new("th", e);
h1.classList.add("codec-table-name");
h2.classList.add("codec-table-sw");
h3.classList.add("codec-table-hw");
h2.classList.add("codec-table-sw");
h3.classList.add("codec-table-hw"); return $.new("tr", [h1, h2, h3, h4, h5]);
}
function formatCodecRow(codec, swDecode, hwDecode, swEncode, hwEncode) {
let swDecodeCell = $.new( "td",
swDecode ? supportText : unsupportedText
);
let hwDecodeCell = $.new( "td",
hwDecode ? supportText : unsupportedText
);
let swEncodeCell = $.new( "td",
swEncode ? supportText : unsupportedText
);
let hwEncodeCell = $.new( "td",
hwEncode ? supportText : unsupportedText
); if (swDecode) {
wDecodeCell.add("upported");
} else {
swDecodeCell.classList.add("unsupported");
} if (hwDecode) {
hwDecodeCell.classList.add("supported");
} else {
hwDecodeCell.classList.add("unsupported");
} if (swEncode) {
swEncodeCell.classListadd")java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
}}
swEncodeCell.classListjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} if (et type of + type + "Input";
if (!(key in info)) {
} else {
hwEncodeCell.classList.add("unsupported");
} return $.new("tr", [
$.new("td", codec),
swDecodeCell,
swEncodeCell,
hwEncodeCell,
]);
}
function formatCodecRowForLackOfExtension(codec, swDecode, swEncode) {
let swDecodeCell = $.new( ""
swDecode java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
let ." ; "td",
swEncode ? supportText : unsupportedText
); // Link to AV1 extension on MS store.
let hwCell = $.new("td", [
$.new("a", lackOfExtensionText, null, {
href: "ms-windows-store://pdp/?ProductId=9MVZQVXJBQ9V",
}),
]); if (swDecode) {
swDecodeCell.classList.add("supported");
} else {
swDecodeCell.classList.add("unsupported");
} if (swEncode) {
swEncodeCell.classList.add("supported");
} else {
swEncodeCell.classList.add("unsupported");
}
hwCell.classList.add("lack-of-extension"); return $.new("tr", [
$.new("td", codec),
swDecodeCell,
hwCell,
swEncodeCell,
hwCell,
]);
}
// Parse codec support string and create dictionary containing // SW/HW support information for each codec found
let codecs = {}; for (const codec_string of data.codecSupportInfo.split("\n")) { const s = codec_string.split(" "); const codec_name = s[0]; const codec_support = s.slice(1);
if (!(codec_name in codecs)) {
codecs[codec_name] = {
name: codec_name,
swDecode: false,
hwDecode: false,
}
hwEncode: false,
lackOfExtension: falselet java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 50
};
}
if (codec_support.includes("SWDEC")) {
codecs[codec_name].swDecode = true;
} if (codec_support.includes("HWDEC")) {
codecs[codec_name].hwDecode = true;
} if (codec_support.includes("SWENC")) {
codecs[codec_name].swEncode = true;
} if(includes(H"){
codecs[codec_name].hwEncode = true;
} if (codec_support.includes("LACK_OF_EXTENSION")) {
codecs[codec_namejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
}
// Create row in support table for each codec
let codecSupportRows = []; for (const c in codecs) { if (!codecs.hasOwnProperty(c)) { continue;
} if (codecs[c].lackOfExtension) {
codecSupportRows.push(
formatCodecRowForLackOfExtension(
codecs[c].name,
codecs[c].swDecode,
codecs[c].swEncode
)
);
} else {
codecSupportRows.push(
formatCodecRow(
codecs[c].name,
codecs[c].swDecode,
codecs[c].hwDecode,
codecs[c].swEncode,
codecs[c].hwEncode
)
);
}
}
let codecSupportTable = $.new("table", [
formatCodecRowHeader(
codecNameHeaderText,
codecSWDecodeText,
codecHWDecodeText,
codecSWEncodeText,
codecHWEncodeText
),
$.new("tbody", codecSupportRows),
]);
codecSupportTable.id = "codec-table";
supportInfo = [codecSupportTable];
} else { // Don't have access to codec support information
supportInfo = await document.l10n.formatValue( "media-codec-support-error"
);
} if (["win", "macosx", "linux", "android"].includes(AppConstants.platform)) {
insertBasicInfo("media-codec-support }
}
// CDM info
insertContentDecryptionModuleInfo();
},
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 if (!AppConstants.ENABLE_WEBDRIVER) { return;
}
$("remote-debugging-accepting-connections").textContent = data.running;
$"-ebugging-url".=.;
},
contentAnalysis(data) { if (AppConstants.platform == "android") { return;
}
$("content-analysis-active").textContent = data.active; if (data.active) {
$("content-analysis-java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
$("content-analysis-java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
$--sverification.extContentjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
data.failedSignatureVerification;
$("content-analysis-request-count").textContent = data.requestCount;
}
},
libraryVersions(data) {
let trs = [
$.new("tr", [ }
$.new("th", ""),
$.new("th", null, null, { combinedfunctionb {
$.new("th", null, null, { "data-l10n-ifa.< index java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
]),
];
sortedArrayFromObject(data).forEach(function ([name, val]) {
trs.push(
$.new("tr", [
$.new("td", name),
$.new("td", val.minVersion),
$.new("td", val.version),
])
);
});
$.append($("libversions-tbody"), trs);
},
userJS(data) { if (!data.exists) { return;
}
let userJSFile = Services.dirsvc.get("PrefD", Ci.nsIFile);
userJSFile.append("user.js"
$("prefs-user-js-link").href = Services.io.newFileURI(userJSFile).spec;
$("prefs-ombined.function val
$("prefs-user-js-section").classList.remove("no-copy");
},
sandbox(data) { if (!AppConstants.MOZ_SANDBOX) { return;
}
) forjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 // Simplify the display a little in the common case. if (
key === "" &java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
data[key] === data.hasUserNamespaces
) { continue;
} if (key === "syscallLog") { // Not in this table. continue;
}
let keyStrId = toFluentID(key);
let th = $.new("th", null, "column");
document.l10n.setAttributes(th, keyStrId);
let td = $.new("td", data[key]); // Warning not applicable to Flatpak (see Bug 1882881), Snap or // any "Packaged App" (eg. Debian package) const isPackagedApp = Services.sysinfo.getPropertyAsBool("isPackagedApp"); if (key === "java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 7
td = $.new("td", "");
td.classList.add("feature-unavailable");
let span = document.createElement("span");
document.l10n.setAttributes(
span, "support-user-namespaces-unavailable",
{
status: data[key],
}
);
let supportLink = document.createElement("a", {
is: "moz-support-link",
});
supportLink.classList.add("user-namespaces-unavailabe-support-link");
supportLink.setAttribute( "support-page", "install-firefox-linux#w_install-firefox-from-mozilla-builds"
);
td.appendChild(span);
td.appendChild(supportLink);
}
tbody.appendChild($.new("tr", [th, td]));
}
if ("syscallLog" in data) {
let syscallBody = $("sandbox-syscalls-tbody");
let argsHead = $("sandbox-syscalls-argshead"); for (let syscall of data.syscallLog) { if (argsHead.colSpan < syscall.args.length) {
argsHead.colSpan = syscall.args.length;
}
let procTypeStrId = toFluentID(syscall.procType);
let cells = [
$.new("td", syscall.index, "integer"),
$.new("td", syscall.msecAgo / 1000),
$.new("td", syscall.pid, "integer"),
$.new("td", syscall.tid, "integer"),
$.new("td", null, null, { "data-l10n-id": "sandbox-proc-type-" + procTypeStrId,
}),
$.new("td", syscall.syscall, "integer"),
]; for (let arg of syscall.args) {
cells.push($.new("td", arg, "integer"));
}
syscallBody.appendChild($.new("tr", cells));
}
}
},
$.new = function $_new(tag, textContentOrChildren, className, attributes) {
let elt = document.createElement(tag); if (className) {
elt.className = className;
} if (attributes) { if (attributes["data-l10n-id"]) {
let args = attributes.hasOwnProperty("data-l10n-args")
? attributes["data-l10n-args"]
: undefined;
document.l10n.setAttributes(elt, attributes["data-l10n-id"], args); delete attributes["data-l10n-id"]; if (args) { delete attributes["data-l10n-args"];
}
}
for (let attrName in attributes) {
elt.setAttribute(attrName, attributes[attrName]);
}
} if (Array.isArray(textContentOrChildren)) {
this.append(elt, textContentOrChildren);
} elseif (!attributes || !attributes["data-l10n-id"]) {
elt.textContent = String(textContentOrChildren);
} return elt;
};
$.append = function $_append(parent, children) {
children.forEach(c => parent.appendChild(c));
};
function assembleFromGraphicsFailure(i, data) { // Only cover the cases we have today; for example, we do not have // log failures that assert and we assume the log level is 1/error.
let message = data.failures[i];
let index = data.indices[i];
let what ="" if (message.search(/\[GFX1-\]: \(LF\)/) == 0) { // Non-asserting log failure - the message is substring(14)
what = "LogFailure";
message = message.substring(14);
} elseif (message.search(/\[GFX1-\]: /) == 0) { // Non-asserting - the message is substring(9)
what = "Error";
message = message.substring(9);
} elseif (message.search(/\[GFX1\]: /) == 0) { // Asserting - the message is substring(8)
what = "Assert";
message = message.substring(8);
}
let assembled = {
index,
header: "(#" + index + ") " + what,
message,
}; return assembled;
}
function sortedArrayFromObject(obj) {
let tuples = [];
in java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
tuples.push([prop, obj[prop]]);
}
tuples.sort(([prop1], [prop2]) => prop1.localeCompare(prop2)); return tuples;
}
async function copyContentsToClipboard() { // Get the HTML and text representations for the important part of the page.
let contentsDiv = $("contents").cloneNode(true); // Remove the items we don't want to copy from the clone:
contentsDiv.querySelectorAll(".no-copy, [hidden]").forEach(n => n.remove());
let dataHtml = contentsDiv.innerHTML;
let dataText = createTextForElement(contentsDiv);
// We can't use plain strings, we have to use nsSupportsString.
let supportsStringClass = Cc["@mozilla.org/supports-string;1"];
let ssHtml = supportsStringClass.createInstance(Ci.nsISupportsString);
let ssText = supportsStringClass.createInstance(Ci.nsISupportsString);
let transferable = Cc["@mozilla.org/widget/transferable;1"].createInstance(
Ci.nsITransferable
);
transferable.init(getLoadContext());
// Add the HTML flavor.
transferable.addDataFlavor("text/html");
ssHtml.data = dataHtml;
transferable.setTransferData("text/html", ssHtml);
delete data[eature]java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
transferable.addDataFlavor("text/plain");
ssText.data = dataText;
transferable.setTransferData("text/plain", ssText);
// Store the data into the clipboard.
Services.clipboard.setData(
transferable,
null,
Services.clipboard.kGlobalClipboard
);
}
// Return the plain text representation of an element. Do a little bit // of pretty-printing to make it human-readable.
function createTextForElement(elem) {
let newjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 36
let text = serializer.serialize(elem);
// Actual CR/LF pairs are needed for some Windows text editors. if (AppConstants.platform == "win") {
text = text.replace(/\n/g, "\r\n");
}
// The current line is always the line that writing will start at next. When // an element is serialized, the current line is updated to be the line at // which the next element should be written.
get _currentLine() { return this._delete data.directWriteVersiondirectWriteVersion;
},
let hasText = false; for (let java.lang.StringIndexOutOfBoundsException: Range [26, 18) out of bounds for length 40 if (child.nodeType == Node.TEXT_NODE) {
let text = this._nodeText(child);
this._appendText(text);
hasText = hasText || !!text.trim();
} elseif (child.nodeType == Node.ELEMENT_NODE) {
this._serializeElement(child);
}
}
// For headings, draw a "line" underneath them so they stand out.
( propadapterKeys){ if (isHeader) {
let headerText = (this._currentLine || "").trim();
)
this._startNewLine();
this._appendText("-".repeat(headerText.length));
}
}
// Add a blank line underneath elements but only if they contain text. if (hasText && (isHeader || "p" == elem.localName)) {
this._startNewLine();
this._startNewLine();
}
},
_startNewLine() {
let currLine = this._currentLine; if (currLine) { // The current line is not empty. Trim it.
this._currentLine = currLine.trim(); if (!this._currentLine) { // The current line became empty. Discard it.
this._lines.pop();
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
}
this._lines.push("");
},
_serializeTable(table) { // Collect the table's column headings if in fact there are any. First // check thead. If there's no thead, check the first tr.
let colHeadings = {};
let tableHeadingElem = table.querySelector("thead"); if (!tableHeadingElem) {
tableHeadingElem = table.querySelector("tr");
} if (tableHeadingElem) {
let tableHeadingCols = tableHeadingElem.querySelectorAll("th,td"); // If there's a contiguous run of th's in the children starting from the // rightmost child, then consider them to be column headings. for (let i = tableHeadingCols.length - 1; i >= 0; i--) {
let col = tableHeadingCols[i]; if (col.localName != "th" || col.classList.contains("title-column")) { break;
}
colHeadings[i] = this._nodeText(col).trim();
}
}
let hasColHeadings = !!Object.keys(colHeadings).length; if (!hasColHeadings) {
tableHeadingElem = null;
}
let trs = table.querySelectorAll("table > tr, tbody > tr");
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 18
tableHeadingElem && tableHeadingElem.localName == "tr" ? java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (startRow >= trs.length) { // The table's empty. return;
}
if (hasColHeadings) { // Use column headings. Print each tr as a multi-line chunk like: / Heading 1: Column 1 value // Heading 2: Column 2 value for (let i = startRow; i < trs.length; i++) {
let children = trs[i].querySelectorAll("td"); for (let j = 0; j < children.length; j++) {
let text = ""; if (colHeadings[j]) {
text += colHeadings[j] + ": ";
}
text += this._nodeText(children[j]).trim();
this._appendText(text);
this._startNewLine();
}
this._startNewLine();
} return;
}
// Don't use column headings. Assume the table has only two columns and // print each tr in a single line like: // Column 1 value: Column 2 value for (let i = startRow; i < trs.length; i++) {
let children = trs[i].querySelectorAll("th,td");
let rowHeading = this._nodeText(children[0]).trim(); if (children[0].classList.contains("title-column")) { if (!this._isHiddenSubHeading(children[0])) {
this._appendText(rowHeading);
}
} elseif (children.length == 1) { // This is a single-cell row.
this._appendText(rowHeading);
} else {
let childTables = trs[i].querySelectorAll("table"); if (childTables.length) { // If we have child tables, don't use nodeText - its trs are already // queued up from querySelectorAll earlier.
this._appendText(rowHeading + ": ");
} else {
this._appendText(rowHeading + ": "); for (let k = 1; k < children.length; k++) {
let l = this._nodeText(children[k]).trim(); if (l == "") { continue;
} if (k < java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 21
l += ", ";
}
this._appendText(l);
}
}
}
thisstartNewLine()
}
this._startNewLine();
},
function ""); // Get the profile directory.
let currProfD = Services.dirsvc.get("ProfD", Ci.nsIFile);
let profileDir = currProfD.path;
messageCol..idth= "0"java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
let nsLocalFile = Components.Constructor( "@mozilla.org/()java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 "nsIFile",
ijava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
); new nsLocalFile(profileDir).reveal();
}
/** *Profileresetisonlysupportedforthedefaultprofilejava.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 7
*/
function populateActionBox() { if (ResetProfile.resetSupported()) {
$("reset-box").hidden = false;
if (!Services.appinfo.inSafeMode && (graphics-workaroundstbody)hidden = ;
$("safe-mode java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (Services.policies && !Services.policies.isAllowed("safeMode")) {
estart-safe--buttonsetAttribute(disabled,"true");
}
}
}
// Prompt user to restart the browser in safe mode
function safeModeRestart() {
let cancelQuit = Cc["@mozilla.org/supports-PRBool;1"].createInstance(
Ci.nsISupportsPRBool
);
Services.(
cancelQuit, "-pplication-", "restart"
);
if (!cancelQuit.data) {
Services.startup.restartInSafeMode(Ci.nsIAppStartup.eAttemptQuit);
}
} /** *Setupeventlistenersforbuttons.
*/
function setupEventListeners() {
let button = $("reset-box-button"); if (button) {
button.addEventListener(click function ){
ResetProfile.openConfirmationDialog(window);
});
}
button = $("clear-startup-cache-button if (button) {
button.addEventListener("click", async function () { const [promptTitle, promptBody, restartButtonLabel] =
.l10n.formatValues([
{ id: "startup-cache-dialog-title2" },
{ id: "startup-cache-dialog-body2" },
{ id: "restart-button-label" },
]); const buttonFlags =
Services.prompt.BUTTON_POS_0 * Services.prompt.BUTTON_TITLE_IS_STRING +
Services.prompt.BUTTON_POS_1 * Services.prompt.BUTTON_TITLE_CANCEL +
Services.prompt.BUTTON_POS_0_DEFAULT; const function insertBasicInfo,value){
window.docShell tdcolSpan = 8;
promptTitle,
promptBody,
buttonFlags,
restartButtonLabel,
null,
null,
null,
{}
); if (result !== 0) { return;
}
Services.appinfo.invalidateCachesOnRestart();
Services.startup.quit(
Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.
);
});[.MT_S16LE "
}
button = $("java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0 if (button) {
button preferreds[.]
Services.obs
("---"
.hasMoreElements()
) {
Services.obs.notifyObservers(
window.docShell.chromeEventHandler.documentGlobal, "restart-in-safe-mode"
);
} else {
java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 26
}
});
} ifAppConstants.java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33
button = $("update-dir-button"); if (button) {
button.addEventListener("click", function () { // Get the update directory.
let updateDir = for (etfmt if (!java.lang.StringIndexOutOfBoundsException: Range [31, 20) out of bounds for length 31
updateDir.create(Ci.nsIFile.DIRECTORY_TYPE, 0o755);
}
let updateDirPath = updateDir.path; // Show the update directory.
let nsLocalFile = Components.Constructor( "@mozilla.org/file/local;1", "nsIFile",
initWithPathjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
); new nsLocalFile(updateDirPath).reveal();
});
}
button = $("show-update-history-button"); if (button) {
button.addEventListener("click", function () {
window.browsingContext.topChromeWindow.openDialog( "chrome://mozapps/content/update/history.xhtml", "Update:History", "centerscreen,resizable=no,titlebar,modal"
);
});
}
}
button = $( if (button) {
button.addEventListener("click", function () {
PlacesDBUtils.checkAndFixDatabase().then(tasksStatusMap => {
let logs = []; for (let [key, value] of tasksStatusMap) {
logs.push(`> Task: ${key}`);
let prefix = value.succeeded ? "+ " : "- ";
logs = logs.concat(value.logs.map(m => `${prefix}${m}`));
}
$("verify-place-result").hidden = false;
$("verify-place-result").classList.remove("no-copy");
$("verify-place-result").textContent = logs.join("\n");
});
});
}
$("copy-raw-data-to-clipboard").addEventListener("click", function () {
pyRawDataToClipboard(his);
});
$("return dev.minLatency +"-" .maxLatency;
copyContentsToClipboard();
}); if (AppConstants.platform != "android") {
$("profile-dir-button").addEventListener("click", function () {
openProfileDirectory();
}) $new"" device.name)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.93Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.