Since I changed LocalMediaStream to be a ActiveDOMObject recently the stop behaviour needs to change since it is no longer a good idea to start a timer when called.
Created attachment 138970 [details] Patch
Comment on attachment 138970 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=138970&action=review > Source/WebCore/Modules/mediastream/LocalMediaStream.cpp:2 > + * Copyright (C) 2012 Google Inc. All rights reserved. we don't do this in WebKit, just leave the date alone > Source/WebCore/Modules/mediastream/LocalMediaStream.h:2 > + * Copyright (C) 2012 Google Inc. All rights reserved. same here
Created attachment 139426 [details] Patch
Comment on attachment 138970 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=138970&action=review >> Source/WebCore/Modules/mediastream/LocalMediaStream.cpp:2 >> + * Copyright (C) 2012 Google Inc. All rights reserved. > > we don't do this in WebKit, just leave the date alone Done. >> Source/WebCore/Modules/mediastream/LocalMediaStream.h:2 >> + * Copyright (C) 2012 Google Inc. All rights reserved. > > same here Done.
This patch changes specified (and testable) API behavior. The "ended" event will be dispatched synchronously when LocalMediaStream.stop() is called from JavaScript. I don't think calling MediaStreamCenter::didStopLocalMediaStream() from ActiveDOMObject::stop() is the right approach. I've posted a bug to discuss this. See http://webkit.org/b/85191
Comment on attachment 139426 [details] Patch Clearing flags on attachment: 139426 Committed r115649: <http://trac.webkit.org/changeset/115649>
All reviewed patches have been landed. Closing bug.