Protect the MediaDevicesRequest object during a call to the completion handler in case the handler is called immediately.
<rdar://problem/28400468>
Created attachment 296764 [details] Proposed patch.
Created attachment 296808 [details] Patch for landing.
Comment on attachment 296808 [details] Patch for landing. View in context: https://bugs.webkit.org/attachment.cgi?id=296808&action=review > Source/WebCore/Modules/mediastream/MediaDevicesEnumerationRequest.cpp:91 > + RefPtr<MediaDevicesEnumerationRequest> protectedThis = this; I prefer Ref<MediaDevicesEnumerationRequest> protectedThis(*this) where possible.
Created attachment 296873 [details] Patch for landing.
Comment on attachment 296873 [details] Patch for landing. Clearing flags on attachment: 296873 Committed r209685: <http://trac.webkit.org/changeset/209685>