### Website or app

reactjs.org

### Repro steps

1. Install React DevTools v4.20.0 in Firefox
2. Load reactjs.org in Firefox
3. Open Firefox DevTools
4. Observe error in console

![image](https://user-images.githubusercontent.com/1271509/137547605-e6ad3045-c20a-4828-9895-af46b8bb4db1.png)


### How often does this bug happen?

Every time

return new Promise(resolve => {
    chrome.runtime.sendMessage(
      extensionId,
      EXTENSION_INSTALL_CHECK,
      response => {
        if (__DEBUG__) {
          console.log(
            'checkForDuplicateInstallations: Duplicate installation check responded with',
            {
              response,
              error: chrome.runtime.lastError?.message,
              currentExtension: EXTENSION_INSTALLATION_TYPE,
              checkingExtension: extensionId,
            },
          );
        }
        if (chrome.runtime.lastError != null) {
          resolve(false);
        } else {
          resolve(true);
        }
      },
    );
  });
}