From 39287fe3f1d01647b865b404a4af0b0a97374c8d Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Tue, 2 Jan 2024 11:28:32 -0500 Subject: [PATCH] Fix inactive document check for `{{Window}}` only --- spec.bs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/spec.bs b/spec.bs index 256920e..505f078 100644 --- a/spec.bs +++ b/spec.bs @@ -188,8 +188,8 @@ The signal getter steps are to
The next(|value|) method steps are: - 1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully - active=], then return. + 1. If [=this=]'s [=relevant global object=] is a {{Window}} object, and its [=associated + Document=] is not [=Document/fully active=], then return. 1. If [=this=]'s [=Subscriber/next callback=] is non-null, [=invoke=] this's [=Subscriber/next callback=] with |value|. @@ -201,8 +201,8 @@ The signal getter steps are to
The error(|error|) method steps are: - 1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully - active=], then return. + 1. If [=this=]'s [=relevant global object=] is a {{Window}} object, and its [=associated + Document=] is not [=Document/fully active=], then return. 1. Let |callback| be [=this=]'s [=Subscriber/error callback=]. @@ -221,8 +221,8 @@ The signal getter steps are to
The complete() method steps are: - 1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully - active=], then return. + 1. If [=this=]'s [=relevant global object=] is a {{Window}} object, and its [=associated + Document=] is not [=Document/fully active=], then return. 1. Let |callback| be [=this=]'s [=Subscriber/complete callback=]. @@ -239,8 +239,8 @@ The signal getter steps are to
The addTeardown(|teardown|) method steps are: - 1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully - active=], then return. + 1. If [=this=]'s [=relevant global object=] is a {{Window}} object, and its [=associated + Document=] is not [=Document/fully active=], then return. 1. If [=this=]'s [=Subscriber/active=] is true, then [=list/append=] |teardown| to [=this=]'s [=Subscriber/teardown callbacks=] list. @@ -382,8 +382,8 @@ can be passed in by natively-constructed {{Observable}}s. The subscribe(|observer|, |options|) method steps are: - 1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully - active=], then return. + 1. If [=this=]'s [=relevant global object=] is a {{Window}} object, and its [=associated + Document=] is not [=Document/fully active=], then return. 1. Let |nextCallback|, |errorCallback|, and |completeCallback| all be null. @@ -430,8 +430,8 @@ can be passed in by natively-constructed {{Observable}}s. 1. [=list/For each=] |teardown| of |subscriber|'s [=Subscriber/teardown callbacks=] sorted in reverse insertion order: - 1. If |subscriber|'s [=relevant global object=]'s [=associated Document=] is not - [=Document/fully active=], then abort these steps. + 1. If |subscriber|'s [=relevant global object=] is a {{Window}} object, and its + [=associated Document=] is not [=Document/fully active=], then abort these steps. Note: This step runs repeatedly because each |teardown| could result in the above {{Document}} becoming inactive.