Changeset 259044 in webkit


Ignore:
Timestamp:
Mar 26, 2020 8:22:42 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Crash in WebKit::LayerTreeHost::LayerTreeHost with bubblewrap sandbox enabled
https://bugs.webkit.org/show_bug.cgi?id=209106

Patch by Michael Catanzaro <Michael Catanzaro> on 2020-03-26
Reviewed by Carlos Garcia Campos.

Don't bind the WaylandCompositor socket unless we're running under Wayland and it's actually
started successfully.

  • UIProcess/Launcher/glib/BubblewrapLauncher.cpp:

(WebKit::bindWayland):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r259041 r259044  
     12020-03-26  Michael Catanzaro  <mcatanzaro@gnome.org>
     2
     3        [GTK] Crash in WebKit::LayerTreeHost::LayerTreeHost with bubblewrap sandbox enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=209106
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Don't bind the WaylandCompositor socket unless we're running under Wayland and it's actually
     9        started successfully.
     10
     11        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
     12        (WebKit::bindWayland):
     13
    1142020-03-26  David Kilzer  <ddkilzer@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp

    r258923 r259044  
    328328static void bindWayland(Vector<CString>& args)
    329329{
     330    if (PlatformDisplay::sharedDisplay().type() != PlatformDisplay::Type::Wayland)
     331        return;
     332
    330333    const char* display = g_getenv("WAYLAND_DISPLAY");
    331334    if (!display)
     
    336339    bindIfExists(args, waylandRuntimeFile.get(), BindFlags::ReadWrite);
    337340
    338 #if PLATFORM(GTK) && !USE(WPE_RENDERER)
    339     String displayName = WaylandCompositor::singleton().displayName();
    340     waylandRuntimeFile.reset(g_build_filename(runtimeDir, displayName.utf8().data(), nullptr));
    341     bindIfExists(args, waylandRuntimeFile.get(), BindFlags::ReadWrite);
     341#if !USE(WPE_RENDERER)
     342    if (WaylandCompositor::singleton().isRunning()) {
     343        String displayName = WaylandCompositor::singleton().displayName();
     344        waylandRuntimeFile.reset(g_build_filename(runtimeDir, displayName.utf8().data(), nullptr));
     345        bindIfExists(args, waylandRuntimeFile.get(), BindFlags::ReadWrite);
     346    }
    342347#endif
    343348}
Note: See TracChangeset for help on using the changeset viewer.