DevTools: Browser.setWindowBounds should update window.outerWidth/Height
After calling Browser.setWindowBounds values of the window.outerWidth/outerHeight are now updated to reflect new bounds. In headless browser WebContentsViewMac is created with null WebContentsViewDelegate hence there is no top level native window. In this change we pretend that there is such window and propagate its using newly introduced SetWindowFrameInScreen method. Bug: none Change-Id: I3bb4338ed28c2d477736bc1cc5976b873a3061d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2321409 Commit-Queue: Yury Semikhatsky <yurys@chromium.org> Auto-Submit: Yury Semikhatsky <yurys@chromium.org> Reviewed-by:ccameron <ccameron@chromium.org> Reviewed-by:
Andrey Kosyakov <caseq@chromium.org> Reviewed-by:
Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#792540}
Showing
Please register or sign in to comment