WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 233722
DisplayCaptureSource doesn't initialize base class correctly
https://bugs.webkit.org/show_bug.cgi?id=233722
Summary
DisplayCaptureSource doesn't initialize base class correctly
Eric Carlson
Reported
2021-12-01 13:28:59 PST
UserMediaCaptureManagerProxy doesn't pass the site hash salt the display capture factory, so RealtimeMediaSource::m_hashedID is empty.
Attachments
Patch
(27.65 KB, patch)
2021-12-01 14:05 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch
(33.13 KB, patch)
2021-12-02 15:00 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2021-12-01 14:05:40 PST
Created
attachment 445614
[details]
Patch
youenn fablet
Comment 2
2021-12-01 22:53:34 PST
Comment on
attachment 445614
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=445614&action=review
> Source/WebCore/ChangeLog:8 > + No change in functionality.
Is the goal to expose a deviceId in settings? If so, we should call setDeviceId in DisplayCaptureSourceCocoa::settings() and add a test. If not, why do we care about having an empty hashed ID? Looking at other browsers, we are doing like Firefox (no deviceId) but not like Chrome. I guess the spec should be clear about that. Also RealtimeMediaSource::hashedId is checking that m_hashedId is not empty if device is not screen/window. I guess we could update this check (though other sources might still have empty hashedId, canvas or WebAudio for instance).
> Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.h:126 > + void getDisplayMediaDevices(const MediaStreamRequest&, String&&, Vector<DeviceInfo>&, String&);
Would be worth changing to Expected<Vector<DeviceInfo>, String> getDisplayMediaDevices(..) at some point (probably not this patch though).
Eric Carlson
Comment 3
2021-12-02 15:00:18 PST
Created
attachment 445777
[details]
Patch
Eric Carlson
Comment 4
2021-12-02 15:05:04 PST
(In reply to youenn fablet from
comment #2
)
> Comment on
attachment 445614
[details]
> > Is the goal to expose a deviceId in settings? If so, we should call > setDeviceId in DisplayCaptureSourceCocoa::settings() and add a test. > If not, why do we care about having an empty hashed ID? >
Good point, I added a test.
> Looking at other browsers, we are doing like Firefox (no deviceId) but not > like Chrome. > I guess the spec should be clear about that. > > Also RealtimeMediaSource::hashedId is checking that m_hashedId is not empty > if device is not screen/window. > I guess we could update this check (though other sources might still have > empty hashedId, canvas or WebAudio for instance). >
I updated the check.
EWS
Comment 5
2021-12-03 08:36:06 PST
Committed
r286491
(
244830@main
): <
https://commits.webkit.org/244830@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 445777
[details]
.
Radar WebKit Bug Importer
Comment 6
2021-12-03 08:37:23 PST
<
rdar://problem/86019589
>
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