<feed xmlns='http://www.w3.org/2005/Atom'>
<title>extreload, branch manifest-v3-support</title>
<subtitle>Reload Chrome extensions from the command line</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/'/>
<entry>
<title>main: Trouble sending tabs reload after re-attach</title>
<updated>2023-11-13T02:29:14+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-13T02:29:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=c25ae5a45c962bccb7a39ec414b02bff3a7c86b9'/>
<id>c25ae5a45c962bccb7a39ec414b02bff3a7c86b9</id>
<content type='text'>
For some reason, it's not sending the tab reload after the re-attach.
Maybe a thing with the wait group?
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For some reason, it's not sending the tab reload after the re-attach.
Maybe a thing with the wait group?
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Try to force re-attach to service worker to reload the current tab</title>
<updated>2023-11-13T02:09:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-13T02:09:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=b226bb4feb23e0c1a073de455466f612e0c1f06c'/>
<id>b226bb4feb23e0c1a073de455466f612e0c1f06c</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Idea to sleep before reloading tab</title>
<updated>2023-11-13T02:07:28+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-13T02:07:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=15f55656e63e0ef32954d27a5efa1fa05790358c'/>
<id>15f55656e63e0ef32954d27a5efa1fa05790358c</id>
<content type='text'>
I got this to work once, but not again after that for reloading the
current tab.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I got this to work once, but not again after that for reloading the
current tab.
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Attempt to use Inspector.targetCrashed to reload tab</title>
<updated>2023-11-12T14:48:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-12T14:48:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=032d704f74a9cec209bef6a3a97109d0874ab331'/>
<id>032d704f74a9cec209bef6a3a97109d0874ab331</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Track Manifest V3 extensions in a list</title>
<updated>2023-11-12T11:27:42+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-12T11:23:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=ff7eb76be6e8a6aa1e5ee5f3cc3efac8455e9daf'/>
<id>ff7eb76be6e8a6aa1e5ee5f3cc3efac8455e9daf</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Don't pass a callback to `chrome.tabs.reload`</title>
<updated>2023-11-12T11:23:07+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-12T11:23:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=d2aebc157aaaac786b066fe00c2abf122d4f1f0e'/>
<id>d2aebc157aaaac786b066fe00c2abf122d4f1f0e</id>
<content type='text'>
I thought this might fix the reload problem for Manifest V3 extensions,
but it did nothing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I thought this might fix the reload problem for Manifest V3 extensions,
but it did nothing.
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Ideas for reload in Manifest V3</title>
<updated>2023-11-10T23:02:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-11-10T23:02:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=3ddadb8f214c7a42c15a1bb7b9486a5a97760136'/>
<id>3ddadb8f214c7a42c15a1bb7b9486a5a97760136</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Add support for `service_worker` targets</title>
<updated>2023-02-08T19:13:58+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2023-02-08T19:13:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=b0ebff227e83dff5df8be847d2f2a5cc33410368'/>
<id>b0ebff227e83dff5df8be847d2f2a5cc33410368</id>
<content type='text'>
Begin Web Extension Manifest V3 support by recognising `service_worker`
targets in addition to `background_page`s.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Begin Web Extension Manifest V3 support by recognising `service_worker`
targets in addition to `background_page`s.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'bundle-lisp-dependencies'</title>
<updated>2022-08-25T19:38:58+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-08-25T19:38:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=7af71cad28c16c83e8cd902337c90b4dbdf0e205'/>
<id>7af71cad28c16c83e8cd902337c90b4dbdf0e205</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>option.lisp: Update copyright year</title>
<updated>2022-08-25T19:38:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-08-25T19:38:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/extreload/commit/?id=186ebc945392931844270b71ce73e3c5b1d0189a'/>
<id>186ebc945392931844270b71ce73e3c5b1d0189a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
