From b049c9cb2a82887ad1d4ab2314a8935d07134d36 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 7 Mar 2018 17:15:41 -0600 Subject: [PATCH] Bug 1440678 - Disable RDM reload notification for tests. r=ochameau MozReview-Commit-ID: 5dXxE6u1ZSI --HG-- extra : rebase_source : 8ef589abc535b06216c2e6545e461c64dc0b206a --- devtools/client/responsive.html/test/browser/head.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devtools/client/responsive.html/test/browser/head.js b/devtools/client/responsive.html/test/browser/head.js index 5660a58846d7..020245387daf 100644 --- a/devtools/client/responsive.html/test/browser/head.js +++ b/devtools/client/responsive.html/test/browser/head.js @@ -50,10 +50,14 @@ requestLongerTimeout(2); flags.testing = true; Services.prefs.setCharPref("devtools.devices.url", TEST_URI_ROOT + "devices.json"); +// The appearance of this notification causes intermittent behavior in some tests that +// send mouse events, since it causes the content to shift when it appears. +Services.prefs.setBoolPref("devtools.responsive.reloadNotification.enabled", false); registerCleanupFunction(async () => { flags.testing = false; Services.prefs.clearUserPref("devtools.devices.url"); + Services.prefs.clearUserPref("devtools.responsive.reloadNotification.enabled"); Services.prefs.clearUserPref("devtools.responsive.html.displayedDeviceList"); Services.prefs.clearUserPref("devtools.responsive.reloadConditions.touchSimulation"); Services.prefs.clearUserPref("devtools.responsive.reloadConditions.userAgent");