[Webkit-unassigned] [Bug 254507] New: [GTK] webkit_web_context_add_path_to_sandbox() doe snot accept currently non-existent paths

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 27 03:41:34 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254507

            Bug ID: 254507
           Summary: [GTK] webkit_web_context_add_path_to_sandbox() doe
                    snot accept currently non-existent paths
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcrha at redhat.com
                CC: bugs-noreply at webkitgtk.org

The webkit_web_context_add_path_to_sandbox() should allow paths, which do not exist. The Evolution project has such paths for plugins, while the plugins are loaded dynamically, with no need to restart the whole application when they are added (only WebView is needed to be recreated).

Since 2.40.0, there are shown two runtime warnings on the console when trying to pass a non-existent path to the webkit_web_context_add_path_to_sandbox():

** (evolution:36844): WARNING **: 12:32:21.640: Failed to canonicalize path /home/USER/.local/share/evolution/preview-plugins: No such file or directory
** (evolution:36844): CRITICAL **: 12:32:21.654: Attempted to add disallowed path to sandbox: /home/USER/.local/share/evolution/preview-plugins

There should not be any such warning, from my point of view. Not talking that the second warning is due to the first warning, both being within WebKitGTK itself.

I'm okay to check for the path existence before adding it, it only won't be that nice as being able to tell WebKitGTK that there are paths which can be used in the future, even they do not exist right now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230327/e6ab43b5/attachment.htm>


More information about the webkit-unassigned mailing list