[Webkit-unassigned] [Bug 262383] Safari web extension background script becomes unresponsive in Safari 17, macOS 14.0 Sonoma
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 3 06:03:44 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=262383
--- Comment #3 from punk.salt2200 at fastmail.com ---
(In reply to Karl Dubost from comment #2)
> @punk.salt2200,
> thanks for the report and all elements giving context.
>
> Without the code of the extension or a reduced test case reproducing the
> issue that will probably be impossible to diagnose and fix.
Thanks—yeah, that's fair. I'll see if I can create a reduced test case.
I did discover a couple additional things as I debugged further.
The first is that the amount of time the background script stays "alive" for is quite consistent—just under 8 minutes. After that, it dies/goes away.
I also discovered that by calling `runtime.sendMessage` on an interval from the content script, and sending an arbitrary response back from the background script, I can keep the background script alive. I recognize that's more of a workaround than an actual fix, but it does seem to work.
One final point of note: this issue seems similar to a pair of issues that have plagued Chrome for some time now:
- https://bugs.chromium.org/p/chromium/issues/detail?id=1271154
- https://bugs.chromium.org/p/chromium/issues/detail?id=1316588
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231003/425d3181/attachment-0001.htm>
More information about the webkit-unassigned
mailing list