mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1919094 - Fix CDP tests after bug 1917458. r=webdriver-reviewers,jdescottes
Same fix as for puppeteer. Differential Revision: https://phabricator.services.mozilla.com/D222331
This commit is contained in:
parent
d13f6b513b
commit
1d882fecbf
@ -85,6 +85,10 @@ export class Emulation extends Domain {
|
||||
browser.style.setProperty("min-height", targetHeight + "px");
|
||||
browser.style.setProperty("max-height", targetHeight + "px");
|
||||
|
||||
browser.ownerDocument.synchronouslyUpdateRemoteBrowserDimensions(
|
||||
/* aIncludeInactive = */ true
|
||||
);
|
||||
|
||||
// Wait until the viewport has been resized
|
||||
await this.executeInChild("_awaitViewportDimensions", {
|
||||
width: targetWidth,
|
||||
|
Loading…
Reference in New Issue
Block a user