RESOLVED FIXED 192622
[GTK][WPE] Fix forwarding webkit socket to flatpak sandbox
https://bugs.webkit.org/show_bug.cgi?id=192622
Summary [GTK][WPE] Fix forwarding webkit socket to flatpak sandbox
Patrick Griffis
Reported 2018-12-12 06:08:36 PST
Fixes sandbox working inside Flatpak.
Attachments
[GTK][WPE] Fix forwarding webkit socket to flatpak sandbox (4.05 KB, patch)
2018-12-12 06:09 PST, Patrick Griffis
no flags
Patch (3.88 KB, patch)
2018-12-12 07:39 PST, Patrick Griffis
no flags
Archive of layout-test-results from ews206 for win-future (12.79 MB, application/zip)
2018-12-12 09:33 PST, EWS Watchlist
no flags
Patch (3.88 KB, patch)
2018-12-13 09:47 PST, Patrick Griffis
no flags
Patch (3.88 KB, patch)
2018-12-14 06:00 PST, Patrick Griffis
no flags
Patrick Griffis
Comment 1 2018-12-12 06:09:55 PST
Created attachment 357120 [details] [GTK][WPE] Fix forwarding webkit socket to flatpak sandbox
Carlos Garcia Campos
Comment 2 2018-12-12 06:50:36 PST
Comment on attachment 357120 [details] [GTK][WPE] Fix forwarding webkit socket to flatpak sandbox View in context: https://bugs.webkit.org/attachment.cgi?id=357120&action=review > Source/WebKit/ChangeLog:7 > + Pleas explain here what the patch does and it fixes. > Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.cpp:32 > Remove this empty line. > Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.cpp:37 > +GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher* launcher, const WebKit::ProcessLauncher::LaunchOptions& launchOptions, char** argv, GError **error, int webkitSocket) I would add the parameter before the error one, which is typically the last one. I would use childProcessSocket or something like that instead of webkitsocket.
Patrick Griffis
Comment 3 2018-12-12 07:39:52 PST
EWS Watchlist
Comment 4 2018-12-12 09:33:31 PST
Comment on attachment 357126 [details] Patch Attachment 357126 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/10368946 New failing tests: webanimations/leak-document-with-web-animation.html
EWS Watchlist
Comment 5 2018-12-12 09:33:45 PST
Created attachment 357140 [details] Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Patrick Griffis
Comment 6 2018-12-12 10:25:13 PST
To state the obvious, failing test isn't related to changes.
Michael Catanzaro
Comment 7 2018-12-12 11:16:37 PST
Comment on attachment 357126 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357126&action=review Thanks for fixing Carlos's suggestions. LGTM, only one nit. > Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.h:39 > +GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher*, const WebKit::ProcessLauncher::LaunchOptions&, char** argv, int, GError**); You should name the int parameter here. We use names in header files when the name would add meaning. E.g. we don't name the GSubprocessLauncher launcher or the LaunchOptions launchOptions, since that doesn't help readability. But the int should be named childProcessSocket, because that does improve readability.
Patrick Griffis
Comment 8 2018-12-13 09:47:12 PST
Michael Catanzaro
Comment 9 2018-12-13 11:08:54 PST
Comment on attachment 357236 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357236&action=review > Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.cpp:36 > +GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher* launcher, const WebKit::ProcessLauncher::LaunchOptions& launchOptions, char** argv, int childProcessSocket, GError **error) Oops, sorry I missed this in the last patch, but it should be GError** error.
Patrick Griffis
Comment 10 2018-12-14 05:57:38 PST
(In reply to Michael Catanzaro from comment #9) > Oops, sorry I missed this in the last patch, but it should be GError** error. Style script: ERROR: Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.h:39: The parameter name "error" adds no information, so it should be removed. [readability/parameter_name] [5]
EWS
Comment 11 2018-12-14 05:58:24 PST
Comment on attachment 357236 [details] Patch Rejecting attachment 357236 [details] from commit-queue. pgriffis@igalia.com does not have committer permissions according to https://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json. - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.
Patrick Griffis
Comment 12 2018-12-14 05:59:31 PST
(In reply to Michael Catanzaro from comment #9) > Oops, sorry I missed this in the last patch, but it should be GError** error. Oh nevermind, misunderstood and thought you were talking about the header.
Patrick Griffis
Comment 13 2018-12-14 06:00:19 PST
WebKit Commit Bot
Comment 14 2018-12-14 06:38:56 PST
Comment on attachment 357311 [details] Patch Clearing flags on attachment: 357311 Committed r239204: <https://trac.webkit.org/changeset/239204>
WebKit Commit Bot
Comment 15 2018-12-14 06:38:58 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.