Lightpanda: the headless browser designed for AI and automation
immediately check for active worker
Karl Seguinc876be0d4a9d
diff --git a/src/browser/webapi/ServiceWorkerContainer.zig b/src/browser/webapi/ServiceWorkerContainer.zigindex 192f6a197..b2799ed8d 100644--- a/src/browser/webapi/ServiceWorkerContainer.zig+++ b/src/browser/webapi/ServiceWorkerContainer.zig@@ -160,6 +160,11 @@ fn track(self: *ServiceWorkerContainer, scope: *ServiceWorkerGlobalScope) !*Servconst registration = try ServiceWorkerRegistration.init(scope, self, &frame.js.execution);errdefer registration.detach();try self._registrations.append(frame.arena, registration);++ if (scope.hasActiveWorker()) {+ self.workerActivated();+ }+return registration;}