Window Placement: Check opener's state for window.open
Check the appropriate frame's runtime-enabled feature state. Pass the |requesting_frame| into SetWindowRectWithAdjustment. (use window.open's opener, same frame for window.moveTo, etc.) Fixes cross-screen open for sites with OT tokens & permissions. (the newly opened window's OT tokens have not yet loaded) (we generally care about the opener's tokens, not the popup's) Bug: 1124480 Test: michaelwasserman.github.io/window-placement-demo WAI Change-Id: I32e88dd252d1b8d04d12363952b643341e47710a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391731Reviewed-by:Daniel Cheng <dcheng@chromium.org> Commit-Queue: Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#804018}
Showing
Please register or sign in to comment