developer.chrome.com icon indicating copy to clipboard operation
developer.chrome.com copied to clipboard

Chrome Extension Error Page is Blank

Open cyberjj999 opened this issue 4 years ago • 10 comments

⚠️ This is for issues with the https://developer.chrome.com site, not Chromium itself. If you want to file a bug with Chromium (the open-source project behind Google Chrome and other browsers), please use https://crbug.com.

Describe the bug While developing several chrome extensions, there bound to be some syntax errors, invalid URL error etc.

In chrome://extensions, such errors are usually flagged out under the 'Errors' button with the erroneous code highlighted. However, recently I realized clicking on the 'Errors' button lead to a blank page without any message at all. Refreshing, updating, or reloading the chrome extension doesn't seem to fix this issue all the time.

To Reproduce Steps to reproduce the behavior:

  1. Enable developer mode on chrome://extensions
  2. Load unpacked extension folder (ensure your javascript files have some errors)
  3. Errors will occur when you interact with the chrome extension (i.e. when you click on your chrome extension)
  4. Click on the 'Errors' button in chrome://extensions

Expected behavior The error message should be shown clearly along with the highlighted line of code that caused the error

Screenshots Error detected by Chrome image No error message showing up - only a blank screen image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 100.0.4896.127 (Official Build) (64-bit)

Additional context This error occurred to numerous chrome extensions, so it is unlikely a code issue.

cyberjj999 avatar Apr 23 '22 04:04 cyberjj999

Please use https://crbug.com/new to file issues related to the Chrome browser's behavior or developer interfaces. This repo is just for content issues related to the https://developer.chrome.com/ website.

jeffposnick avatar Apr 25 '22 20:04 jeffposnick

This is the only page I found on Google, that described this bug. Why not just post a solution?

1g0rrr avatar Jun 01 '22 08:06 1g0rrr

I don't know about everyone else, but in my case it was because one of the errors didn't have a source url set. I found this by looking at the console while on the error page. I then set a breakpoint on the code at the point of error, and supplied a dummy url for the source. This allowed the page to load so that I could clear that bad error message.

pkolenic avatar Jul 22 '22 17:07 pkolenic

Still occuring.

olafdemol avatar Jul 28 '22 09:07 olafdemol

Been happening since I last updated to a Version 103.0.5060.134 (Official Build) (64-bit) few days ago

Ephellon avatar Aug 01 '22 09:08 Ephellon

found a temporary solution, if you have any background.js file type anything that will make an obvious error like "auksgaksbd/" and update the extension, and press error button and it should show all the errors now :)

Chillszz avatar Aug 12 '22 07:08 Chillszz

@Chillszz thank you!

Looks like after that you can just keep the error page opened and you don't need "auksgaksbd/" anymore.

Smileek avatar Aug 25 '22 09:08 Smileek

I have been suggesting that it is an Invalid URL in the source code but the devs won't try a simple edit to see if that will fix it. Will anyone who would like to see this issue resolved, please, help me out? If so, access the Chromium bugs page at:

https://bugs.chromium.org/p/chromium/issues/detail?id=1257170

Scroll to the bottom of the page. Read my post, [Comment 35]

Click on Star this issue instead of commenting "+1 Me too!" to add a vote and get notifications.

Thanks

m32b64 avatar Oct 12 '22 16:10 m32b64

woxxom's workaround from https://bugs.chromium.org/p/chromium/issues/detail?id=1257170#c13 works by monkey-patching the URL class to not throw an exception when href is empty:

  1. if you already clicked Errors, close this tab because its script has already crashed
  2. open chrome://extensions
  3. right-click > Inspect > Console
  4. Paste this into the console and press the Enter key: URL=class extends URL { constructor(href, ...rest) { super(href || 'dummy://', ...rest) } }
  5. click Errors in your extension's card

pmarks-net avatar Nov 13 '22 04:11 pmarks-net

woxxom's workaround from https://bugs.chromium.org/p/chromium/issues/detail?id=1257170#c13 works by monkey-patching the URL class to not throw an exception when href is empty:

  1. if you already clicked Errors, close this tab because its script has already crashed
  2. open chrome://extensions
  3. right-click > Inspect > Console
  4. Paste this into the console and press the Enter key: URL=class extends URL { constructor(href, ...rest) { super(href || 'dummy://', ...rest) } }
  5. click Errors in your extension's card

do you know how this works?

Chillszz avatar Nov 15 '22 01:11 Chillszz