Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 2762723003: Gtk3: Whitelist X11 backend (Closed)

Created:
3 years, 9 months ago by Tom (Use chromium acct)
Modified:
3 years, 9 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Gtk3: Whitelist X11 backend Gtk can only have one window server backend active at a time. On systems running Wayland (like Fedora 25), Gtk will prefer the Wayland backend over the X11 one. This violates the assumption in libgtkui about th euse of X11, and will eg. cause a crash on keypress in X11InputMethodContextImplGtk. The solution is to forbid Wayland using gdk_set_allowed_backends("x11") prior to gtk_init(). BUG=702876 R=erg@chromium.org Review-Url: https://codereview.chromium.org/2762723003 Cr-Commit-Position: refs/heads/master@{#458218} Committed: https://chromium.googlesource.com/chromium/src/+/5d073abb6966b9c2d2ad1033c8a0e3396072c0f3

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -11 lines) Patch
M chrome/browser/ui/libgtkui/gtk_ui.cc View 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/libgtkui/gtk_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/gtk_util.cc View 4 chunks +18 lines, -10 lines 2 comments Download

Messages

Total messages: 13 (7 generated)
Tom (Use chromium acct)
3 years, 9 months ago (2017-03-20 20:52:45 UTC) #2
Elliot Glaysher
https://codereview.chromium.org/2762723003/diff/1/chrome/browser/ui/libgtkui/gtk_util.cc File chrome/browser/ui/libgtkui/gtk_util.cc (right): https://codereview.chromium.org/2762723003/diff/1/chrome/browser/ui/libgtkui/gtk_util.cc#newcode204 chrome/browser/ui/libgtkui/gtk_util.cc:204: "libgdk-" + std::to_string(GTK_MAJOR_VERSION) + ".so.0"; Is this ever not ...
3 years, 9 months ago (2017-03-20 21:01:41 UTC) #4
Tom (Use chromium acct)
https://codereview.chromium.org/2762723003/diff/1/chrome/browser/ui/libgtkui/gtk_util.cc File chrome/browser/ui/libgtkui/gtk_util.cc (right): https://codereview.chromium.org/2762723003/diff/1/chrome/browser/ui/libgtkui/gtk_util.cc#newcode204 chrome/browser/ui/libgtkui/gtk_util.cc:204: "libgdk-" + std::to_string(GTK_MAJOR_VERSION) + ".so.0"; On 2017/03/20 21:01:41, Elliot ...
3 years, 9 months ago (2017-03-20 21:04:46 UTC) #5
Elliot Glaysher
lgtm
3 years, 9 months ago (2017-03-20 21:09:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2762723003/1
3 years, 9 months ago (2017-03-20 21:53:30 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 22:59:51 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5d073abb6966b9c2d2ad1033c8a0...

Powered by Google App Engine
This is Rietveld 408576698