Includes toolbar height in PWA popup window size calculation.
When window.open is called, the created app window doesn't know what url it will be opening, so we can't determine if the toolbar will be shown. Thus, once the web contents starts a navigation, the window bounds must be checked for correctness. This CL adds a property 'initial_url' function to AppBrowserController. This will be used in a future CL to determine whether or not to show the 'X' button on the custom tab bar (popups opened out of scope should not show it). Before and after screenshots for an in and out of scope popup. The popups should both have their web contents sized at 480x300 Before: https://bugs.chromium.org/p/chromium/issues/attachment?aid=394814&signed_aid=zqCH2pYzkhISnPQRiPjzuQ==&inline=1 After: https://bugs.chromium.org/p/chromium/issues/attachment?aid=394815&signed_aid=owOrcmaGQWpKcub8E8orNw==&inline=1 Bug: 777854 Change-Id: I893c21d0c13a12b079eb578e68f1167bf335be8e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626058 Commit-Queue: Jay Harris <harrisjay@chromium.org> Reviewed-by:Alan Cutter <alancutter@chromium.org> Reviewed-by:
Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#664129}
Showing
Please register or sign in to comment