When should I start a native message host when targeting both Google Chrome and Edge Chromium?
问题 I have a Google Chrome Extension which uses a native host. This is used only on a windows box and the extension's registry settings are added along with the installation of the native host exe. Currently the the port (chrome.runtime.connectNative) or native host is started when the extensions background script is loaded. This currently means that the native host runs whenever Google Chrome is running. The extension is used for only 1 website "www.example.com" and so content scripts only run