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)

task

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:

  1. Set options.werrorOption = true only in DEBUG builds, to match what we do for extraWarnings.
  2. Set options.extraWarningsOption = true in non-DEBUG builds too.

Or:

  1. Hard-code options.extraWarningsOption = false in non-DEBUG. This might be the simplest fix...
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED

This ensures behavior is not affected by the extraWarnings browser pref.

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
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.

Attachment

General

Created:
Updated:
Size: