browser(firefox): send screencastStarted after attachedToTarget (#3554)
This commit is contained in:
parent
5ba0254c99
commit
9f3a1b5168
|
|
@ -1,2 +1,2 @@
|
||||||
1165
|
1166
|
||||||
Changed: yurys@chromium.org Thu Aug 20 13:05:37 PDT 2020
|
Changed: yurys@chromium.org Thu Aug 20 13:55:50 PDT 2020
|
||||||
|
|
|
||||||
|
|
@ -33,13 +33,13 @@ class BrowserHandler {
|
||||||
if (!this._shouldAttachToTarget(target))
|
if (!this._shouldAttachToTarget(target))
|
||||||
continue;
|
continue;
|
||||||
const session = this._dispatcher.createSession();
|
const session = this._dispatcher.createSession();
|
||||||
target.initSession(session);
|
|
||||||
target.connectSession(session);
|
|
||||||
this._attachedSessions.set(target, session);
|
this._attachedSessions.set(target, session);
|
||||||
this._session.emitEvent('Browser.attachedToTarget', {
|
this._session.emitEvent('Browser.attachedToTarget', {
|
||||||
sessionId: session.sessionId(),
|
sessionId: session.sessionId(),
|
||||||
targetInfo: target.info()
|
targetInfo: target.info()
|
||||||
});
|
});
|
||||||
|
target.initSession(session);
|
||||||
|
target.connectSession(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._eventListeners = [
|
this._eventListeners = [
|
||||||
|
|
@ -92,12 +92,12 @@ class BrowserHandler {
|
||||||
if (!this._shouldAttachToTarget(target))
|
if (!this._shouldAttachToTarget(target))
|
||||||
return;
|
return;
|
||||||
const session = this._dispatcher.createSession();
|
const session = this._dispatcher.createSession();
|
||||||
target.initSession(session);
|
|
||||||
this._attachedSessions.set(target, session);
|
this._attachedSessions.set(target, session);
|
||||||
this._session.emitEvent('Browser.attachedToTarget', {
|
this._session.emitEvent('Browser.attachedToTarget', {
|
||||||
sessionId: session.sessionId(),
|
sessionId: session.sessionId(),
|
||||||
targetInfo: target.info()
|
targetInfo: target.info()
|
||||||
});
|
});
|
||||||
|
target.initSession(session);
|
||||||
sessions.push(session);
|
sessions.push(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue