services/healthreport/HealthReport.jsm

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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 "use strict";
     7 this.EXPORTED_SYMBOLS = [
     8   "HealthReporter",
     9   "AddonsProvider",
    10   "AppInfoProvider",
    11   "CrashesProvider",
    12   "HealthReportProvider",
    13   "Metrics",
    14   "PlacesProvider",
    15   "ProfileMetadataProvider",
    16   "SearchesProvider",
    17   "SessionsProvider",
    18   "SysInfoProvider",
    19 ];
    21 const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
    23 const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000;
    25 // We concatenate the JSMs together to eliminate compartment overhead.
    26 // This is a giant hack until compartment overhead is no longer an
    27 // issue.
    28 #define MERGED_COMPARTMENT
    30 #include ../common/async.js
    31 ;
    32 #include ../common/bagheeraclient.js
    33 ;
    34 #include ../metrics/Metrics.jsm
    35 ;
    36 #include healthreporter.jsm
    37 ;
    38 #include profile.jsm
    39 ;
    40 #include providers.jsm
    41 ;

mercurial