Backed out changeset 36b76c196497 (bug 1691499) for bc failures on browser_decoderDoctor.js. CLOSED TREE

This commit is contained in:
Cosmin Sabou
2021-02-25 21:47:25 +02:00
parent 00b825ed71
commit 97da8c128d
16 changed files with 121 additions and 168 deletions

View File

@@ -968,8 +968,18 @@ const gStoragePressureObserver = {
"browser.storageManager.pressureNotification.usageThresholdGB"
);
let msg = "";
let buttons = [{ supportPage: "storage-permissions" }];
let buttons = [];
let usage = subject.QueryInterface(Ci.nsISupportsPRUint64).data;
buttons.push({
"l10n-id": "space-alert-learn-more-button",
callback(notificationBar, button) {
let learnMoreURL =
Services.urlFormatter.formatURLPref("app.support.baseURL") +
"storage-permissions";
// This is a content URL, loaded from trusted UX.
openTrustedLinkIn(learnMoreURL, "tab");
},
});
if (usage < USAGE_THRESHOLD_BYTES) {
// The firefox-used space < 5GB, then warn user to free some disk space.
// This is because this usage is small and not the main cause for space issue.