From d4f077a1819098c3de1a025ceb7c0562860ee72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Wed, 1 Jun 2022 14:57:51 +1000 Subject: [PATCH 1/3] Multiple calls to subscribe() consumes user activation --- .../consume-transient-activation.https.html | 36 +++++++++++++++++++ push-api/resources/simple_sw.js | 1 + 2 files changed, 37 insertions(+) create mode 100644 push-api/consume-transient-activation.https.html create mode 100644 push-api/resources/simple_sw.js diff --git a/push-api/consume-transient-activation.https.html b/push-api/consume-transient-activation.https.html new file mode 100644 index 00000000000000..139d595c5499d9 --- /dev/null +++ b/push-api/consume-transient-activation.https.html @@ -0,0 +1,36 @@ + + +Test that transient activation is consumed + + + + + + + + diff --git a/push-api/resources/simple_sw.js b/push-api/resources/simple_sw.js new file mode 100644 index 00000000000000..4865ebde5ad152 --- /dev/null +++ b/push-api/resources/simple_sw.js @@ -0,0 +1 @@ +// Service worker that does nothing From d035b374ad6ddf7ea4ec75a7fc8597603c29de30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Fri, 15 Dec 2023 14:10:09 +1100 Subject: [PATCH 2/3] Update push-api/resources/simple_sw.js --- push-api/resources/simple_sw.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/push-api/resources/simple_sw.js b/push-api/resources/simple_sw.js index 4865ebde5ad152..fe378fcc6431a6 100644 --- a/push-api/resources/simple_sw.js +++ b/push-api/resources/simple_sw.js @@ -1 +1,3 @@ -// Service worker that does nothing +self. onpush = ( ) => { + // does nothing... +}; From 25eb7f35e457f419d6fcb83bc70cd32528313b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Fri, 23 Feb 2024 16:36:08 -0800 Subject: [PATCH 3/3] Update push-api/resources/simple_sw.js --- push-api/resources/simple_sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push-api/resources/simple_sw.js b/push-api/resources/simple_sw.js index fe378fcc6431a6..a36af7e7d67404 100644 --- a/push-api/resources/simple_sw.js +++ b/push-api/resources/simple_sw.js @@ -1,3 +1,3 @@ -self. onpush = ( ) => { +self.onpush = ( ) => { // does nothing... };