⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 279367 in webkit


Ignore:
Timestamp:
Jun 29, 2021, 12:59:59 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK][WPE] Bubblewrap: allow to set DBus proxy logging per proxy
​https://bugs.webkit.org/show_bug.cgi?id=227447

Reviewed by Michael Catanzaro.

It's currently global using env var WEBKIT_ENABLE_DBUS_PROXY_LOGGING. Add WEBKIT_ENABLE_A11Y_DBUS_PROXY_LOGGING
to enable logging only on a11y bus.

  • UIProcess/Launcher/glib/BubblewrapLauncher.cpp:

(WebKit::XDGDBusProxyLauncher::launch):
(WebKit::bindA11y):
(WebKit::bubblewrapSpawn):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r279366 r279367  
     12021-06-29  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK][WPE] Bubblewrap: allow to set DBus proxy logging per proxy
     4        https://bugs.webkit.org/show_bug.cgi?id=227447
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        It's currently global using env var WEBKIT_ENABLE_DBUS_PROXY_LOGGING. Add WEBKIT_ENABLE_A11Y_DBUS_PROXY_LOGGING
     9        to enable logging only on a11y bus.
     10
     11        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
     12        (WebKit::XDGDBusProxyLauncher::launch):
     13        (WebKit::bindA11y):
     14        (WebKit::bubblewrapSpawn):
     15
    1162021-06-29  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp

    r279215 r279367  
    183183    };
    184184
    185     void launch()
     185    void launch(bool enableLogging)
    186186    {
    187187        RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!isRunning());
    … …  
    203203        };
    204204
    205         if (!g_strcmp0(g_getenv("WEBKIT_ENABLE_DBUS_PROXY_LOGGING"), "1"))
     205        if (enableLogging)
    206206            proxyArgs.append("--log");
    207207
    … …  
    505505        });
    506506
    507         proxy.launch();
     507        proxy.launch(!g_strcmp0(g_getenv("WEBKIT_ENABLE_A11Y_DBUS_PROXY_LOGGING"), "1"));
    508508    }
    509509
    … …  
    891891            }
    892892            proxy.setPermissions(WTFMove(permissions));
    893             proxy.launch();
     893            proxy.launch(!g_strcmp0(g_getenv("WEBKIT_ENABLE_DBUS_PROXY_LOGGING"), "1"));
    894894        }
    895895    } else {
Note: See TracChangeset for help on using the changeset viewer.