Bug 1553748 - [marionette] Firefox should not unload tabs when available memory is running low. r=webdriver-reviewers,automatedtester a=test-only
authorHenrik Skupin <mail@hskupin.info>
Fri, 07 Jun 2019 13:33:25 +0000
changeset 536852 6fa17e5be147307380cfabcd2b8b96b3713ebed0
parent 536851 a1936ceb2d5769724ac3ca5c91cbdb918969352a
child 536853 fef6888b693f6e1442396b30e7d3aa657707746d
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswebdriver-reviewers, automatedtester, test-only
bugs1553748
milestone68.0
Bug 1553748 - [marionette] Firefox should not unload tabs when available memory is running low. r=webdriver-reviewers,automatedtester a=test-only Differential Revision: https://phabricator.services.mozilla.com/D34145
testing/marionette/client/marionette_driver/geckoinstance.py
testing/marionette/components/marionette.js
--- a/testing/marionette/client/marionette_driver/geckoinstance.py
+++ b/testing/marionette/client/marionette_driver/geckoinstance.py
@@ -552,16 +552,19 @@ class DesktopInstance(GeckoInstance):
         # Needed for branded builds to prevent opening a second tab on startup
         "browser.startup.homepage_override.mstone": "ignore",
         # Start with a blank page by default
         "browser.startup.page": 0,
 
         # Disable browser animations
         "toolkit.cosmeticAnimations.enabled": False,
 
+        # Don't unload tabs when available memory is running low
+        "browser.tabs.unloadOnLowMemory": False,
+
         # Do not warn when closing all open tabs
         "browser.tabs.warnOnClose": False,
         # Do not warn when closing all other open tabs
         "browser.tabs.warnOnCloseOtherTabs": False,
         # Do not warn when multiple tabs will be opened
         "browser.tabs.warnOnOpen": False,
 
         # Disable the UI tour
--- a/testing/marionette/components/marionette.js
+++ b/testing/marionette/components/marionette.js
@@ -126,16 +126,19 @@ const RECOMMENDED_PREFS = new Map([
   // Do not close the window when the last tab gets closed
   ["browser.tabs.closeWindowWithLastTab", false],
 
   // Do not allow background tabs to be zombified on Android, otherwise for
   // tests that open additional tabs, the test harness tab itself might get
   // unloaded
   ["browser.tabs.disableBackgroundZombification", false],
 
+  // Don't unload tabs when available memory is running low
+  ["browser.tabs.unloadOnLowMemory", false],
+
   // Do not warn when closing all open tabs
   ["browser.tabs.warnOnClose", false],
 
   // Do not warn when closing all other open tabs
   ["browser.tabs.warnOnCloseOtherTabs", false],
 
   // Do not warn when multiple tabs will be opened
   ["browser.tabs.warnOnOpen", false],