John Dai
970541e62b
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
1cc02aa8c6
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Wes Kocher
7d2cebe912
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
f13a6fc866
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Ben Kelly
6f3adcd11b
Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm
2016-04-08 17:28:25 -07:00
Kyle Huey
285235dfaa
Bug 1261428: Migrate the useless setTimeout error message to the bindings infrastructure. r=bz
2016-04-06 14:20:30 -07:00
Ben Kelly
0ff5ceefd5
Bug 1256428 P0 Fix unified build failures in dom/workers. r=jdm
2016-04-06 13:27:22 -07:00
Kyle Huey
dca62fc1ed
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
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Kyle Huey
fe5f7b4105
Bug 1259290
: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz
2016-03-28 10:28:14 -07:00
Kyle Huey
b55b8c715b
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
47f6f925e1
Bug 1259290
: Part 2 - Remove the cx from [Add|Remove]ChildWorker. r=bz
2016-03-28 10:28:14 -07:00
Kyle Huey
3fd22a326c
Bug 1259290
: Part 1 - Remove unnecessary JS_ReportError calls. r=bz
2016-03-28 10:28:14 -07:00
Eddy Bruel
3e2cb55980
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
df932690be
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
e3b2de6aa9
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Kyle Huey
d11b9db617
Bug 1257032: Make files in dom/workers actually build without unification. r=baku
2016-03-16 11:51:11 -07:00
Benjamin Bouvier
70202e15a1
Bug 1251308; r=luke
...
MozReview-Commit-ID: AqsMX4m7Qh9
--HG--
extra : rebase_source : 519aef2cf8c0bb39771d4589069e8fd1a06970c3
2016-03-09 11:20:11 +01:00
Boris Zbarsky
ab1c6dbdb0
Bug 1255706 part 2. Remove JSContext argument from WorkerPrivate::Terminate. r=khuey
2016-03-11 16:43:30 -05:00
Boris Zbarsky
bbdf086021
Bug 1255706 part 1. Remove JSContext argument from WorkerPrivate constructor. r=khuey
2016-03-11 16:43:30 -05:00
Sebastian Hengst
7045a40a0f
Backed out changeset 50c03319c341 (bug 1246091) for mochitest failures. r=backout
2016-03-11 20:16:19 +01:00
Andrea Marchesini
c4e620f562
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
40172eddb0
Bug 1212328 - Clean up some JSErrorReport-related code. r=Waldo,bz
2016-03-11 15:19:06 +01:00
Kyle Huey
d7b4ab4573
Bug 1253059: Use fallible allocation in the worker error reporter. r=baku
2016-03-10 01:50:56 -08:00
Boris Zbarsky
36d4079be7
Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley
2016-03-09 19:02:03 -05:00
Boris Zbarsky
d0363ce0e6
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
49c103594d
Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey
2016-03-01 16:53:26 -05:00
Boris Zbarsky
1538f85b56
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
9679610dbb
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
7a1819b93a
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
af73c13ee2
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
6e6e6a5a75
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
b8d76901e9
Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey
2016-03-01 16:53:26 -05:00
Boris Zbarsky
e733e4d4fb
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
de208d989a
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
dae479317b
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
7aa5d59bc7
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
9e960ae549
Bug 1250572 - Force a parent object in MessagePort/Channel and in StructuredCloneHolder, r=smaug
2016-03-01 15:21:11 +01:00
Boris Zbarsky
5a8005ef1e
Bug 1252189. Remove the unnecessary JSContext argument from WorkerPrivate::FreezeInternal/ThawInternal. r=khuey
2016-02-29 14:52:43 -05:00
Boris Zbarsky
27c76101f3
Bug 1252185. Remove the dead "target" variable from CloseEventRunnable::WorkerRun. r=khuey
2016-02-29 14:52:43 -05:00
Boris Zbarsky
69924c14ce
Bug 1252123. Remove some unnecessary JSContext arguments from worker ScriptLoader methods. r=khuey
2016-02-29 14:52:42 -05:00
Boris Zbarsky
663b9bd562
Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey
2016-02-29 14:52:42 -05:00
Boris Zbarsky
e24a128e22
Bug 1251380. Change things so that WorkerPrivate::NotifyInternal (hopefully) never throws. r=khuey
2016-02-26 21:15:56 -05:00
Boris Zbarsky
35d98f4893
Bug 1251276 part 2. Remove the JSContext argument of WorkerPrivate::CancelAllTimeouts. r=khuey
2016-02-26 21:15:56 -05:00
Boris Zbarsky
7dc5bbf023
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
7413f2bf46
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
d3cc781844
Bug 1251275. Switch to using an AutoEntryScript in WorkerPrivate::RunExpiredTimeouts. r=khuey
2016-02-26 15:23:13 -05:00
Boris Zbarsky
7d27e1dd3d
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
94e6475a9c
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
Boris Zbarsky
60b1a3f005
Bug 1251045 part 6. Remove the JSContext argument from some worker debugger methods that no longer need it. r=khuey
2016-02-26 15:23:12 -05:00