WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
75076
Robustify UserMediaClient and UserMediaRequest lifetime handling
https://bugs.webkit.org/show_bug.cgi?id=75076
Summary
Robustify UserMediaClient and UserMediaRequest lifetime handling
Adam Bergkvist
Reported
2011-12-22 02:44:24 PST
As discussed in:
https://bugs.webkit.org/show_bug.cgi?id=70897#c34
UserMediaClient should take ownership of a UserMediaRequest right away instead of passing it via UserMediaCenter so that it can notify the request if it goes away during querying of media stream sources.
Attachments
Proposed patch
(7.48 KB, patch)
2011-12-22 02:58 PST
,
Adam Bergkvist
darin
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adam Bergkvist
Comment 1
2011-12-22 02:58:34 PST
Created
attachment 120296
[details]
Proposed patch
Adam Barth
Comment 2
2011-12-22 09:22:14 PST
Comment on
attachment 120296
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=120296&action=review
> Source/WebCore/mediastream/UserMediaRequest.cpp:71 > + m_client->registerRequest(this);
Should this be willStartRequest?
> Source/WebKit/chromium/src/UserMediaClientImpl.cpp:57 > +void UserMediaClientImpl::registerRequest(PassRefPtr<UserMediaRequest>) > +{ > +}
Is this function supposed to do something?
Adam Barth
Comment 3
2011-12-22 09:24:59 PST
I don't quite understand what this patch is doing. (I don't doubt that it's doing something useful---I just don't quite understand.)
Darin Adler
Comment 4
2012-08-14 12:42:25 PDT
Comment on
attachment 120296
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=120296&action=review
> Source/WebKit/chromium/src/UserMediaClientImpl.cpp:62 > - m_client->requestUserMedia(request, sources); > + m_client->requestUserMedia(PassRefPtr<UserMediaRequest>(request), sources);
Why is this typecast needed? Normally you can pass a raw pointer to an argument of type PassRefPtr without an explicit type conversion.
Darin Adler
Comment 5
2013-03-06 09:20:35 PST
Comment on
attachment 120296
[details]
Proposed patch review- because we didn’t get answers to our questions and it’s been in the review queue over a year
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