Bug 1300355 - Part 3: Disable reftest canvas cache for win 7. r=jmaher, a=test-only
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 24 Feb 2017 12:46:58 +1300
changeset 378941 c16cd2b0733e2aad9b0f80bf74d0c4fb59f7991f
parent 378940 3b911d0ad6beb6b1846cc9fa19562d287cdd80df
child 378942 674c744f9b1609d0fe06163d80c254b2c8b9cd02
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher, test-only
bugs1300355
milestone53.0
Bug 1300355 - Part 3: Disable reftest canvas cache for win 7. r=jmaher, a=test-only
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -287,16 +287,22 @@ class RefTest(object):
             prefs['browser.tabs.remote.autostart'] = True
             prefs['extensions.e10sBlocksEnabling'] = False
 
         # Bug 1262954: For winXP + e10s disable acceleration
         if platform.system() in ("Windows", "Microsoft") and \
            '5.1' in platform.version() and options.e10s:
             prefs['layers.acceleration.disabled'] = True
 
+        # Bug 1300355: Disable canvas cache for win7 as it uses
+        # too much memory and causes OOMs.
+        if platform.system() in ("Windows", "Microsoft") and \
+           '6.1' in platform.version():
+            prefs['reftest.nocache'] = True
+
         if options.marionette:
             port = options.marionette.split(':')[1]
             prefs['marionette.defaultPrefs.port'] = int(port)
 
         preference_file = os.path.join(here, 'reftest-preferences.js')
         prefs.update(mozprofile.Preferences.read_prefs(preference_file))
 
         for v in options.extraPrefs: