Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
John Dai
8a27103bcc
Bug 1037725 - Add warning message in the console when worker spawn over limit. r=khuey
2016-04-12 01:41:00 +02:00
Kyle Huey
a256ae1a91
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Wes Kocher
dd9b334d33
Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
...
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)
MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey
41c353f8e9
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Ben Kelly
9b0c3b9457
Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm
2016-04-08 17:28:25 -07:00
Kyle Huey
a6dc3953f1
Bug 1261428: Migrate the useless setTimeout error message to the bindings infrastructure. r=bz
2016-04-06 14:20:30 -07:00
Ben Kelly
b02d650c1f
Bug 1256428 P0 Fix unified build failures in dom/workers. r=jdm
2016-04-06 13:27:22 -07:00
Kyle Huey
55d1b39d3a
Bug 1261814: Use the presence of the content global, and not any random global, to determine whether to run the close handler. r=bz
2016-04-05 20:12:56 -07:00
Kyle Huey
20d0dc7286
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Kyle Huey
d791fedcc4
Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz
2016-03-28 10:28:14 -07:00
Kyle Huey
777ddc3529
Bug 1259290: Part 3 - Remove JS_ReportError and cx handling from RegisterWorker and friends. r=bz,jandem
2016-03-28 10:28:14 -07:00
Kyle Huey
f802c382ed
Bug 1259290: Part 2 - Remove the cx from [Add|Remove]ChildWorker. r=bz
2016-03-28 10:28:14 -07:00
Kyle Huey
2835cd7aa7
Bug 1259290: Part 1 - Remove unnecessary JS_ReportError calls. r=bz
2016-03-28 10:28:14 -07:00
Eddy Bruel
e5db48a881
Bug 1229769 - We should be able to use DOM promises in the worker debugger;r=khuey
2016-03-24 16:12:00 +01:00
Andrea Marchesini
7b8a9dcd70
Bug 1246091 - patch 5/7 - Remove data when memory pressure notification is received, r=ejpbruel
2016-03-23 22:55:07 +01:00
Boris Zbarsky
a50c6aa31a
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Kyle Huey
56bfa0ab15
Bug 1257032: Make files in dom/workers actually build without unification. r=baku
2016-03-16 11:51:11 -07:00
Benjamin Bouvier
e9e5750ced
Bug 1251308; r=luke
...
MozReview-Commit-ID: AqsMX4m7Qh9
2016-03-09 11:20:11 +01:00
Boris Zbarsky
b3f9947be1
Bug 1255706 part 2. Remove JSContext argument from WorkerPrivate::Terminate. r=khuey
2016-03-11 16:43:30 -05:00
Boris Zbarsky
c8f3aa78fc
Bug 1255706 part 1. Remove JSContext argument from WorkerPrivate constructor. r=khuey
2016-03-11 16:43:30 -05:00
Sebastian Hengst
9b611e1410
Backed out changeset 50c03319c341 (bug 1246091) for mochitest failures. r=backout
2016-03-11 20:16:19 +01:00
Andrea Marchesini
d27a44059c
Bug 1246091 - Expose ConsoleEvents to Worker Debugger Actors via Console object directly, r=ejpbruel
2016-03-11 17:59:52 +01:00
Jan de Mooij
7c08080dd0
Bug 1212328 - Clean up some JSErrorReport-related code. r=Waldo,bz
2016-03-11 15:19:06 +01:00
Kyle Huey
7c18ec40f7
Bug 1253059: Use fallible allocation in the worker error reporter. r=baku
2016-03-10 01:50:56 -08:00
Boris Zbarsky
63091385d1
Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley
2016-03-09 19:02:03 -05:00
Boris Zbarsky
4d8d19d5b8
Bug 1254846. Add an AutoEntryScript constructor that takes a JSObject instead of an nsIGlobalObject, for convenience. r=bholley
2016-03-09 15:28:26 -05:00
Boris Zbarsky
8df34fd513
Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey
2016-03-01 16:53:26 -05:00
Boris Zbarsky
b4e65ce236
Bug 1072144 part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey
2016-03-01 16:52:27 -05:00
Boris Zbarsky
d66e858893
Bug 1072144 part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
8f73921c4f
Bug 1072144 part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey
2016-03-01 16:52:26 -05:00
Wes Kocher
0f2b8b2305
Backed out 6 changesets (bug 1072144) for test_recursion.html failures
...
Backed out changeset ac15fe0e71fd (bug 1072144 )
Backed out changeset b666d48a267d (bug 1072144 )
Backed out changeset 0f0464ef08ed (bug 1072144 )
Backed out changeset 7ba5f3b95022 (bug 1072144 )
Backed out changeset 1912f838fcaa (bug 1072144 )
Backed out changeset 145c9bb59b97 (bug 1072144 )
MozReview-Commit-ID: 7cl4RtpHSfl
2016-03-01 15:41:24 -08:00
Wes Kocher
c46eae4f02
Backed out changeset aad89b3b0eb1 (bug 1252592) for test_recursion.html failures
...
MozReview-Commit-ID: 4DqAlBimVRk
2016-03-01 15:40:15 -08:00
Boris Zbarsky
6ce0d0ac10
Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey
2016-03-01 16:53:26 -05:00
Boris Zbarsky
2f3743863b
Bug 1072144 part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey
2016-03-01 16:52:27 -05:00
Boris Zbarsky
9924291c2e
Bug 1072144 part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
5d643fc548
Bug 1072144 part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey
2016-03-01 16:52:26 -05:00
Boris Zbarsky
ed69d48381
Bug 1251518. Fix js::ErrorReportToString to make a bit more sense, and change worker code to not use it anyway, so it matches the mainthread code. r=bholley,terrence
2016-03-01 13:49:21 -05:00
Andrea Marchesini
6b24d72cde
Bug 1250572 - Force a parent object in MessagePort/Channel and in StructuredCloneHolder, r=smaug
2016-03-01 15:21:11 +01:00
Boris Zbarsky
7380f68a24
Bug 1252189. Remove the unnecessary JSContext argument from WorkerPrivate::FreezeInternal/ThawInternal. r=khuey
2016-02-29 14:52:43 -05:00
Boris Zbarsky
399b45bafa
Bug 1252185. Remove the dead "target" variable from CloseEventRunnable::WorkerRun. r=khuey
2016-02-29 14:52:43 -05:00
Boris Zbarsky
c28f8bc025
Bug 1252123. Remove some unnecessary JSContext arguments from worker ScriptLoader methods. r=khuey
2016-02-29 14:52:42 -05:00
Boris Zbarsky
48677a12b6
Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey
2016-02-29 14:52:42 -05:00
Boris Zbarsky
3b186587e3
Bug 1251380. Change things so that WorkerPrivate::NotifyInternal (hopefully) never throws. r=khuey
2016-02-26 21:15:56 -05:00
Boris Zbarsky
c05942a91a
Bug 1251276 part 2. Remove the JSContext argument of WorkerPrivate::CancelAllTimeouts. r=khuey
2016-02-26 21:15:56 -05:00
Boris Zbarsky
6d521205e9
Bug 1251276 part 1. Change WorkerPrivate::CancelAllTimeouts to no longer call RunExpiredTimeouts. r=khuey
...
If you walk through what RunExpiredTimeouts used to when called from here do
carefully, it used to do the following:
1) If mRunningExpiredTimeouts, no-op.
2) Not run anything, because everything is canceled.
3) Remove everything from mTimeouts, since everything is canceled.
4) Since mTimeouts is now empty, modify the busy count and set mTimerRunning to false.
None of this could report a JS exception, so the JS_ReportPendingException call
in CancelAllTimouts was dead code. Note that the return value of
RunExpiredTimeouts only affected whether JS_ReportPendingException is called, so
we don't even need to worry about ModifyBusyCountFromWorker failing: that
failure used to be silently swallowed.
2016-02-26 21:15:56 -05:00
Boris Zbarsky
1c2e6f2f8f
Bug 1251369. Use an AutoJSAPI that reports its own exceptions around the main runloop in workers. r=khuey
...
The silly leading ": " on the error messages is due to bug 1251518 .
2016-02-26 15:23:13 -05:00
Boris Zbarsky
1e549ba402
Bug 1251275. Switch to using an AutoEntryScript in WorkerPrivate::RunExpiredTimeouts. r=khuey
2016-02-26 15:23:13 -05:00
Boris Zbarsky
08fb162f54
Bug 1251272. Remove the dead code in ReportErrorRunnable::ReportError that could fail, and make it infallible. r=khuey
2016-02-26 15:23:12 -05:00
Boris Zbarsky
a2fbb4f9d0
Bug 1251045 part 7. Remove the JSContext argument from some worker methods that no longer need it. r=khuey
2016-02-26 15:23:12 -05:00