WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
236422
[macOS] Support both versions of ScreenCaptureKit API
https://bugs.webkit.org/show_bug.cgi?id=236422
Summary
[macOS] Support both versions of ScreenCaptureKit API
Eric Carlson
Reported
2022-02-09 18:14:30 PST
Support the new and deprecated ScreenCaptureKit API simultaneously so not everyone has to update at the same time.
Attachments
Patch
(20.54 KB, patch)
2022-02-09 19:08 PST
,
Eric Carlson
youennf
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch for landing
(21.27 KB, patch)
2022-02-10 08:45 PST
,
Eric Carlson
eric.carlson
: commit-queue+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-02-09 18:15:02 PST
<
rdar://problem/88726849
>
Eric Carlson
Comment 2
2022-02-09 19:08:24 PST
Created
attachment 451481
[details]
Patch
youenn fablet
Comment 3
2022-02-10 05:21:09 PST
Comment on
attachment 451481
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=451481&action=review
> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:95 > WeakPtr<ScreenCaptureKitCaptureSource> _callback;
Style question: Is it _callback or callback_ or m_callback that we are supposed to use?
> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:180 > + m_useNewAPI = [PAL::getSCStreamClass() instancesRespondToSelector:@selector(stopCaptureWithCompletionHandler:)];
, m_useNewAPI(...)
> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:211 > if (m_contentStream) {
We could do if (!m_contentStream) return;
> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:447 > +
Not needed
Eric Carlson
Comment 4
2022-02-10 08:45:05 PST
Created
attachment 451544
[details]
Patch for landing
Eric Carlson
Comment 5
2022-02-10 09:14:34 PST
Comment on
attachment 451481
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=451481&action=review
>> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:95 >> WeakPtr<ScreenCaptureKitCaptureSource> _callback; > > Style question: Is it _callback or callback_ or m_callback that we are supposed to use?
As far as I can tell, it is usually `_callback` in ObjC code.
>> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:180 >> + m_useNewAPI = [PAL::getSCStreamClass() instancesRespondToSelector:@selector(stopCaptureWithCompletionHandler:)]; > > , m_useNewAPI(...)
Fixed.
>> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:211 >> if (m_contentStream) { > > We could do if (!m_contentStream) return;
Oops, I missed this but will change in an upcoming patch.
>> Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:447 >> + > > Not needed
Removed.
EWS
Comment 6
2022-02-10 09:48:34 PST
Committed
r289547
(
247078@main
): <
https://commits.webkit.org/247078@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 451544
[details]
.
Eric Carlson
Comment 7
2022-02-10 10:17:22 PST
Comment on
attachment 451544
[details]
Patch for landing This code is macOS only, the Windows failure is unrelated.
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