unhandledrejection doesn't work correctly in content scripts
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: miika9764, Unassigned)
Details
Attachments
(1 file)
|
1.83 KB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
- Installed the extension in the ext directory at https://github.com/siikamiika/firefox-unhandledrejection-addon-bug
- Opened index.html in the page directory
- Clicked the "Trigger unhandledrejection" and "Trigger unhandledrejection from extension" buttons
Actual results:
Got the alert
"Caught unhandledrejection in extension: ReferenceError: somethingStupid is not defined"
and the text
"Received unhandledrejection: ReferenceError: somethingStupid is not defined"
to the page when clicking "Trigger unhandledrejection", but nothing from the "Trigger unhandledrejection from extension" button.
Expected results:
I shouldn't have gotten an alert from the first button, and the second button should have alerted "Caught unhandledrejection in extension: unhandledrejection from extension". For example Chrome behaves this way.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•2 years ago
|
Comment 1•1 year ago
|
||
The same bug exists for the "error" event listener as well.
Tested on Firefox 134.0 (aarch64)
Description
•