-
Notifications
You must be signed in to change notification settings - Fork 149
Description
In an extension using a custom devtools panel in MS Edge 142.0.3595.65, calling chrome.devtools.network.getHAR() produces/logs a Permission Denied error object instead of a HAR object:
{"code":"E_FAILED","description":"Operation failed: %s","details":["Permission denied"],"isError":true}chrome.devtools.network.onRequestFinished.addListener also fails.
Closing/reopening DevTools and reopening the custom panel resolves the issue and the APIs then work properly, until Edge itself is restarted, where the first run of DevTools and opening the panel reverts to the failure state until DevTools is restarted again. The same occurs when loading the extension as unpacked.
With the same extension in Chromium, Chrome, and Firefox, the devtools.network APIs work straight away without needing a restart. No documentation I can find for these API says they can fail or require any permissions that could be denied.