Changeset 260811 in webkit


Ignore:
Timestamp:
Apr 27, 2020 11:59:02 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][WebInspector] platformSave broken when running within the Flatpak runtime
https://bugs.webkit.org/show_bug.cgi?id=209473

Patch by Philippe Normand <pnormand@igalia.com> on 2020-04-27
Reviewed by Adrian Perez de Castro.

  • flatpak/flatpakutils.py:

(WebkitFlatpak.run_in_sandbox): White-list the user document
folder into the sandbox. This seems needed by the file-chooser
popup, somehow.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r260796 r260811  
     12020-04-27  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GTK][WebInspector] platformSave broken when running within the Flatpak runtime
     4        https://bugs.webkit.org/show_bug.cgi?id=209473
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * flatpak/flatpakutils.py:
     9        (WebkitFlatpak.run_in_sandbox): White-list the user document
     10        folder into the sandbox. This seems needed by the file-chooser
     11        popup, somehow.
     12
    1132020-04-27  Jonathan Bedard  <jbedard@apple.com>
    214
  • trunk/Tools/flatpak/flatpakutils.py

    r260747 r260811  
    660660            ])
    661661
     662            try:
     663                with open(os.devnull, 'w') as devnull:
     664                    uid = subprocess.check_output(("id", "-u"), stderr=devnull).strip()
     665                    flatpak_command.append("--bind-mount=/run/user/{uid}/doc=/run/user/{uid}/doc".format(uid=uid))
     666            except subprocess.CalledProcessError:
     667                pass
     668
    662669            forwarded.update({
    663670                "TZ": "PST8PDT",
Note: See TracChangeset for help on using the changeset viewer.