browser(firefox): send screencastStarted after attachedToTarget (#3554)

This commit is contained in:
Yury Semikhatsky 2020-08-20 14:03:05 -07:00 committed by GitHub
parent 5ba0254c99
commit 9f3a1b5168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -1,2 +1,2 @@
1165
Changed: yurys@chromium.org Thu Aug 20 13:05:37 PDT 2020
1166
Changed: yurys@chromium.org Thu Aug 20 13:55:50 PDT 2020

View file

@ -33,13 +33,13 @@ class BrowserHandler {
if (!this._shouldAttachToTarget(target))
continue;
const session = this._dispatcher.createSession();
target.initSession(session);
target.connectSession(session);
this._attachedSessions.set(target, session);
this._session.emitEvent('Browser.attachedToTarget', {
sessionId: session.sessionId(),
targetInfo: target.info()
});
target.initSession(session);
target.connectSession(session);
}
this._eventListeners = [
@ -92,12 +92,12 @@ class BrowserHandler {
if (!this._shouldAttachToTarget(target))
return;
const session = this._dispatcher.createSession();
target.initSession(session);
this._attachedSessions.set(target, session);
this._session.emitEvent('Browser.attachedToTarget', {
sessionId: session.sessionId(),
targetInfo: target.info()
});
target.initSession(session);
sessions.push(session);
}