Skip to content

feat: add awaitExecution option to injectScript utility #1789

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrdotb
Copy link

@mrdotb mrdotb commented Jul 3, 2025

Overview

Add support for awaiting script execution in MV3 extensions. The new awaitExecution option returns a promise that resolves when the script loads successfully or rejects on error.
It does not change the current behavior of injectScript

Manual Testing

I tested the function manually I searched to see if there is unit test or e2e test but could not find test covering injectScript.

Add support for awaiting script execution in MV3 extensions. The new awaitExecution option returns a promise that resolves when the script loads successfully or rejects on error.
@mrdotb mrdotb requested review from aklinker1 and Timeraa as code owners July 3, 2025 13:33
Copy link

netlify bot commented Jul 3, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 90b7ab3
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/686686c5c1550b000856f48d
😎 Deploy Preview https://deploy-preview-1789--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant