Closed
Bug 1568546
Opened 7 years ago
Closed 7 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 = trueonly in DEBUG builds, to match what we do for extraWarnings. - Set
options.extraWarningsOption = truein non-DEBUG builds too.
| Assignee | ||
Comment 1•7 years ago
|
||
Or:
- Hard-code
options.extraWarningsOption = falsein non-DEBUG. This might be the simplest fix...
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•7 years ago
|
||
This ensures behavior is not affected by the extraWarnings browser pref.
Updated•7 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•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in
before you can comment on or make changes to this bug.
Description
•