chrome-extensions-samples
chrome-extensions-samples copied to clipboard
Clicking on the error button is invalid
Describe the bug The page did not jump after clicking Errors button.
To Reproduce
- Enter the code into the serviceworker file:
const num = 0;
num++;
- Extension show Errors button
- Click Errors button the page didn't show errors detail
- The Errors button didn't disappear when I fix the obvious bug and refresh extension
Expected behavior When I click on Errors I can display the details
Screenshots The link has changed but no error details are displayed
Notes
This issue is triggered by a specific error. If I use chrome.action
and don't declare the action in the manifest, the Errors button appears, but I can click it to see the details normally. And when I reassign a constant to a constant, the Errors button shows but cannot be clicked; to get rid of the Errors button, I must remove the plugin, update the code, and then load the plugin again.
Describe the bug The page did not jump after clicking Errors button.
To Reproduce
- Enter the code into the serviceworker file:
const num = 0; num++;
- Extension show Errors button
- Click Errors button the page didn't show errors detail
- The Errors button didn't disappear when I fix the obvious bug and refresh extension
Expected behavior When I click on Errors I can display the details
Screenshots The link has changed but no error details are displayed
Notes This issue is triggered by a specific error. If I use
chrome.action
and don't declare the action in the manifest, the Errors button appears, but I can click it to see the details normally. And when I reassign a constant to a constant, the Errors button shows but cannot be clicked; to get rid of the Errors button, I must remove the plugin, update the code, and then load the plugin again.
I've had an issue where the error would keep showing up if I had caused type errors or in general had bad error handling.
If the extension works regularly with valid code, it shouldn't have this issue.
Also, is there a reason you are incrementing a non mutable value?
Thank you for the report, but this is a repo for the samples being provided. Please report issues with Chrome on crbug.com