aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-11-13main: Trouble sending tabs reload after re-attachmanifest-v3-supportTeddy Wing
For some reason, it's not sending the tab reload after the re-attach. Maybe a thing with the wait group?
2023-11-13main: Try to force re-attach to service worker to reload the current tabTeddy Wing
Doesn't appear to be working, unfortunately. The idea was to force the execution of the re-attach instead of checking for a targetCrashed message (which I would get only very rarely). In this way, we ensure that we re-attach to the service worker before running the tab reload. But that doesn't seem to be enough.
2023-11-13main: Idea to sleep before reloading tabTeddy Wing
I got this to work once, but not again after that for reloading the current tab.
2023-11-12main: Attempt to use Inspector.targetCrashed to reload tabTeddy Wing
I observed during a manual test with Websocat that Manifest V3 extensions trigger an `Inspector.targetCrashed` message after reloading the extension: {"id":1,"sessionId":"21A6A75608971AEAD68DB36701F9985C","method":"Runtime.evaluate","params":{"expression":"chrome.runtime.reload()"}} {"id":1,"result":{"result":{"type":"undefined"}},"sessionId":"21A6A75608971AEAD68DB36701F9985C"} {"method":"Inspector.targetCrashed","params":{},"sessionId":"21A6A75608971AEAD68DB36701F9985C"} Here, I tried to listen for that `Inspector.targetCrashed` message and use that to trigger a tab reload. Unfortunately, that doesn't seem to work, as in my Extreload test of this code, I don't see the `Inspector.targetCrashed` message. Looks like I'll have to find a different means of reloading Manifest V3 extension tabs.
2023-11-12Track Manifest V3 extensions in a listTeddy Wing
I want to keep track of Manifest V3 extensions, because these must be re-attached to in order to reload the tab. We will later look at this list to find out if we need to skip reloading the extension (it's already been done), and instead proceed directly to reloading the tab.
2023-11-12main: Don't pass a callback to `chrome.tabs.reload`Teddy Wing
I thought this might fix the reload problem for Manifest V3 extensions, but it did nothing.
2023-11-11main: Ideas for reload in Manifest V3Teddy Wing
I looked into fixing the tab reload in Manifest V3, but haven't figured out a way to get it working yet. Apparently according to the file stat, I did this on 2023-02-13.
2023-02-08main: Add support for `service_worker` targetsTeddy Wing
Begin Web Extension Manifest V3 support by recognising `service_worker` targets in addition to `background_page`s.
2022-08-25Merge branch 'bundle-lisp-dependencies'Teddy Wing
2022-08-25option.lisp: Update copyright yearbundle-lisp-dependenciesTeddy Wing
2022-08-25option.lisp: Define version string at compile timeTeddy Wing
Otherwise we get a runtime error when running the binary on a different machine than the one that built it: $ extreload -V error: Failed to find the WRITE-DATE of /private/tmp/extreload-20220825-3720-17mi6k3/extreload_0.0.2/bundle/local-projects/: No such file or directory
2022-08-25Update copyright dates after bundle changesTeddy Wing
2022-08-25extreload.asd: Turn off SSL in `websocket-driver-client`Teddy Wing
SSL is unnecessary for our purposes, and including it causes a runtime error when the path to `libcrypto.dylib` is different on the executing machine than it is on the build machine. This is the error I got when running `extreload` on an Apple Silicon machine with Homebrew, using a package bundled by an x86 machine with Homebrew: $ extreload debugger invoked on a SIMPLE-ERROR in thread #<THREAD "main thread" RUNNING {70024E0003}>: Error opening shared object "/usr/local/opt/openssl/lib/libcrypto.dylib": dlopen(/usr/local/opt/openssl/lib/libcrypto.dylib, 0x000A): tried: '/usr/local/opt/openssl/lib/libcrypto.dylib' (no such file). Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [CONTINUE ] Skip this shared object and continue. 1: [RETRY ] Retry loading this shared object. 2: [CHANGE-PATHNAME] Specify a different pathname to load the shared object from. 3: [ABORT ] Exit from the current thread. (SB-SYS:DLOPEN-OR-LOSE #S(SB-ALIEN::SHARED-OBJECT :PATHNAME #P"/usr/local/opt/openssl/lib/libcrypto.dylib" :NAMESTRING "/usr/local/opt/openssl/lib/libcrypto.dylib" :HANDLE NIL :DONT-SAVE NIL)) 0]
2022-08-25Makefile: Rewrite `pkg` target to include bundle and sourceTeddy Wing
Copy the `pkg` target from Wajir to make a tarball of the bundled dependencies in `bundle` and the Extreload source code. This tarball can then be distributed and the program can be built and installed from it using the Makefile. By distributing the source, an executable can be built for more architectures and systems.
2022-08-25Makefile: Add dependencies on `bundle` targetTeddy Wing
2022-08-25bundle.lisp: Remove `sysexits` from `local-dependencies` listTeddy Wing
Sysexits is now in Quicklisp so we don't need to load it here.
2022-08-23Makefile: Add an `install` targetTeddy Wing
Make it easy for package managers to build and install the program.
2022-08-23Makefile: Add self-contained bundle targetTeddy Wing
Add a target to create a self-contained bundle of the program that isn't dependent on Quicklisp. This code is based on what I did in Wajir.
2022-08-22Remove `lib/with-user-abort` submoduleTeddy Wing
With-user-abort is now in Quicklisp.
2022-08-22Remove `lib/sysexits` submoduleTeddy Wing
Sysexits is now in Quicklisp.
2021-03-03README: Add a note about pre-built binaries being availableTeddy Wing
2021-03-02Increase version v0.0.1 -> v0.0.2v0.0.2Teddy Wing
2021-03-02Update TODOTeddy Wing
2021-03-02main: Exit on Control-c interruptTeddy Wing
Use the `with-user-abort` library to catch an interrupt signal from `<C-c>` and exit immediately. Otherwise, the Lisp debugger is invoked, which is not the expected behaviour for a command line program. Tried putting the `user-abort` condition in the `handler-case` in `main`, but it didn't appear to be caught in my tests. Decided to catch it with `handler-case` immediately instead, confirming this works. Unfortunately, if `<C-c>` is received before entering `main` (by running the program and immediately pressing it), our handler won't get called, and instead the Lisp debugger will be invoked. Not sure how to deal with that, so I've decided not to bother.
2021-03-01Makefile: Add source dependencies to `extreload` buildTeddy Wing
2021-03-01Add 'with-user-abort' library dependencyTeddy Wing
For `<C-c>` handling.
2021-03-01Update TODOTeddy Wing
2021-02-27README: Add submodule documentationv0.0.1Teddy Wing
2021-02-27Add `wait-group` library dependencyTeddy Wing
2021-02-27Makefile: Add target to build a distributable packageTeddy Wing
2021-02-27Add READMETeddy Wing
2021-02-27Add license (GNU GPLv3+)Teddy Wing
2021-02-27Makefile: Remove `release` targetTeddy Wing
Not using ECL any more. Instead we're continuing to build with SBCL and enable binary compression.
2021-02-27Update TODOTeddy Wing
2021-02-27Add man pageTeddy Wing
2021-02-27Move everything from `l/` into the project rootTeddy Wing
This is the final project. Now that we got rid of the web extension and native host code, we can move the Lisp code to the root.
2021-02-27Move `l/lib/sysexits` to `lib/sysexits`Teddy Wing
2021-02-27Remove web extension and native messaging hostTeddy Wing
This code is superseded by the Common Lisp project that communicates via the DevTools Protocol. The `chrome.management` API's `setEnabled()` function just allowed me to turn extensions off and on. It didn't reload the extensions. The DevTools Protocol allows us to execute JavaScript in the context of an extension's background page. This allows us to run `chrome.runtime.reload()` in an extension's context, properly reloading the extension.
2021-02-27Update TODOTeddy Wing
2021-02-27main: Add documentationTeddy Wing
2021-02-27main: Remove unused globalsTeddy Wing
I used these for debugging, but they aren't relevant any more.
2021-02-27main: Move command line option definitions to `option.lisp`Teddy Wing
Makes more sense to group the option code together.
2021-02-27option: Add documentationTeddy Wing
2021-02-27macro: Add documentationTeddy Wing
2021-02-27ws-on-message: Move predicate checking tab reload exception to functionTeddy Wing
Give this check a name.
2021-02-27devtools-protocol: Add documentationTeddy Wing
2021-02-27call-id: Add documentationTeddy Wing
2021-02-27Update TODOTeddy Wing
2021-02-27Hide `websocket-send` debug output behind `--debug` flagTeddy Wing
Make the config containing command line options a global variable. This makes it easy to find out if the `--debug` flag is on in the `websocket-send` function. Not sure about the global variable, but seems fine for now.
2021-02-21make-config: Add function documentationTeddy Wing