Closed Bug 1170550 Opened 9 years ago Closed 9 years ago

Crash in ServiceWorkerRegisterJob::ContinueInstall when registering a service worker which has a syntax error caused by a strict mode violation

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Such scripts will run into their error way later than normal syntax errors, under a stack like this: https://pastebin.mozilla.org/8835424

But also, scriptloader::LoadMainScript would return true, and we mark the worker private as successfully executed its script in CompileScriptRunnable::WorkerRun(), but later on, we crash like this https://pastebin.mozilla.org/8835425 because we fail to null check mRegistration before dereferencing it.
Attachment #8614043 - Flags: review?(amarchesini) → review+
https://hg.mozilla.org/mozilla-central/rev/959c2bd7e15e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Depends on: 1171430
No longer depends on: 1171430
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: