WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
219159
[macOS] Issue sandbox extension to icon services when starting a drag operation
https://bugs.webkit.org/show_bug.cgi?id=219159
Summary
[macOS] Issue sandbox extension to icon services when starting a drag operation
Per Arne Vollan
Reported
2020-11-19 07:10:53 PST
Issue sandbox extension to icon services when starting a drag operation on macOS, since the WebContent process needs access to these services when a drag is started.
Attachments
Patch
(8.92 KB, patch)
2020-11-19 07:23 PST
,
Per Arne Vollan
bfulgham
: review+
Details
Formatted Diff
Diff
Patch
(8.94 KB, patch)
2020-11-28 03:56 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-11-19 07:11:13 PST
<
rdar://problem/71585876
>
Per Arne Vollan
Comment 2
2020-11-19 07:23:04 PST
Created
attachment 414578
[details]
Patch
Brent Fulgham
Comment 3
2020-11-19 15:09:39 PST
Comment on
attachment 414578
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=414578&action=review
r=me, but please make sure you revoke the extensions in the early return case.
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:2834 > bool shouldHandleEvent = true;
I think there is an early return in the "if !(shouldHandleEvent)" case. You should probably add a revokeSandboxExtensions there, too.
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:7060 > +Vector<RefPtr<SandboxExtension>> WebPage::consumeSandboxExtensions(SandboxExtension::HandleArray&& sandboxExtensions)
We do something similar-ish in UserMediaProcessManager::revokeSandboxExtensionsIfNeeded. We might consider a future bug to consolidate the logic.
Per Arne Vollan
Comment 4
2020-11-28 03:56:38 PST
Created
attachment 414976
[details]
Patch
Per Arne Vollan
Comment 5
2020-11-28 04:05:29 PST
(In reply to Brent Fulgham from
comment #3
)
> Comment on
attachment 414578
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=414578&action=review
> > r=me, but please make sure you revoke the extensions in the early return > case. > > > Source/WebKit/WebProcess/WebPage/WebPage.cpp:2834 > > bool shouldHandleEvent = true; > > I think there is an early return in the "if !(shouldHandleEvent)" case. You > should probably add a revokeSandboxExtensions there, too. >
Fixed by consuming the extensions after the early return.
> > Source/WebKit/WebProcess/WebPage/WebPage.cpp:7060 > > +Vector<RefPtr<SandboxExtension>> WebPage::consumeSandboxExtensions(SandboxExtension::HandleArray&& sandboxExtensions) > > We do something similar-ish in > UserMediaProcessManager::revokeSandboxExtensionsIfNeeded. We might consider > a future bug to consolidate the logic.
Thanks for reviewing!
EWS
Comment 6
2020-11-28 04:52:25 PST
Committed
r270216
: <
https://trac.webkit.org/changeset/270216
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 414976
[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