[Webkit-unassigned] [Bug 186841] [WPE] Pass the backend library name as command line parameter to the web process

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 10 22:32:52 PDT 2018


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

--- Comment #18 from Zan Dobersek <zan at falconsigh.net> ---
Comment on attachment 344682
  --> https://bugs.webkit.org/attachment.cgi?id=344682
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344682&action=review

>>> Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:106
>>> +#endif
>> 
>> Do we need the --backend-library flag?
> 
> Comment #8
> 
> "Yes, probably, I'm trying to avoid passing other stuff to wpe loader if we mess it up with the order of the arguments."
> 
> I can remove it if you don't like it.

It's out-of-place in that argument array, IMO.

Regardless of that, should the library name be escaped somehow before it's included in the arguments? Is there any way in which the impl library name alone could cause trouble? Should we use FileSystem::fileSystemRepresentation() like we do for other filenames of executables?

>>> Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:137
>>> +        argv[i++] = wpeBackendLibraryParameter ? wpeBackendLibraryParameter.get() : "-";
>> 
>> I don't think wpeBackendLibraryParameter can be null if you use g_strdup_printf()? Unless we can remove the --backend-library flag and just strdup the impl library name, if any.
> 
> It can be nullptr when building with previous versions of WPEBackend.

Let's ensure it's non-null by assigning it the "-" token by default, and override it when compiling against the newer WPEBackend lib.

-- 
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/20180711/3e55c08d/attachment.html>


More information about the webkit-unassigned mailing list