Bug 1553748 - [marionette] Firefox should not unload tabs when available memory is running low. r=webdriver-reviewers,automatedtester
authorHenrik Skupin <mail@hskupin.info>
Fri, 07 Jun 2019 13:33:25 +0000
changeset 477851 a0812921d7c2c465857a65a11cbf17ec6617d007
parent 477850 4f5df7ee7541bd53d6e8d36b251b275f69787384
child 477852 b50cc27685799e82400e75b7823efb90b4705808
push id36125
push userapavel@mozilla.com
push dateFri, 07 Jun 2019 22:00:07 +0000
treeherdermozilla-central@d820bbb356aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswebdriver-reviewers, automatedtester
bugs1553748
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1553748 - [marionette] Firefox should not unload tabs when available memory is running low. r=webdriver-reviewers,automatedtester 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
@@ -558,16 +558,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],