| Summary: | [GTK][WPE] Check GApplication has a valid ID before trying to create the flatpack info | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||||||
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro | ||||||||
| Priority: | P2 | Keywords: | Gtk | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Carlos Garcia Campos
2021-06-24 02:43:53 PDT
Created attachment 432144 [details]
Patch
Created attachment 432145 [details]
Patch
Comment on attachment 432145 [details]
Patch
Patrick noticed that this will cause portals to think the application is not sandboxed.
We should instead replaced the early return with a g_error() explaining that the sandbox cannot be used without running a GApplication instance with a valid app ID.
Created attachment 432383 [details]
Patch
Comment on attachment 432383 [details]
Patch
OK, but I would remove the 'return -1' lines before landing, because they are now unreachable.
Committed r279369 (239235@main): <https://commits.webkit.org/239235@main> |