Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Nov 26, 2025

In draft so I don't accidentally merge.

Fixes #33983 (comment)
See https://issues.chromium.org/u/1/issues/462747680

Seems like chrome.devtools.panels.openResource is not actually the default behavior for the resource handler. It's erroring when trying to open URLs that don't point to Chrome Resources and not doing anything. Will bring this up with Chrome but until then we should have a workaround.

E.g. clicking on https://google.com does nothing.

Falling back to window.open in case openResource errors. https://developer.chrome.com/docs/extensions/reference/api/devtools/panels#method-openResource doesn't document the parameter to the callback but it returns an error-like object.

Test plan

  1. Load extension from CI artifact (currently disabled)
    Click on the link from console.log('https://google.com'). File links also work (e.g. console.log('file://404'))

@meta-cla meta-cla bot added the CLA Signed label Nov 26, 2025
@eps1lon eps1lon changed the title [devtools] Fix console links not being openable [DevTools] Fix console links not being openable Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant