mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
Remove MOZ_B2G leftovers and some dead B2G-only components.
This commit is contained in:
parent
75d98fd33e
commit
719ac1bc38
91 changed files with 28 additions and 5017 deletions
|
|
@ -300,12 +300,7 @@ this.DownloadIntegration = {
|
|||
aDownload.hasBlockedData) {
|
||||
return true;
|
||||
}
|
||||
#ifdef MOZ_B2G
|
||||
// On B2G we keep a few days of history.
|
||||
let maxTime = Date.now() -
|
||||
Services.prefs.getIntPref("dom.downloads.max_retention_days") * 24 * 60 * 60 * 1000;
|
||||
return aDownload.startTime > maxTime;
|
||||
#elif defined(MOZ_WIDGET_ANDROID)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
// On Android we store all history.
|
||||
return true;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -106,12 +106,7 @@ XPCOMUtils.defineLazyGetter(DownloadUIHelper, "strings", function () {
|
|||
*/
|
||||
this.DownloadPrompter = function (aParent)
|
||||
{
|
||||
if (AppConstants.MOZ_B2G) {
|
||||
// On B2G there is no prompter implementation.
|
||||
this._prompter = null;
|
||||
} else {
|
||||
this._prompter = Services.ww.getNewPrompter(aParent);
|
||||
}
|
||||
this._prompter = Services.ww.getNewPrompter(aParent);
|
||||
}
|
||||
|
||||
this.DownloadPrompter.prototype = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue