New issue
Advanced search Search tips

Issue 764640 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

RFE: Clearer error message when script attempts to access missing extension

Reported by khym.cha...@gmail.com, Sep 13 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36

Steps to reproduce the problem:
1. Set policy EnableMediaRouter to false (or otherwise prevent the media router extension from being loaded) and restart the browser.
2. Go to YouTube and play any video.

What is the expected behavior?

What went wrong?
If developers tools is closed when the video page is loaded you'll get errors like:

> Failed to load resource: net::ERR_FAILED chrome-extension://invalid/

If developers tools is open when the page is loaded the errors will be like

> GET chrome-extension://invalid/ net::ERR_FAILED chrome-extension://invalid/:1

or

> GET chrome-extension://invalid/ net::ERR_FAILED remote.js:10

The net::ERR_XYZ errors are misleading because the script is looking for a local resource rather than trying to load something over HTTP or FTP.  The particular error "GET chrome-extension://invalid/ net::ERR_FAILED chrome-extension://invalid/:1" because the "chrome-extension://invalid/:1" makes it sound like the error happened inside of the missing extension.

Did this work before? No 

Chrome version: 61.0.3163.79  Channel: stable
OS Version: Fedora 25
Flash Version: Shockwave Flash 26.0 r0
 

Comment 1 by woxxom@gmail.com, Sep 13 2017

Bisect info: 485492 (good) - 485495 (bad) 
https://chromium.googlesource.com/chromium/src/+log/a87cc6b7..7385c63e?pretty=fuller
Suspecting r485494 "[Extensions] Change renderer-side web accessible resource determination"
Landed in 61.0.3155.0
Components: -Blink Platform>Extensions
Owner: rdevlin....@chromium.org
Status: Assigned (was: Unconfirmed)
Over to rdevlin.cronin@ to triage.

Sign in to add a comment