From 11810a38f19e86a2b13493566e8ad6b2b00e0d67 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 13 Nov 2023 03:12:25 +0100 Subject: Ideas for Extreload tab reloading for Manifest V3 I was having a hard time jiggering the Extreload code to get tab reloading working with Manifest V3 extensions. This is an experiment using a better API to interact with the Chrome DevTools Protocol. It does correctly reload a Manifest V3 extension's current tab, by sleeping briefly to wait for the service worker to reinstall, then executing the tab reload call. --- go.mod | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 go.mod (limited to 'go.mod') diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f3b023c --- /dev/null +++ b/go.mod @@ -0,0 +1,16 @@ +module gopkg.teddywing.com/swextreload + +go 1.21.4 + +require github.com/chromedp/chromedp v0.9.3 + +require ( + github.com/chromedp/cdproto v0.0.0-20231011050154-1d073bb38998 // indirect + github.com/chromedp/sysutil v1.0.0 // indirect + github.com/gobwas/httphead v0.1.0 // indirect + github.com/gobwas/pool v0.2.1 // indirect + github.com/gobwas/ws v1.3.0 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/mailru/easyjson v0.7.7 // indirect + golang.org/x/sys v0.6.0 // indirect +) -- cgit v1.2.3