WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
172993
[GTK][Wayland] Do not pass value of $DISPLAY to wl_display_connect()
https://bugs.webkit.org/show_bug.cgi?id=172993
Summary
[GTK][Wayland] Do not pass value of $DISPLAY to wl_display_connect()
Adrian Perez
Reported
2017-06-06 09:32:33 PDT
Currently “Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp” reads: std::unique_ptr<PlatformDisplay> PlatformDisplayWayland::create() { struct wl_display* display = wl_display_connect(getenv("DISPLAY")); if (!display) return nullptr; return std::make_unique<PlatformDisplayWayland>(display, NativeDisplayOwned::Yes); } The “DISPLAY” environment variable is typically used for X11, and “WAYLAND_DISPLAY” should be used instead. According to the documentation, “wl_display_connect()” will check the value of “WAYLAND_DISPLAY” itself, so it looks like we could just pass a null pointer to it.
Attachments
Patch
(1.79 KB, patch)
2017-06-06 09:38 PDT
,
Adrian Perez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2017-06-06 09:38:04 PDT
Created
attachment 312081
[details]
Patch
Zan Dobersek
Comment 2
2017-06-06 09:43:58 PDT
Comment on
attachment 312081
[details]
Patch I think this is fine. I checked if the DISPLAY env is set to anything meaningful in the UIProcess, but that doesn't seem to be the case.
WebKit Commit Bot
Comment 3
2017-06-06 10:13:04 PDT
Comment on
attachment 312081
[details]
Patch Clearing flags on attachment: 312081 Committed
r217838
: <
http://trac.webkit.org/changeset/217838
>
WebKit Commit Bot
Comment 4
2017-06-06 10:13:05 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug