michael@0: // For mochitests, we're more interested in testing the behavior of in- michael@0: // content XBL bindings, so we set this pref to true. In reftests, we're michael@0: // more interested in testing the behavior of XBL as it works in chrome, michael@0: // so we want this pref to be false. michael@0: branch.setBoolPref("dom.use_xbl_scopes_for_remote_xul", false); michael@0: branch.setBoolPref("gfx.color_management.force_srgb", true); michael@0: branch.setBoolPref("browser.dom.window.dump.enabled", true); michael@0: branch.setIntPref("ui.caretBlinkTime", -1); michael@0: branch.setBoolPref("dom.send_after_paint_to_content", true); michael@0: // no slow script dialogs michael@0: branch.setIntPref("dom.max_script_run_time", 0); michael@0: branch.setIntPref("dom.max_chrome_script_run_time", 0); michael@0: branch.setIntPref("hangmonitor.timeout", 0); michael@0: // Ensure autoplay is enabled for all platforms. michael@0: branch.setBoolPref("media.autoplay.enabled", true); michael@0: // Disable updates michael@0: branch.setBoolPref("app.update.enabled", false); michael@0: // Disable addon updates and prefetching so we don't leak them michael@0: branch.setBoolPref("extensions.update.enabled", false); michael@0: branch.setBoolPref("extensions.getAddons.cache.enabled", false); michael@0: // Disable blocklist updates so we don't have them reported as leaks michael@0: branch.setBoolPref("extensions.blocklist.enabled", false); michael@0: // Make url-classifier updates so rare that they won't affect tests michael@0: branch.setIntPref("urlclassifier.updateinterval", 172800); michael@0: // Disable high-quality downscaling, since it makes reftests more difficult. michael@0: branch.setBoolPref("image.high_quality_downscaling.enabled", false); michael@0: // Checking whether two files are the same is slow on Windows. michael@0: // Setting this pref makes tests run much faster there. michael@0: branch.setBoolPref("security.fileuri.strict_origin_policy", false); michael@0: // Disable the thumbnailing service michael@0: branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true); michael@0: // Since our tests are 800px wide, set the assume-designed-for width of all michael@0: // pages to be 800px (instead of the default of 980px). This ensures that michael@0: // in our 800px window we don't zoom out by default to try to fit the michael@0: // assumed 980px content. michael@0: branch.setIntPref("browser.viewport.desktopWidth", 800); michael@0: // Disable the fade out (over time) of overlay scrollbars, since we michael@0: // can't guarantee taking both reftest snapshots at the same point michael@0: // during the fade. michael@0: branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true); michael@0: // Disable interruptible reflow since (1) it's normally not going to michael@0: // happen, but (2) it might happen if we somehow end up with both michael@0: // pending user events and clock skew. So to avoid having to change michael@0: // MakeProgress to deal with waiting for interruptible reflows to michael@0: // complete for a rare edge case, we just disable interruptible michael@0: // reflow so that that rare edge case doesn't lead to reftest michael@0: // failures. michael@0: branch.setBoolPref("layout.interruptible-reflow.enabled", false);