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
feat: use CDP's auto-attach mechanism #251
Conversation
include Puppeteer::EventCallbackable | ||
|
||
def initialize | ||
raise NotImplementedError, 'FirefoxTargetManager is not implemented yet' |
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.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/RaiseArgs: Provide an exception object as an argument to raise.
end | ||
|
||
def init | ||
raise NotImplementedError, 'FirefoxTargetManager#init is not implemented yet' |
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.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/RaiseArgs: Provide an exception object as an argument to raise.
end | ||
|
||
def available_targets | ||
raise NotImplementedError, 'FirefoxTargetManager#available_targets is not implemented yet' |
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.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/RaiseArgs: Provide an exception object as an argument to raise.
end | ||
|
||
def dispose | ||
raise NotImplementedError, 'FirefoxTargetManager#dispose is not implemented yet' |
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.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/RaiseArgs: Provide an exception object as an argument to raise.
end | ||
|
||
def add_target_interceptor(client, interceptor) | ||
raise NotImplementedError, 'FirefoxTargetManager#add_target_interceptor is not implemented yet' |
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.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/RaiseArgs: Provide an exception object as an argument to raise.
end | ||
|
||
def remove_target_interceptor(client, interceptor) | ||
raise NotImplementedError, 'FirefoxTargetManager#remove_target_interceptor is not implemented yet' |
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.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/RaiseArgs: Provide an exception object as an argument to raise.
cd0fc5b
to
49f9929
Compare
|
||
private def handle_target_destroyed(event) | ||
target_id = event['targetId'] | ||
target_info = @discovered_targets_by_target_id.delete(target_id) |
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.
Lint/UselessAssignment: Useless assignment to variable - target_info. Did you mean target_id?
32e5d64
to
0d84586
Compare
0d84586
to
0c8016c
Compare
Porting puppeteer/puppeteer#8520