Skip to content

devtools.network APIs fail on first open of DevTools #438

@jethron

Description

@jethron

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.

Metadata

Metadata

Assignees

Labels

APIFor any API related issuesBugthe issue is a code defect that should be fixedEdge AddonsLabel to filter all items related to Edge AddonsTrackedthe issue is valid and tracked on our backlog.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions