commit | 36473a64b436dcc24ccc94c271422a1da5f288d5 | [log] [tgz] |
---|---|---|
author | Maksim Sisov <msisov@igalia.com> | Thu Jul 26 09:43:11 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 26 09:43:11 2018 |
tree | 152d2ae78f46658f15fa7a447f5462f2cc1f1485 | |
parent | 09a57bcb5b3e2877e0fcc648cc45729682d7217e [diff] |
[ozone/wayland] Fix crash with html drop-down menus. html drop-down menus are represented by XDG popup windows, which don't have a parent window associated in aura. Thus, null accelerated widget is passed, which can't be used to find a parent. Instead, a currently focused window must be used. Actually, it is so in the WaylandWindow::GetParentWindow, but there is a redundant check, which doesn't call the GetParentWindow if the parent widget is null. Fix: remove the if check and always call the GetParentWindow. TBR=rjkroege@chromium.org Bug: 578890 Change-Id: I0ecab40d80929fd4ca4445cbb3ae753e00b3d458 Reviewed-on: https://chromium-review.googlesource.com/1149363 Reviewed-by: Maksim Sisov <msisov@igalia.com> Reviewed-by: Robert Kroeger <rjkroege@chromium.org> Commit-Queue: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#578249}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .