Post

Replies

Boosts

Views

Activity

Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
@Frameworks Engineer As of 18.6.2 I'm seem this issue again. I've compiled a list of related issues below. This is a serious issue that I'm sure is breaking so many iOS Safari Web Extensions. https://github.com/alexkates/content-script-non-responsive-bug/issues/1 https://developer.apple.com/forums/thread/764594 https://developer.apple.com/forums/thread/758346 https://github.com/dessant/search-by-image/issues/325
Topic: Safari & Web SubTopic: General Tags:
Aug ’25
Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
Some additional findings... If you look through the content script code you'll see that I am calling runtime.sendMessage every 1 second which always causes the background script to crash after 30 seconds. I started to play with the 1 second interval to see if it behaved differently. Increasing it to 2 seconds caused a crash after 15 calls (also 30 seconds). Increasing the interval to 3 seconds caused a crash after 10 calls (also 30 seconds). Increasing to 4 seconds causes the background script to behave how I'd expect... that is it never crashes and is able to respond to the sendMessage request forever.
Topic: Safari & Web SubTopic: General Tags:
Jun ’24