Skip to content

Commit

Permalink
browser(firefox): send screencastStarted after attachedToTarget (#3554)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Aug 20, 2020
1 parent 5ba0254 commit 9f3a1b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions browser_patches/firefox/BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1165
Changed: [email protected] Thu Aug 20 13:05:37 PDT 2020
1166
Changed: [email protected] Thu Aug 20 13:55:50 PDT 2020
6 changes: 3 additions & 3 deletions browser_patches/firefox/juggler/protocol/BrowserHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 9f3a1b5

Please sign in to comment.