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: fast provider injection 🔥 #2691

Merged
merged 40 commits into from
Aug 28, 2023
Merged

feat: fast provider injection 🔥 #2691

merged 40 commits into from
Aug 28, 2023

Conversation

reneaaron
Copy link
Contributor

Describe the changes you have made in this PR

Improvements for #2672

pavanjoshi914 and others added 29 commits August 16, 2023 13:54
intercept build files add provider during build time and inject
signed-off-by: pavan joshi <pavanj914@gmail.com>
inject all the provider via single variable
solve plugin error, while inlinining all the scripts in single variable
signed-off-by: pavan joshi <pavanj914@gmail.com>
intercept build files add provider during build time and inject
signed-off-by: pavan joshi <pavanj914@gmail.com>
@reneaaron reneaaron changed the base branch from master to inject-webln-in-world August 23, 2023 18:41
@reneaaron reneaaron changed the base branch from inject-webln-in-world to master August 23, 2023 18:41
do browser side checks + extension side cheks such as blocklist in the provider's content script
signed-off-by: pavan joshi <pavanj914@gmail.com>
@pavanjoshi914 pavanjoshi914 marked this pull request as ready for review August 24, 2023 06:40
@pavanjoshi914 pavanjoshi914 requested a review from bumi August 24, 2023 06:41
@pavanjoshi914
Copy link
Contributor

pavanjoshi914 commented Aug 24, 2023

  1. new changes include, doing browser side checks in the inpagescript itself so that those checks work for mv3 and mv2 both

  2. handle browser side check + extension side check such as blocklist in the providers content script itself. so that it works both on mv2 and mv3

like this we achieve common behaviour on both mv2 and mv3

  1. script is injected from onStart.ts and background script
  2. in page script itself checks document type, suffix, and script element if everything is fine script is injected. if not script will not injected
  3. If inpage is injected, if user performs some call. shouldInject from content script is responsible for handling blocklist via should inject present in there, hence blocklist will work on both mv2 and mv3 as well

cc @reneaaron @bumi

@reneaaron reneaaron changed the title WIP: provider injection feat: fast provider injection 🔥 Aug 24, 2023
Copy link
Contributor Author

@reneaaron reneaaron left a comment

Choose a reason for hiding this comment

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

Tested both in firefox and chrome. 💯

tACK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants