Skip to content
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

Merged
merged 1 commit into from Sep 12, 2022
Merged

feat: use CDP's auto-attach mechanism #251

merged 1 commit into from Sep 12, 2022

Conversation

YusukeIwaki
Copy link
Owner

include Puppeteer::EventCallbackable

def initialize
raise NotImplementedError, 'FirefoxTargetManager is not implemented yet'

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'

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'

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'

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'

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'

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.


private def handle_target_destroyed(event)
target_id = event['targetId']
target_info = @discovered_targets_by_target_id.delete(target_id)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [rubocop] reported by reviewdog 🐶
Lint/UselessAssignment: Useless assignment to variable - target_info. Did you mean target_id?

@YusukeIwaki YusukeIwaki force-pushed the porting/8520 branch 2 times, most recently from 32e5d64 to 0d84586 Compare September 11, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant