File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -626,22 +626,18 @@ <h3>
626626        global task=] on the [=networking task source=] using |global| to [=reject=] |promise| with
627627        an {{"InvalidStateError"}} {{DOMException}} and terminate these steps.
628628        </ li > 
629-         < li > Let |sw| be |registration|'s [=service worker registration/active worker=].
630-         </ li > 
631629        < li > Let |permission| be [=request permission to use=] "push".
632630        </ li > 
633631        < li > If |permission| is {{PermissionState/"denied"}}, [=queue a global task=] on the [=user
634632        interaction task source=] using |global| to [=reject=] |promise| with a
635633        {{"NotAllowedError"}} {{DOMException}} and terminate these steps.
636634        </ li > 
637-         < li > If |sw| is already subscribed, run the following sub-steps :
635+         < li > If |registration| has a  < a > push subscription </ a > :
638636          < ol > 
639-             < li > Try to retrieve the < a > push subscription</ a >  associated with the |sw|. If there is
640-             an error, [=queue a global task=] on the [=networking task source=] using |global| to
641-             [=reject=] |promise| with an {{"AbortError"}} {{DOMException}} and terminate these
642-             steps.
643-             </ li > 
644-             < li > Let |subscription| be the < a > push subscription</ a >  associated with |sw|.
637+             < li > Let |subscription| be the result of obtaining |registration|'s < a > push
638+             subscription</ a > . If there is an error, [=queue a global task=] on the [=networking
639+             task source=] using |global| to [=reject=] |promise| with an {{"AbortError"}}
640+             {{DOMException}} and terminate these steps.
645641            </ li > 
646642            < li > Compare the |options| argument with the `options` attribute of |subscription|. The
647643            contents of {{BufferSource}} values are compared for equality rather than
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments