-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(driver): do not use target manager in legacy mode #14079
Conversation
/** | ||
* @param {LH.Crdp.Target.AttachedToTargetEvent} event | ||
*/ | ||
async _onTargetAttachedLegacy(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually we don't need to do any of this. driver is already enabling the network domain for us.
Pretty certain the failing smokes are unrelated, given they are FR and this PR only impact legacy. |
1 similar comment
Pretty certain the failing smokes are unrelated, given they are FR and this PR only impact legacy. |
|
||
// Legacy driver does its own target management. | ||
// @ts-expect-error | ||
const isLegacyRunner = Boolean(this._session._domainEnabledCounts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you planning to remove this hack as part of #14078, or once the legacy runner is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the latter. (once the legacy runner is removed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh, whatever comes first?
Related to #14078. In the legacy driver, we are already handling targets via the event handlers added in the constructor. Let's not complicate things in legacy mode by doing target management in a second place (only the NetworkMonitor is what creates a TargetManager in legacy mode).