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 221916
MediaRecorder.stop() does not work correctly when recording has been paused.
https://bugs.webkit.org/show_bug.cgi?id=221916
Summary
MediaRecorder.stop() does not work correctly when recording has been paused.
David Mannion
Reported
2021-02-15 12:58:02 PST
MediaRecorder::stopRecordingInternal() is not setting the state = RecordingState::Inactive when the current state == RecordingState::Paused. The current code: 316 if (state() != RecordingState::Recording) { 317 completionHandler(); 318 return; 319 } should probably be: 316 if (state() === RecordingState::Inactive) { 317 completionHandler(); 318 return; 319 } The problem can be reproduced using these steps: 1) Start Recording 2) Pause Recording 3) Stop Recording 4) Start Recording Actual result: After step 3, the status is still paused. Also, an exception is thrown and the browser reloads when trying to re-start recording. Expected result: After step 3, the status should be inactive. Also recording should re-start without error.
Attachments
Patch
(5.21 KB, patch)
2021-02-15 23:54 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-02-15 14:36:03 PST
<
rdar://problem/74366154
>
youenn fablet
Comment 2
2021-02-15 23:23:25 PST
> Actual result: After step 3, the status is still paused. Also, an exception > is thrown and the browser reloads when trying to re-start recording.
When you say the browser reloads, does it mean there is a crash and the page reloads?
youenn fablet
Comment 3
2021-02-15 23:54:48 PST
Created
attachment 420428
[details]
Patch
youenn fablet
Comment 4
2021-02-15 23:55:35 PST
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/27638
EWS Watchlist
Comment 5
2021-02-15 23:55:39 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see
https://trac.webkit.org/wiki/WPTExportProcess
EWS
Comment 6
2021-02-16 09:57:32 PST
Committed
r272911
: <
https://commits.webkit.org/r272911
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420428
[details]
.
David Mannion
Comment 7
2021-02-16 10:21:16 PST
(In reply to youenn fablet from
comment #2
)
> > Actual result: After step 3, the status is still paused. Also, an exception > > is thrown and the browser reloads when trying to re-start recording. > When you say the browser reloads, does it mean there is a crash and the page > reloads?
My mistake. It crashes if you call resume(). Calling start() throws an exception.
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