Closed
Bug 1027157
Opened 10 years ago
Closed 10 years ago
Some warnings show up as "errors" in the console due to using JSEXN_TYPEERROR or JSEXN_SYNTAXERROR, etc
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: fitzgen, Assigned: fitzgen)
References
Details
Attachments
(2 files)
61.92 KB,
image/png
|
Details | |
8.09 KB,
patch
|
Waldo
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Despite each of these messages always being logged as a warning, they use error types rather than warning types. We should make them into proper warnings because right now they look like full on errors and it is confusing because they don't actually halt JS execution.
http://dxr.mozilla.org/mozilla-central/source/js/src/js.msg#263
http://dxr.mozilla.org/mozilla-central/source/js/src/js.msg#356
http://dxr.mozilla.org/mozilla-central/source/js/src/js.msg#400
Assignee | ||
Comment 1•10 years ago
|
||
Jeff, what's the best way to do this? Can we just create JSEXN_SYNTAXWARN, etc or something like that?
Flags: needinfo?(jwalden+bmo)
Comment 2•10 years ago
|
||
So I think just changing the error type to JSEXN_NONE is the short-term fix here. Longer-term, we need to actually have a warning mechanism not conflated with the error/exception mechanism.
Flags: needinfo?(jwalden+bmo)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•10 years ago
|
||
This just switches to JSEXN_NONE.
Attachment #8443096 -
Flags: review?(jwalden+bmo)
Assignee | ||
Comment 4•10 years ago
|
||
Updated•10 years ago
|
Attachment #8443096 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•10 years ago
|
status-firefox30:
--- → affected
status-firefox31:
--- → affected
status-firefox32:
--- → affected
status-firefox33:
--- → affected
Comment 5•10 years ago
|
||
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Nick: do you think we should uplift this fix to Aurora 32 or even Beta 31? This is a small fix and the bug may confuse to web developers, especially when they are using third-party JS libraries that cause these "errors".
These warnings were introduced in Firefox 30 (bug 948227), so fixing Beta 31 would soon correct this confusion about bogus TypeErrors.
Blocks: 948227
Flags: needinfo?(nfitzgerald)
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Chris Peterson (:cpeterson) from comment #6)
> Nick: do you think we should uplift this fix to Aurora 32 or even Beta 31?
> This is a small fix and the bug may confuse to web developers, especially
> when they are using third-party JS libraries that cause these "errors".
>
> These warnings were introduced in Firefox 30 (bug 948227), so fixing Beta 31
> would soon correct this confusion about bogus TypeErrors.
Yes I do.
I was going to wait for the patch to land on m-c before requesting approval. Pretty simple patch though, definitely shouldn't break anything.
Flags: needinfo?(nfitzgerald)
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8443096 [details] [diff] [review]
warnings-not-errors.patch
Approval Request Comment
[Feature/regressing bug #]: Bug 948227, among others
[User impact if declined]: Warnings show up as errors in the console, which is lying to the user and can be confusing when you notice your JS execution doesn't actually halt and no exception gets thrown.
[Describe test coverage new/current, TBPL]: Has been on m-c for a while now, no issues.
[Risks and why]: Very little risk. Literally just changing JSEXN_SOMEKINDOFERROR to JSEXN_NONE so that it isn't reported as an error.
[String/UUID change made/needed]: None.
Attachment #8443096 -
Flags: approval-mozilla-beta?
Attachment #8443096 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Updated•10 years ago
|
Attachment #8443096 -
Flags: approval-mozilla-beta?
Attachment #8443096 -
Flags: approval-mozilla-beta+
Attachment #8443096 -
Flags: approval-mozilla-aurora?
Attachment #8443096 -
Flags: approval-mozilla-aurora+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 10•10 years ago
|
||
checkin-needed is not needed. approval-mozilla-* is enough.
Keywords: checkin-needed
Assignee | ||
Comment 11•10 years ago
|
||
My bad! Thanks!
Comment 12•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•