@duckduckgo/content-scope-scripts
    Preparing search index...

    Class WindowsMessagingConfig

    To construct this configuration object, you need access to 3 methods

    • postMessage
    • addEventListener
    • removeEventListener

    These would normally be available on Windows via the following:

    • window.chrome.webview.postMessage
    • window.chrome.webview.addEventListener
    • window.chrome.webview.removeEventListener

    Depending on where the script is running, we may want to restrict access to those globals. On the native side those handlers window.chrome.webview handlers might be deleted and replaces with in-scope variables, such as:

    Example

    Index

    Properties

    Properties

    The methods required for communication

    platform: "windows"