Bug 1363361 - Adjust browser_appmenu_reflows.js now that we're using nsIDOMWindowUtils to dirty the frame tree. r=florian
☠☠ backed out by 7443be3a1a0e ☠ ☠
authorMike Conley <mconley@mozilla.com>
Tue, 11 Jul 2017 10:25:05 -0700
changeset 417985 355a7da0154cf99a7914a73e26102749cc84cf91
parent 417984 db627e28977eb01c16d53b485d677cc83b344987
child 417986 40505345a8655e9087e3541f27dd3c20e7cc7f44
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1363361
milestone56.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 1363361 - Adjust browser_appmenu_reflows.js now that we're using nsIDOMWindowUtils to dirty the frame tree. r=florian MozReview-Commit-ID: JrpZyMXaLxY
browser/base/content/test/performance/browser_appmenu_reflows.js
--- a/browser/base/content/test/performance/browser_appmenu_reflows.js
+++ b/browser/base/content/test/performance/browser_appmenu_reflows.js
@@ -100,16 +100,44 @@ const EXPECTED_APPMENU_SUBVIEW_REFLOWS =
     "onTransitionEnd@resource:///modules/PanelMultiView.jsm",
   ],
    */
   /**
    * Please don't add anything new!
    */
 ];
 
+const WIN_DEBUG_E10S = Services.appinfo.OS == "WINNT" &&
+                       AppConstants.DEBUG &&
+                       gMultiProcessBrowser;
+
+if (WIN_DEBUG_E10S) {
+  // Bug 1380671 - For some reason, on Windows Debug with e10s disabled in
+  // automation, we fire more popuppositioned events causing reflows.
+  EXPECTED_APPMENU_SUBVIEW_REFLOWS.push(
+    [
+      "get_alignmentPosition@chrome://global/content/bindings/popup.xml",
+      "adjustArrowPosition@chrome://global/content/bindings/popup.xml",
+      "onxblpopuppositioned@chrome://global/content/bindings/popup.xml",
+    ],
+
+    [
+      "get_alignmentPosition@chrome://global/content/bindings/popup.xml",
+      "adjustArrowPosition@chrome://global/content/bindings/popup.xml",
+      "onxblpopuppositioned@chrome://global/content/bindings/popup.xml",
+    ],
+
+    [
+      "get_alignmentPosition@chrome://global/content/bindings/popup.xml",
+      "adjustArrowPosition@chrome://global/content/bindings/popup.xml",
+      "onxblpopuppositioned@chrome://global/content/bindings/popup.xml",
+    ],
+  );
+}
+
 add_task(async function() {
   await ensureNoPreloadedBrowser();
 
   await SpecialPowers.pushPrefEnv({
     set: [["browser.photon.structure.enabled", true]],
   });
 
   // First, open the appmenu.