Originally created by: Shreyans-704
Closes [#1236]
Fix the debugger sample to prevent the runtime error:
"Unchecked runtime.lastError: Cannot access a chrome-extension:// URL of different extension."
The current implementation uses Fetch.enable without restricting URL patterns, causing it to intercept all requests — including chrome-extension:// URLs.
Chrome does not allow extensions to access resources of other extensions, which leads to the runtime error when such requests are intercepted.
Restrict Fetch.enable to only intercept valid web requests (http and https) by updating the URL patterns:
javascript
patterns: [
{ urlPattern: 'http:///*' }
]