Incoming Messages

The Dashboard receives data from Windows by registering a listener on window.chrome.webview

globalThis.windowsInteropAddEventListener('message', (event) => handleViewModelUpdate(event.data))

Tip: See "Windows integration".handleIncomingMessage for details of supported messages.

Outgoing messages

When the dashboard needs to communicate back to the Windows application, it will do so in the following way...

globalThis.windowsInteropPostMessage({
Feature: 'PrivacyDashboard',
Name: name,
Data: data
})

... where name will be one of the known message names, such as "AddToAllowListCommand". See "JavaScript -> Windows Messages OpenInNewTab" below for documented messages.

Functions

backgroundMessage
fetch
firstRenderComplete
getBackgroundTabData
OpenInNewTab
OpenSettings
SetPermissionCommand
SetSize
setup
SubmitBrokenSiteReport

JavaScript -> Windows Messages

AddToAllowListCommand
CloseCommand
RemoveFromAllowListCommand

Windows -> JavaScript Messages

handleIncomingMessage