commit | ac76759cde3d2ca7ce73e10a74e28db5ac64c201 | [log] [tgz] |
---|---|---|
author | Maksim Sisov <msisov@igalia.com> | Fri Aug 10 08:00:15 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Aug 10 08:00:15 2018 |
tree | ef53ea79d6871fa8a0dbc01cdeafc29444588868 | |
parent | 9d7e826f3fa9fdf8652f56357c1d0c65023a7aa7 [diff] |
[ozone/wayland] Fix crash when right-clicking on the window decoration area. On chrome/x11, right-clicking on the window decoration bar toggles a context menu whose one of the menu items allows switching between builtin and system/native window decorations. Today, chrome/ozone/wayland crashes when building the menu because it tried to read a preference only registered in use_x11: kUseCustomChromeFrame. So this CL does two things: - registers the preference [1] based on PlatformProperties in case of USE_OZONE. - checks whether using system title bar[2] is supported by underlying ozone platform. By default, ozone platforms have this feature disabled. [1] kUseCustomChromeFrame [2] IDC_USE_SYSTEM_TITLE_BAR Based on tonikitoo@igalia.com's patch. Bug: 578890, 849596 Change-Id: Ib05d2057f1193a9e41580d0133e35dff4bc2ea77 Reviewed-on: https://chromium-review.googlesource.com/1167045 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#582087}
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 .