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

DBP: first action #843

Merged
merged 3 commits into from
Nov 22, 2023
Merged

DBP: first action #843

merged 3 commits into from
Nov 22, 2023

Conversation

shakyShane
Copy link
Collaborator

@shakyShane shakyShane commented Nov 21, 2023

https://app.asana.com/0/0/1206000767975136/f

Feature Summary

Native platforms will send one of the following instructions, one at a time:

  • navigate
  • extract
  • click <- included in this PR
  • expectation
  • fillForm
  • getCaptchaInfo
  • solveCaptcha

Each of them has a corresponding function that will be executed, and will return either a SuccessResponse or ErrorResponse to native.

The flow looks like this: (taken from the markdown file in the PR)

image

@shakyShane
Copy link
Collaborator Author

shakyShane commented Nov 21, 2023

This was referenced Nov 21, 2023
@shakyShane shakyShane changed the title first action DBP: first action Nov 21, 2023
@shakyShane shakyShane marked this pull request as ready for review November 21, 2023 14:16
Copy link
Member

@muodov muodov left a comment

Choose a reason for hiding this comment

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

looks good to me overall

src/features/broker-protection.js Show resolved Hide resolved
src/features.js Show resolved Hide resolved
src/features/broker-protection/click.js Show resolved Hide resolved
src/features/broker-protection/utils.js Outdated Show resolved Hide resolved
src/features/broker-protection/execute.js Show resolved Hide resolved
@shakyShane
Copy link
Collaborator Author

@muodov I narrowed some of the types as you suggested - but I don't think there's anything else blocking here?

@muodov
Copy link
Member

muodov commented Nov 21, 2023

@shakyShane no blockers, it looks good. I understand that these scripts will only be run on select pages, right? If so, we can be less worried about webcompat issues in the wild.

@shakyShane
Copy link
Collaborator Author

@muodov yeah that's correct - these are never going to be enabled for general users.

@muodov muodov self-requested a review November 21, 2023 16:59
@shakyShane shakyShane merged commit cd1b7a8 into main Nov 22, 2023
4 checks passed
@shakyShane shakyShane deleted the 11-21-first_action branch November 22, 2023 07:50
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

4 participants