ExtendableCookieChangeEvent: ExtendableCookieChangeEvent() constructor
  
  
   
   The ExtendableCookieChangeEvent() constructor creates a new ExtendableCookieChangeEvent object which is the event type passed to ServiceWorkerRegistration.oncookiechange(). This constructor is called by the browser when a change event occurs.
   
    Note: This event constructor is generally not needed for production websites. It's primary use is for tests that require an instance of this event.
    
   
  Syntax
  
   
    
    new ExtendableCookieChangeEvent(type)
new ExtendableCookieChangeEvent(type, options)
    
   
  Parameters
  
   
    - 
     type
- 
     A string with the name of the event. It is case-sensitive and browsers always set it to cookiechange.
 
- optionsOptional
- 
     An object that, in addition of the properties defined in ExtendableEvent(), can have the following properties:
 
      - 
       changed
- 
       An array containing a changed cookie. 
- 
       deleted
- 
       An array containing a deleted cookie. 
 
 
  Return value
  
  Specifications
  
  Browser compatibility
  
   
    
     
      
       |  | Desktop | Mobile | 
      
       |  | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | 
     
     
      
       | ExtendableCookieChangeEvent | 87 | 87 | No | No | 73 | No | 87 | 87 | No | 62 | No | 14.0 |