Benjamin Bouvier
0511f8db02
Bug 1445272: Add a pref to enable wasm gc in the browser/shell; r=luke
...
And a builtin function to test if wasm gc is enabled or not, to make testing
easier.
2018-03-21 14:32:47 +01:00
Karl Tomlinson
6bb08c1ad7
bug 1328964 add CycleCollectedJSContext::IsSystemCaller() to make ThreadsafeIsSystemCaller() safe for worklets r=baku
...
MozReview-Commit-ID: Cg4OBbm5CwA
2018-04-06 18:53:25 +12:00
Andrea Marchesini
1153ae03f6
Bug 1436784 - Use WorkerRef in BroadcastChannel and MessagePort, r=smaug
2018-03-13 21:16:54 +01:00
Olli Pettay
8d2a7b0ad2
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Csoregi Natalia
a7fb1721fe
Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
...
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Olli Pettay
6a1afb366a
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Ben Kelly
d1e74e121d
Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor
2018-02-22 14:28:39 -08:00
Boris Zbarsky
be90e72263
Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8
...
The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.
The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.
MozReview-Commit-ID: IeB8KIJCGhU
2018-02-12 15:44:40 -05:00
Tom Schuster
45c2f23ace
Bug 1420101 - Add default enabled pref for Array.prototype.values. r=jandem,bz
2018-02-02 18:46:21 +01:00
shindli
6ac61e2fbd
Backed out changeset 22fe0145f9ed (bug 1434618) for Wd failures in /webdriver/tests/actions/mouse_dblclick.py on a CLOSED TREE
2018-02-06 02:46:08 +02:00
Andrea Marchesini
a4a2502afe
Bug 1434618 - Worker shutdown should start at xpcom-will-shutdown notification, r=smaug
2018-02-06 00:13:26 +01:00
Andrea Marchesini
ddb4518ad1
Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly
2018-02-05 19:55:07 +01:00
Sebastian Hengst
ed40bc35ce
Backed out changeset f31755ef4145 (bug 1434618) for webdriver failures, e.g. webdriver/tests/actions/mouse_dblclick.py. CLOSED TREE
2018-01-31 20:53:35 +02:00
Andrea Marchesini
cb76b86031
Bug 1434618 - Worker shutdown should start at xpcom-will-shutdown notification, r=smaug
2018-01-31 16:43:24 +01:00
Andrea Marchesini
f7ecc0f399
Bug 1432963 - Fixing workers headers - part 16 - JSSettings in a workerinternals namespace, r=smaug
2018-01-31 08:24:59 +01:00
Andrea Marchesini
98ac9eb616
Bug 1432963 - Fixing workers headers - part 15 - static function in a workers namespace, r=smaug
2018-01-31 08:24:30 +01:00
Andrea Marchesini
5e357eed9f
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Andrea Marchesini
086b21b5d0
Bug 1432963 - Fixing workers headers - part 2 - Get rid of WorkerCrossThreadDispatcher and WorkerTask, r=smaug
2018-01-31 08:19:29 +01:00
Andrea Marchesini
298aa0608e
Bug 1413112 - Fixing includes in dom/workers, r=bkelly
2018-01-30 10:14:00 +01:00
Andrea Marchesini
0c91e4d6f3
Bug 1413112 - Move WorkerLoadInfo into separate files, r=bkelly
2018-01-30 10:12:04 +01:00
Andrea Marchesini
a3138e9451
Bug 1433914 - When workers hang, let's log if the shutting down has started, r=smaug
2018-01-29 17:08:41 +01:00
Noemi Erli
0ba89809c9
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-01-26 23:55:29 +02:00
Ben Kelly
bcf3407d3d
Bug 1430139 P2 Make the tree compile again after moving the code to dom/serviceworkers. r=asuth
2018-01-26 13:08:58 -08:00
Markus Stange
babc166d79
Bug 1431184 - Register DOM Worker threads with the profiler for their entire lifetime, not just for the ranges during which they're running a worker script. r=froydnj
...
Our Web Worker code uses a thread pool where a single OS thread can be reused
for different worker scripts during its lifetime. Before this patch, we only
registered these threads with the profiler for the duration that they're
running a worker script. So the same OS thread could be registered with the
profiler during multiple disjoint time ranges, and we would expect the profiler
to treat those different registrations as different conceptual threads.
This had multiple advantages:
- The "thread name" of the conceptual thread can include the script URL:
"DOM Worker <scriptURL>". This allowed you to create thread filter which
match a part of the URL, so you had the option of profiling just the worker
threads you were interested in.
- We wouldn't waste time sampling a worker thread while it's idle and has no
script.
But it also had disadvantages:
- The profiler platform doesn't actually know how to deal with different
"conceptual threads" that share the same OS thread. This lead to surprising
breakage in different places. For example, the contents in the profiler
buffer are marked with ThreadId entries which use the OS thread id.
- What we show in the profiler UI didn't not match reality, and might be
confusing to some people.
I don't think the advantages are large enough to warrant teaching the rest of
the profiler platform to deal with conceptual threads. So this change makes us
stop doing the special thing and just register the OS threads for their entire
duration.
MozReview-Commit-ID: 82RtlRlwy3Y
2018-01-24 18:20:27 -05:00
Andrea Marchesini
6e2de4c558
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 21 - Get rid of WorkerPrefs.h, r=asuth
2018-01-08 14:05:07 +01:00
Adrian Wielgosik
07ad2b2668
Bug 1421358 - Remove GCRuntime::notifyDidPaint and refresh_frame_slices.enabled pref. r=jonco
...
MozReview-Commit-ID: HBh0qyPckKv
2018-01-06 22:25:25 +01:00
Ben Kelly
29d14b57f0
Bug 1401359 Disable SharedWorker if in windows that cannot access storage. r=baku
2017-12-21 10:50:27 -05:00
Andrea Marchesini
d60c509f58
Bug 1422316 - WorkerJSRuntime::Shutdown must call the base class ::Shutdown method, f=yoric, r=bkelly
2017-12-18 17:59:30 +01:00
Andrea Marchesini
615edf083c
Bug 1425509 - Initialize PerformanceService in RuntimeService, r=bkelly
2017-12-18 17:49:54 +01:00
Andrea Marchesini
e6d6b3cc6c
Bug 1423507 - Data URL Shared Workers must be shared when the parent origins match, r=bkelly
2017-12-07 12:29:05 +01:00
Cosmin Sabou
369f0175e7
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
3c517efafa
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 22 - Get rid of WorkerPrefs.h, r=asuth
2017-11-30 18:16:47 +01:00
Andrea Marchesini
6f0b870a4b
Bug 1419166 - Use nsIPrincipal to decide if a SharedWorker should be shared, r=bkelly
2017-11-27 17:07:39 +01:00
Jan de Mooij
e6e5785154
Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie
2017-11-17 12:12:39 +01:00
Andrea Marchesini
5b98fa1520
Bug 1405290 - Improve logging of workers when shutting down - part 2 - Implement RuntimeService::CrashIfHanging(), r=asuth
2017-11-15 07:58:38 +01:00
Andrea Marchesini
87eef7b203
Bug 1416174 - part 1 - OSFileConstants must be a singleton, r=smaug
2017-11-10 19:27:03 +01:00
Andrea Marchesini
4b5bc8f06a
Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 16 - Workers, r=asuth
2017-10-24 12:02:41 +02:00
Kris Maglione
7cdbf75d48
Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
...
MozReview-Commit-ID: 8Oei6TuXNbu
2017-10-15 23:15:40 -07:00
Luke Wagner
bda9877ba9
Bug 1347644 - Baldr: implement ConsumeStreamCallback in browser (r=bkelly)
...
MozReview-Commit-ID: DXv2MegefDw
2017-10-10 14:41:24 -05:00
Nicholas Nethercote
a35e82f193
Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
...
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.
This patch greatly simplifies how things are exposed. The starting point is:
- GeckoProfiler.h can be #included unconditionally;
- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.
In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.
The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.
Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
David Major
818b3fd94f
Bug 1405735 - Make worker JS context options respect safe mode. r=billm
2017-10-06 12:50:50 -04:00
Nicholas Nethercote
e8236888ee
Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
...
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
2017-09-22 14:35:46 +10:00
Blake Kaplan
2feaf02c41
Bug 1398396 - Initialize the locale stuff on runtimes instead of contexts. r=billm
...
MozReview-Commit-ID: Il9HAqYdTzK
2017-09-11 15:46:14 -07:00
Nicholas Nethercote
1e8cb8bfc1
Bug 1400081 - Don't use -1 to represent an unset JSGCParamKey. r=sfink.
...
Because UBSan complains about casting -1:
> runtime error: load of value 4294967295, which is not a valid value for type 'JSGCParamKey'
2017-09-15 10:50:33 +10:00
Lars T Hansen
1ff1b90966
Bug 1277562 - Part 16b: Implement javascript.options.wasm_ionjit. r=billm
2017-06-29 15:37:01 -07:00
Lars T Hansen
b376d932d0
Bug 1277562 - Part 5a: Change the meaning of the wasm-baseline switch. r=luke
2017-02-02 13:22:40 +01:00
Luke Wagner
629fb234bb
Bug 1347644 - Simplify/rename JS::AsyncTask (r=till,bkelly,mccr8)
...
MozReview-Commit-ID: BahNzYPv0AO
2017-08-16 14:38:53 -05:00
Masatoshi Kimura
b821026da0
Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap
...
MozReview-Commit-ID: 89KvCoTAg3I
2017-08-14 20:42:55 +09:00
Jan Varga
2efc566c2e
Bug 1283609 - Part 2: Rename BackgroundChild::SynchronouslyCreateForCurrentThread to BackgroundChild::GetOrCreateForCurrentThread; r=billm
2017-08-03 11:21:53 +02:00
Nicholas Nethercote
a222153d9c
Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
2017-07-31 14:23:50 +10:00