layout/tools/reftest/reftest-preferences.js

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     // For mochitests, we're more interested in testing the behavior of in-
     2     // content XBL bindings, so we set this pref to true. In reftests, we're
     3     // more interested in testing the behavior of XBL as it works in chrome,
     4     // so we want this pref to be false.
     5     branch.setBoolPref("dom.use_xbl_scopes_for_remote_xul", false);
     6     branch.setBoolPref("gfx.color_management.force_srgb", true);
     7     branch.setBoolPref("browser.dom.window.dump.enabled", true);
     8     branch.setIntPref("ui.caretBlinkTime", -1);
     9     branch.setBoolPref("dom.send_after_paint_to_content", true);
    10     // no slow script dialogs
    11     branch.setIntPref("dom.max_script_run_time", 0);
    12     branch.setIntPref("dom.max_chrome_script_run_time", 0);
    13     branch.setIntPref("hangmonitor.timeout", 0);
    14     // Ensure autoplay is enabled for all platforms.
    15     branch.setBoolPref("media.autoplay.enabled", true);
    16     // Disable updates
    17     branch.setBoolPref("app.update.enabled", false);
    18     // Disable addon updates and prefetching so we don't leak them
    19     branch.setBoolPref("extensions.update.enabled", false);
    20     branch.setBoolPref("extensions.getAddons.cache.enabled", false);
    21     // Disable blocklist updates so we don't have them reported as leaks
    22     branch.setBoolPref("extensions.blocklist.enabled", false);
    23     // Make url-classifier updates so rare that they won't affect tests
    24     branch.setIntPref("urlclassifier.updateinterval", 172800);
    25     // Disable high-quality downscaling, since it makes reftests more difficult.
    26     branch.setBoolPref("image.high_quality_downscaling.enabled", false);
    27     // Checking whether two files are the same is slow on Windows.
    28     // Setting this pref makes tests run much faster there.
    29     branch.setBoolPref("security.fileuri.strict_origin_policy", false);
    30     // Disable the thumbnailing service
    31     branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true);
    32     // Since our tests are 800px wide, set the assume-designed-for width of all
    33     // pages to be 800px (instead of the default of 980px). This ensures that
    34     // in our 800px window we don't zoom out by default to try to fit the
    35     // assumed 980px content.
    36     branch.setIntPref("browser.viewport.desktopWidth", 800);
    37     // Disable the fade out (over time) of overlay scrollbars, since we
    38     // can't guarantee taking both reftest snapshots at the same point
    39     // during the fade.
    40     branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
    41     // Disable interruptible reflow since (1) it's normally not going to
    42     // happen, but (2) it might happen if we somehow end up with both
    43     // pending user events and clock skew.  So to avoid having to change
    44     // MakeProgress to deal with waiting for interruptible reflows to
    45     // complete for a rare edge case, we just disable interruptible
    46     // reflow so that that rare edge case doesn't lead to reftest
    47     // failures.
    48     branch.setBoolPref("layout.interruptible-reflow.enabled", false);

mercurial