From 7d9c4872137c031e5385d07df429f3ed4341301d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Wed, 9 Oct 2024 15:34:19 +0200 Subject: [PATCH] v10.0.13 - disabled pwa service worker in yet an attempt to address reporterd Chrome v129 memory issue --- HISTORY.md | 4 ++++ snap.html | 2 ++ src/gui.js | 2 +- sw.js => sw_deactivated.js | 6 +++++- 4 files changed, 12 insertions(+), 2 deletions(-) rename sw.js => sw_deactivated.js (99%) diff --git a/HISTORY.md b/HISTORY.md index ff91a0c62..a58da392f 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,10 @@ ## in development: +## 10.0.13: +* **Notable Changes:** + * disabled pwa service worker in yet an attempt to address reporterd Chrome v129 memory issue + ## 10.0.12: * **New Features:** * added extensions to access the "Thread safe scripts" setting diff --git a/snap.html b/snap.html index 5bf791f89..ecc27c2fa 100755 --- a/snap.html +++ b/snap.html @@ -55,9 +55,11 @@ ); }; + /* if ('serviceWorker' in navigator) { navigator.serviceWorker.register('sw.js'); } + */ world = new WorldMorph(document.getElementById('world')); new IDE_Morph().openIn(world); requestAnimationFrame(loop); diff --git a/src/gui.js b/src/gui.js index 1016739f7..3d924f9ef 100644 --- a/src/gui.js +++ b/src/gui.js @@ -91,7 +91,7 @@ modules.gui = '2024-October-09'; // Declarations -var SnapVersion = '10.0.12'; +var SnapVersion = '10.0.13'; var IDE_Morph; var ProjectDialogMorph; diff --git a/sw.js b/sw_deactivated.js similarity index 99% rename from sw.js rename to sw_deactivated.js index 7e1d9e82a..99f0d94a1 100644 --- a/sw.js +++ b/sw_deactivated.js @@ -1,4 +1,8 @@ -var snapVersion = '10.0.12', +/* + the PWA service worker is currently not used because of a memory leak + issue introduced in Chrome v129 +*/ +var snapVersion = '10.0.12', // disabled in v10.0.11-13 cacheName = `snap-pwa-${snapVersion}`, filesToCache = [ 'snap.html',