File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 574
574
The < dfn > subscribe()dfn > method when invoked MUST run the following steps:
575
575
p >
576
576
< ol class ="algorithm ">
577
- < li > If the [=relevant global object=] of [=this=] does not have [=transient activation=],
578
- return [=a promise rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.
577
+ < li > Let |global| be the [=relevant global object=] of [=this=].
579
578
li >
580
- < li > [=Consume user activation=] of [=this=]'s [=relevant global object=].
579
+ < li > If |global| is a {{Window}} object:
580
+ < ol >
581
+ < li > If |global| does not have [=transient activation=], return [=a promise rejected
582
+ with=] with a {{"NotAllowedError"}} {{DOMException}}.
583
+ li >
584
+ < li > [=Consume user activation=] of |global|.
585
+ li >
586
+ ol >
581
587
li >
582
588
< li > Let |promise| be < a > a new promisea > .
583
589
li >
584
- < li > Let |global| be [=this=]' [=relevant global object=].
585
- li >
586
590
< li > Return |promise| and continue [=in parallel=].
587
591
< aside class ="note " title ="Validation order can vary across user agents ">
588
592
< p >
You can’t perform that action at this time.
0 commit comments