From ff7eb76be6e8a6aa1e5ee5f3cc3efac8455e9daf Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 12 Nov 2023 12:23:52 +0100 Subject: 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. --- src/devtools-protocol.lisp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/devtools-protocol.lisp') 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")) -- cgit v1.2.3