New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 740404 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 837401
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

"Errors" dialog label and "Collect errors" label in chrome://extensions are a bit confusing

Reported by behindth...@gmail.com, Jul 10 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. Create an extension that adds a chrome.runtime.onInstalled listener. The listener should call console.log()
2. Install the extension as an unpacked extension.

What is the expected behavior?
There should be no errors reported in the Collect Errors dialog on the Extension page.

What went wrong?
There is an error reported in the Collect Errors dialog on the Extension page. The error message is the text that was passed to console.log()

Did this work before? N/A 

Chrome version: 61.0.3152.0  Channel: canary
OS Version: 10.0
Flash Version: 

The attachment is a sample extension to demonstrate the error.
 
Chrome bug test.zip
536 bytes Download
Labels: Needs-Feedback
Tested this issue using #59.0.3071.115 on Win 10. and did not obsevre any errors in the Collect Errors page as per the steps mentioned in Comment #0.

@behindthemath: Could you please find the attched screen cast and let us know if we missed any steps from our end. If possible please add a expected screen cast for further triaging of the issue.

Thanks!!
Jul 9 2017 11-15 PM.webm
2.8 MB View Download

Comment 2 by woxxom@gmail.com, Jul 10 2017

The "errors" dialog was always doing it. Sometimes it's useful, so a practical solution is to rename the label to "errors and messages".

Comment 3 by alph@chromium.org, Jul 10 2017

Components: -Platform>DevTools Platform>Extensions
@sandeepkumars, it appears from that screen cast that you're using Chrome Stable. This issue only occurs on dev builds (I was using Canary). This is because the issue is not with the standard console on the background page, but rather with the Collect Errors dialog that is launched by clicking the Errors link on the Extension page. This feature is only available in dev builds.

@woxxom, that's a good suggestion. I didn't realize this might have been by design. If yes, there should be some documentation about it. I was actually unable to find any documentation about this at all.
Project Member

Comment 5 by sheriffbot@chromium.org, Jul 11 2017

Cc: sandeepkumars@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Triage-M61

Comment 7 by ajha@chromium.org, Jul 18 2017

Somehow, didn't observe the Collect Errors for the above extension attached on the chrome version: 61.0.3152.0.
740404.png
130 KB View Download
@a... It looks from your screenshot that you're using Chromium Stable. As I mentioned in #4, I believe that the Collect Errors feature is only available in dev builds.
Labels: -Needs-Triage-M61 M-61
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue(as in attached screen shot) on Win-10 using chromium reported version #61.0.3152.0 and latest chromium version #61.0.3161.0.

This is a non-regression issue as it is observed from M58 old builds. 
Note: The extension doesn't get installed in builds older than M58.

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
console_error.JPG
145 KB View Download
@krajshree The reason it doesn't install in builds earlier than v58 is because I mistakenly put in the "minimum_chrome_version": "58" option in the manifest.
Here's a sample without it, that should work on all versions.
Chrome bug test.zip
517 bytes Download
Labels: -OS-Windows -Pri-2 OS-All Pri-3
Status: Available (was: Untriaged)
Summary: "Errors" dialog label and "Collect errors" label in chrome://extensions are a bit confusing (was: Calling console.log() in a chrome.runtime.onInstalled listener throws an error in the Collect Errors dialog on the Extensions page)
@woxxom's https://bugs.chromium.org/p/chromium/issues/detail?id=740404#c2 is the correct explanation.

I'm going to rename this bug to consider renaming the dialog and checkbox label to point out that this refers to messages/logs and errors.

@behindthemath, your suggestion about documentation sounds good, where do you think in https://developer.chrome.com/extensions would be a good place to put this?

Two issues to summarize:
1. "Errors" dialog label is a bit misleading, it shows logs (console.log) beside any errors. Perhaps rename them to reflect that?: e.g. "Logs and errors". Similarly "Collect errors" checkbox label can be renamed.
2. We should document this somewhere in https://developer.chrome.com/extensions

Though I can guess it will be low priority to fix...
@lazyboy Thank you for the clarification.

How about putting a note on the Debugging Tutorial page (https://developer.chrome.com/extensions/tut_debugging) about this feature?
Something along the lines of, "To aid in debugging, you can use a dev build of Chrome, which has a Logs and Errors feature", with some more detail about how it works.
Mergedinto: 837401
Status: Duplicate (was: Available)
Should probably be fixed now. Refer  issue 837401 .

Sign in to add a comment