Bug 251456 - [GLib] Always mount injected bundle directory in sandbox
Summary: [GLib] Always mount injected bundle directory in sandbox
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks: Bubblewrap
  Show dependency treegraph
 
Reported: 2023-01-31 13:58 PST by Michael Catanzaro
Modified: 2023-02-01 08:24 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2023-01-31 13:58:36 PST
Incredibly, we somehow never noticed that the injected bundle directory is not always mounted in the sandbox. When running MiniBrowser built with -DDEVELOPER_MODE=ON, the injected bundle from the build directory is used, and we wind up with, for example:

$ jhbuild run ~/Projects/GNOME/install/libexec/webkitgtk-6.0/MiniBrowser 

** (process:2): WARNING **: 15:56:20.374: Error loading the injected bundle (/home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk4/lib/libwebkitgtkinjectedbundle.so): /home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk4/lib/libwebkitgtkinjectedbundle.so: cannot open shared object file: No such file or directory
Comment 1 Michael Catanzaro 2023-01-31 14:01:01 PST
Pull request: https://github.com/WebKit/WebKit/pull/9404
Comment 2 EWS 2023-02-01 08:24:34 PST
Committed 259683@main (0fc62415db20): <https://commits.webkit.org/259683@main>

Reviewed commits have been landed. Closing PR #9404 and removing active labels.