browser(firefox): stop video recording if page closed (#3040)
This commit is contained in:
parent
377404448c
commit
d1f937d651
|
|
@ -1,2 +1,2 @@
|
|||
1131
|
||||
Changed: yurys@chromium.org Fri Jul 17 17:30:24 PDT 2020
|
||||
1132
|
||||
Changed: yurys@chromium.org Mon Jul 20 10:26:17 PDT 2020
|
||||
|
|
|
|||
|
|
@ -137,6 +137,8 @@ class PageHandler {
|
|||
dispose() {
|
||||
this._contentPage.dispose();
|
||||
helper.removeListeners(this._eventListeners);
|
||||
if (this._videoSessionId !== -1)
|
||||
this.stopVideoRecording().catch(e => dump(`stopVideoRecording failed:\n${e}\n`));
|
||||
}
|
||||
|
||||
async setViewportSize({viewportSize}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue