Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger Example does not work #1236

Open
dancingbannana opened this issue Jul 22, 2024 · 1 comment
Open

Debugger Example does not work #1236

dancingbannana opened this issue Jul 22, 2024 · 1 comment

Comments

@dancingbannana
Copy link

dancingbannana commented Jul 22, 2024

Describe the bug
The debugger example gives: Unchecked runtime.lastError: Cannot access a chrome-extension:// URL of different extension.

Im pretty sure await chrome.debugger.sendCommand({ tabId }, 'Fetch.enable', { patterns: [/*...*/]}) Is exactly what causes this.
tabId comes from chrome.devtools.inspectedWindow.tabId

 
To Reproduce
Clone the repo.
Install the debugger example
Go to a website.
Click the extension
Make a network request.
Notice this prints "Unchecked runtime.lastError: Cannot access a chrome-extension:// URL of different extension"

Expected behavior
This should work

Screenshots

Screenshot 2024-07-21 at 8 52 52 PM

Anything additional here. 🌈
This does not happen with Microsoft Edge.

@oliverdunk
Copy link
Member

Do you have any other extensions installed that you could try disabling? It's possible they are adding additional content to a page that you are blocked from inspecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants