WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
219173
[macOS] Adopt SPI to prevent establishing XPC connections to Launch Services
https://bugs.webkit.org/show_bug.cgi?id=219173
Summary
[macOS] Adopt SPI to prevent establishing XPC connections to Launch Services
Per Arne Vollan
Reported
2020-11-19 11:46:00 PST
Adopt SPI to prevent establishing XPC connections to Launch Services in the WebContent process on macOS.
Attachments
Patch
(10.11 KB, patch)
2020-11-19 14:29 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(11.17 KB, patch)
2020-11-20 08:15 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(11.77 KB, patch)
2020-11-20 08:31 PST
,
Per Arne Vollan
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(11.69 KB, patch)
2020-11-20 08:40 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(10.38 KB, patch)
2020-11-20 15:09 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(2.87 KB, patch)
2020-11-29 23:08 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-11-19 11:46:20 PST
<
rdar://problem/71595536
>
Per Arne Vollan
Comment 2
2020-11-19 14:29:49 PST
Created
attachment 414621
[details]
Patch
Per Arne Vollan
Comment 3
2020-11-20 08:15:45 PST
Created
attachment 414676
[details]
Patch
Per Arne Vollan
Comment 4
2020-11-20 08:31:05 PST
Created
attachment 414678
[details]
Patch
Per Arne Vollan
Comment 5
2020-11-20 08:40:02 PST
Created
attachment 414682
[details]
Patch
Darin Adler
Comment 6
2020-11-20 11:52:44 PST
Comment on
attachment 414676
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=414676&action=review
> Source/WebKit/UIProcess/WebProcessProxy.cpp:280 > + Optional<WebKit::SandboxExtension::Handle> extension; > +#if PLATFORM(MAC)
Should add a blank line here to make the formatting match the function below.
> Source/WebKit/WebProcess/WebProcess.h:518 > + void updateProcessName(Optional<WebKit::SandboxExtension::Handle> = WTF::nullopt);
Why doesn’t this function take an rvalue reference?
> Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:451 > + if (handle) {
Since Handle already has a null value, we do not need to use Optional<>. If we used just Handle everywhere, not Optional<Handle>, and took out this null check, the code would work fine. SandboxExtension::create already does nothing and returns nullptr if you call it with a null Handle.
Darin Adler
Comment 7
2020-11-20 11:53:18 PST
Not sure I should have reviewed that older patch?
Per Arne Vollan
Comment 8
2020-11-20 14:54:22 PST
(In reply to Darin Adler from
comment #6
)
> Comment on
attachment 414676
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=414676&action=review
> > > Source/WebKit/UIProcess/WebProcessProxy.cpp:280 > > + Optional<WebKit::SandboxExtension::Handle> extension; > > +#if PLATFORM(MAC) > > Should add a blank line here to make the formatting match the function below. >
Will fix.
> > Source/WebKit/WebProcess/WebProcess.h:518 > > + void updateProcessName(Optional<WebKit::SandboxExtension::Handle> = WTF::nullopt); > > Why doesn’t this function take an rvalue reference? >
I believe it can, will change!
> > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:451 > > + if (handle) { > > Since Handle already has a null value, we do not need to use Optional<>. If > we used just Handle everywhere, not Optional<Handle>, and took out this null > check, the code would work fine. SandboxExtension::create already does > nothing and returns nullptr if you call it with a null Handle.
That is a good point, I will remove the Optional. Thanks for reviewing!
Per Arne Vollan
Comment 9
2020-11-20 14:55:49 PST
(In reply to Darin Adler from
comment #7
)
> Not sure I should have reviewed that older patch?
I am currently working on some minor modifications. I will possibly upload another revised patch for review. Thanks!
Per Arne Vollan
Comment 10
2020-11-20 15:09:39 PST
Created
attachment 414735
[details]
Patch
Per Arne Vollan
Comment 11
2020-11-29 23:08:34 PST
Created
attachment 415005
[details]
Patch
Alex Christensen
Comment 12
2020-11-30 12:39:45 PST
How will _LSSetApplicationInformationItem work with this?
Per Arne Vollan
Comment 13
2020-11-30 13:02:26 PST
(In reply to Alex Christensen from
comment #12
)
> How will _LSSetApplicationInformationItem work with this?
These calls will be forwarded to the Networking process. Thanks for reviewing!
Alex Christensen
Comment 14
2020-11-30 13:32:06 PST
Comment on
attachment 415005
[details]
Patch Oh I see ENABLE(SET_WEBCONTENT_PROCESS_INFORMATION_IN_NETWORK_PROCESS) now
Per Arne Vollan
Comment 15
2020-11-30 22:36:58 PST
Comment on
attachment 415005
[details]
Patch Thanks for reviewing!
EWS
Comment 16
2020-11-30 22:49:26 PST
Committed
r270284
: <
https://trac.webkit.org/changeset/270284
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 415005
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug