Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exceptions are printed twice in Firefox #1549

Closed
jamesderlin opened this issue Apr 30, 2020 · 1 comment
Closed

Uncaught exceptions are printed twice in Firefox #1549

jamesderlin opened this issue Apr 30, 2020 · 1 comment
Labels
area-error-messaging closed-duplicate Closed in favor of an existing report P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) type-polish
Milestone

Comments

@jamesderlin
Copy link

What happened?

In Firefox, uncaught exceptions are printed to the console twice and look confusing.

Steps to reproduce problem

Run:

void main() {
  throw Exception('hello');
}

In Firefox, the console shows:

: Exception: helloError: Exception: hello

This is fine in Chrome, however:

Uncaught Error: Exception: hello

Browser

Browser: Firefox 75.0 (64-bit)

Are you using any extensions/plugins that affect website behavior
(particularly those that affect iframes, such as ad blockers)?

No, I verified with a clean profile.

Are there any warnings or errors in your browser's JavaScript console?
If so, paste them below:

: Exception: hello frame_dark.html line 38 > scriptElement:340:17
    wrapException https://dartpad.dartlang.org/scripts/frame_dark.html line 38 > scriptElement:340
    main https://dartpad.dartlang.org/scripts/frame_dark.html line 38 > scriptElement:923
    <anonymous> https://dartpad.dartlang.org/scripts/frame_dark.html line 38 > scriptElement:1183
    <anonymous> https://dartpad.dartlang.org/scripts/frame_dark.html line 38 > scriptElement:1167
    dartProgram https://dartpad.dartlang.org/scripts/frame_dark.html line 38 > scriptElement:1178
    <anonymous> https://dartpad.dartlang.org/scripts/frame_dark.html line 38 > scriptElement:1185
    replaceJavaScript https://dartpad.dartlang.org/scripts/frame_dark.html:38
    messageHandler https://dartpad.dartlang.org/scripts/frame_dark.html:54

Machine

Operating system: Linux

@RedBrogdon RedBrogdon added P2 A bug or feature request we're likely to work on type-polish labels May 7, 2020
@RedBrogdon RedBrogdon added this to the Backlog milestone May 7, 2020
@johnpryan johnpryan added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Oct 5, 2022
@parlough
Copy link
Member

Thanks for the issue! It seems this is still occurring, but as we are trying to make it easier to identify important and still relevant issues, I'm going to consolidate this issue in to #3008. Thanks again :D

@parlough parlough closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
@parlough parlough added the closed-duplicate Closed in favor of an existing report label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-error-messaging closed-duplicate Closed in favor of an existing report P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) type-polish
Projects
None yet
Development

No branches or pull requests

4 participants