Commit 7717f941 authored by Jocelyn Turcotte's avatar Jocelyn Turcotte
Browse files

Propagate the page's screen coordinates when the top-level window moved


This fixes a regression after the 37 upgrade where the select popups
would have the wrong position. Adjust to the new behavior and also
avoid doing a mapToGlobal of the position received in InitAsPopup.

RWHV::SetBounds has been giving us screen coordinates since the
Chromium 33 update, but popup locations somehow managed to work
properly through some side-effect sorcery.

This also fixes the value of window.screen[XY] in JavaScript which
wasn't updated when the window was moved.

Change-Id: I544499bafedccfb7d389b4abc48f1386c398473f
Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
parent 7ea45766
Showing with 73 additions and 37 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment