Changeset 255865 in webkit


Ignore:
Timestamp:
Feb 5, 2020 3:24:26 PM (4 years ago)
Author:
Patrick Griffis
Message:

[GTK][WPE] Add more fontconfig paths into the sandbox
https://bugs.webkit.org/show_bug.cgi?id=207293

Reviewed by Michael Catanzaro.

These paths were reported to be used on Debian.

  • UIProcess/Launcher/glib/BubblewrapLauncher.cpp:

(WebKit::bindFonts):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r255864 r255865  
     12020-02-05  Patrick Griffis  <pgriffis@igalia.com>
     2
     3        [GTK][WPE] Add more fontconfig paths into the sandbox
     4        https://bugs.webkit.org/show_bug.cgi?id=207293
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        These paths were reported to be used on Debian.
     9
     10        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
     11        (WebKit::bindFonts):
     12
    1132020-02-05  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp

    r250320 r255865  
    376376    // Configs can include custom dirs but then we have to parse them...
    377377    GUniquePtr<char> fontConfig(g_build_filename(configDir, "fontconfig", nullptr));
     378    GUniquePtr<char> fontConfigHome(g_build_filename(homeDir, ".fontconfig", nullptr));
    378379    GUniquePtr<char> fontCache(g_build_filename(cacheDir, "fontconfig", nullptr));
    379380    GUniquePtr<char> fontHomeConfig(g_build_filename(homeDir, ".fonts.conf", nullptr));
     
    382383    GUniquePtr<char> fontHomeData(g_build_filename(homeDir, ".fonts", nullptr));
    383384    bindIfExists(args, fontConfig.get());
     385    bindIfExists(args, fontConfigHome.get());
    384386    bindIfExists(args, fontCache.get(), BindFlags::ReadWrite);
    385387    bindIfExists(args, fontHomeConfig.get());
     
    387389    bindIfExists(args, fontData.get());
    388390    bindIfExists(args, fontHomeData.get());
     391    bindIfExists(args, "/var/cache/fontconfig"); // Used by Debian.
    389392}
    390393
Note: See TracChangeset for help on using the changeset viewer.