wxt icon indicating copy to clipboard operation
wxt copied to clipboard

feat: add awaitExecution option to injectScript utility

Open mrdotb opened this issue 7 months ago • 2 comments

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.

mrdotb avatar Jul 03 '25 13:07 mrdotb

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
Latest commit 79623f272210cc9241a069c7dfeb0604af253f18
Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/688f75791d024d00087602e2
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.

netlify[bot] avatar Jul 03 '25 13:07 netlify[bot]

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1789
@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1789
@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1789
@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1789
@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1789
@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1789
@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1789
@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1789
@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@1789
@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1789
@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1789
@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1789
wxt

npm i https://pkg.pr.new/wxt@1789

commit: 79623f2

pkg-pr-new[bot] avatar Aug 03 '25 14:08 pkg-pr-new[bot]