Requests initialSetup 
/**  * Example of the `InitialSetupResponse`  *  *  @type   {import("../../types/new-tab.js").InitialSetupResponse}  */ // prettier-ignore const   initialSetupResponse  = {      widgets:  [         {  id:   'updateNotification'  },         {  id:   'rmf'  },         {  id:   'favorites'  },         {  id:   'privacyStats'  }     ],      widgetConfigs:  [         {  id:   'rmf' ,  visibility:   'visible'  },         {  id:   'nextSteps' ,  visibility:   'visible'  },         {  id:   'favorites' ,  visibility:   'visible'  },         {  id:   'privacyStats' ,  visibility:   'visible'  },     ],      env:   'production' ,      locale:   'en' ,      platform:  {  name:   'windows'  },      updateNotification:  {  content:   null  },      customizer:  {          theme:   'system' ,          userImages:  [],          userColor:   null ,          background:  {  kind:   'default'  },          defaultStyles:  {              lightBackgroundColor:   '#E9EBEC' ,              darkBackgroundColor:   '#27282A' ,         },     }, }; 
Copy  
Notifications 
 "NewTab Messages".ContextMenuNotification  
Sent when the user right-clicks in the page 
Note: Other widgets might prevent this (and send their own, eg: favorites) 
Sends:  "NewTab Messages".ContextMenuNotify  
DEPRECATED : The visibilityMenuItems property is deprecated and will be removed in a future version. Native apps should populate the context menu themselves instead of relying on frontend to tell it what widgets exist in the New Tab Page. 
Example: 
 
{    "visibilityMenuItems" : [     {        "id" :  "favorites" ,        "title" :  "Favorites"     },     {        "id" :  "privacyStats" ,        "title" :  "Privacy Stats"     }   ] } 
Copy  
open 
{    "target" :  "settings" } 
Copy  
telemetryEvent 
{    "attributes" : {      "name" :  "stats_toggle" ,      "value" :  "show_more"   } } 
Copy  
reportInitException 
reportPageException