Closed
Bug 1568546
Opened 5 years ago
Closed 5 years ago
Self-hosting werror + extraWarnings can cause browser crashes
Categories
(Core :: JavaScript Engine, task, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla70
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(1 file)
In FillSelfHostingCompileOptions
we set werrorOption = true
unconditionally but extraWarningsOption = true
only in DEBUG builds. This can cause weird crashes if people enable javascript.options.strict. Bug 1567902 is one instance of this but to fix the root cause we should either:
- Set
options.werrorOption = true
only in DEBUG builds, to match what we do for extraWarnings. - Set
options.extraWarningsOption = true
in non-DEBUG builds too.
Assignee | ||
Comment 1•5 years ago
|
||
Or:
- Hard-code
options.extraWarningsOption = false
in non-DEBUG. This might be the simplest fix...
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•5 years ago
|
||
This ensures behavior is not affected by the extraWarnings browser pref.
Updated•5 years ago
|
status-firefox70:
--- → affected
Priority: -- → P1
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f7849cfe656 Set extraWarningsOption to true in FillSelfHostingCompileOptions in non-debug builds too. r=anba
Comment 4•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in
before you can comment on or make changes to this bug.
Description
•