Bug 1725546 - [devtools] Disable grid panel updates triggered by reflow r=nchevobbe
authorHubert Boma Manilla <hmanilla@mozilla.com>
Fri, 13 Aug 2021 08:38:27 +0000
changeset 588804 e4978141f75eca60f198eed11a48bff3a8325754
parent 588803 4e68ab5359b81c95e092041d5bc1490358830239
child 588805 cf0e21d1c16fedae901f6e43f5e63af32a31b11b
push id148014
push userhmanilla@mozilla.com
push dateFri, 13 Aug 2021 08:40:56 +0000
treeherderautoland@e4978141f75e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1725546
milestone93.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 1725546 - [devtools] Disable grid panel updates triggered by reflow r=nchevobbe Differential Revision: https://phabricator.services.mozilla.com/D122566
devtools/client/inspector/rules/test/browser_rules_grid-highlighter-on-navigate.js
devtools/client/inspector/rules/test/browser_rules_media-queries_reload.js
--- a/devtools/client/inspector/rules/test/browser_rules_grid-highlighter-on-navigate.js
+++ b/devtools/client/inspector/rules/test/browser_rules_grid-highlighter-on-navigate.js
@@ -14,16 +14,18 @@ const TEST_URI = `
   <div id="grid">
     <div id="cell1">cell1</div>
     <div id="cell2">cell2</div>
   </div>
 `;
 
 const TEST_URI_2 = "data:text/html,<html><body>test</body></html>";
 
+ignoreGetGridsPromiseRejections();
+
 add_task(async function() {
   await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
   const { inspector, view } = await openRuleView();
   const highlighters = inspector.highlighters;
   const HIGHLIGHTER_TYPE = inspector.highlighters.TYPES.GRID;
   const { waitForHighlighterTypeShown } = getHighlighterTestHelpers(inspector);
 
   await selectNode("#grid", inspector);
--- a/devtools/client/inspector/rules/test/browser_rules_media-queries_reload.js
+++ b/devtools/client/inspector/rules/test/browser_rules_media-queries_reload.js
@@ -17,16 +17,18 @@ const TEST_URI = `
       div {
         color: green;
       }
     }
   </style>
   <div></div>
 `;
 
+ignoreGetGridsPromiseRejections();
+
 add_task(async function() {
   await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
   const { inspector, view: ruleView, toolbox } = await openRuleView();
   const hostWindow = toolbox.win.parent;
 
   const originalWidth = hostWindow.outerWidth;
   const originalHeight = hostWindow.outerHeight;