diff options
author | Teddy Wing | 2023-11-12 12:23:52 +0100 |
---|---|---|
committer | Teddy Wing | 2023-11-12 12:27:42 +0100 |
commit | ff7eb76be6e8a6aa1e5ee5f3cc3efac8455e9daf (patch) | |
tree | 10b405b40433e3019455c0c4bb246c93fb6879d9 /src/devtools-protocol.lisp | |
parent | d2aebc157aaaac786b066fe00c2abf122d4f1f0e (diff) | |
download | extreload-ff7eb76be6e8a6aa1e5ee5f3cc3efac8455e9daf.tar.bz2 |
Track Manifest V3 extensions in a list
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.
Diffstat (limited to 'src/devtools-protocol.lisp')
-rw-r--r-- | src/devtools-protocol.lisp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devtools-protocol.lisp b/src/devtools-protocol.lisp index 6e60f69..1d183bc 100644 --- a/src/devtools-protocol.lisp +++ b/src/devtools-protocol.lisp @@ -56,6 +56,12 @@ "Returns true if `message` describes a runtime exception" (jsown:keyp (json-obj-get message "result") "exceptionDetails")) +(defun inspector-target-crashed-msg-p (message) + "Returns true if `message` describes a target crashed" + (equal + (json-obj-get message "method") + "Inspector.targetCrashed")) + (defun parse-get-targets-response (response) "Parses a list of target info objects from the response to `Target.getTargets`." (let* ((result (json-obj-get response "result")) |