This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-91.11.0esr-11.5-1 in repository tor-browser.
commit a376ae0dd8dd773779361b78febdb9b5b849ec01 Author: Karl Tomlinson karlt+@karlt.net AuthorDate: Thu Jun 9 00:49:37 2022 +0000
Bug 1745595 - wait for resize to complete before adding media query. r=daisuke, a=RyanVM
This and https://phabricator.services.mozilla.com/D147728 may also help with https://bugzilla.mozilla.org/show_bug.cgi?id=1723436
Differential Revision: https://phabricator.services.mozilla.com/D147731 --- .../commands/resource/tests/browser_resources_stylesheets.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/devtools/shared/commands/resource/tests/browser_resources_stylesheets.js b/devtools/shared/commands/resource/tests/browser_resources_stylesheets.js index f7ce267a18327..da60fb4ae7ce2 100644 --- a/devtools/shared/commands/resource/tests/browser_resources_stylesheets.js +++ b/devtools/shared/commands/resource/tests/browser_resources_stylesheets.js @@ -332,7 +332,12 @@ async function testNestedResourceUpdateFeature() {
info("Apply new media query"); // In order to avoid applying the media query (min-height: 400px). - tab.ownerGlobal.resizeTo(originalWindowWidth, 300); + if (originalWindowHeight !== 300) { + await new Promise(resolve => { + tab.ownerGlobal.addEventListener("resize", resolve, { once: true }); + tab.ownerGlobal.resizeTo(originalWindowWidth, 300); + }); + }
// Retrieve the stylesheet of the top-level target const resource = availableResources.find(