Thomas Wisniewski
07172303ad
Bug 1403027 - Do not throw from PerformanceObserver.observe when none of the entryTypes are known (log a JS console warning instead); r=bz
...
MozReview-Commit-ID: Lx2cjWDX8sh
2018-01-24 20:59:04 -05:00
Ben Kelly
03204db3f9
Bug 1468853 Note inherited controller in the parent process when the service worker e10s pref is flipped. r=mrbkap
2018-06-22 07:22:59 -07:00
Tarek Ziadé
85894b64e1
Bug 1464571 - fixes DOM Worker performance counters - r=baku,froydnj
...
Now uses StaticPrefs instead of DOMPrefs, and how we count dispatches for Workers.
MozReview-Commit-ID: DTumwcI5bG
2018-06-19 16:14:06 +02:00
Andrea Marchesini
bfe6f3008b
Bug 1455242 - Get rid of SimpleHolder and replace it with WorkerRef, r=asuth
2018-06-18 16:37:21 -04:00
Jan de Mooij
d1d6a6022b
Bug 1466083 part 7 - Replace GetCompartmentZone with GetRealmZone. r=luke
2018-06-06 12:55:50 +02:00
Miko Mynttinen
3df26bc8a5
Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
...
MozReview-Commit-ID: HpdFXqQdIOO
2018-06-01 17:59:07 +02:00
arthur.iakab
9588ba6d78
Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
...
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen
5afe37aefc
Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
...
MozReview-Commit-ID: HpdFXqQdIOO
2018-06-01 17:59:07 +02:00
Csoregi Natalia
b816eb7909
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-06-02 01:03:45 +03:00
Emilio Cobos Álvarez
4b8b5e1717
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Markus Stange
cdad8b83c3
Bug 1462784 - Add idle annotations for DOM worker threads. r=froydnj
...
MozReview-Commit-ID: 7WM1ALzhDzY
2018-05-21 02:37:45 -04:00
Csoregi Natalia
27ccec9c4c
Backed out 18 changesets (bug 1462784) for ESlint failure on FlameGraph.js:1297. CLOSED TREE
...
Backed out changeset 79556798ff9f (bug 1462784)
Backed out changeset 88321efb673b (bug 1462784)
Backed out changeset 7880f9dc7023 (bug 1462784)
Backed out changeset 71fe35fd1f7e (bug 1462784)
Backed out changeset a543b94b049a (bug 1462784)
Backed out changeset d1ca8b0f2221 (bug 1462784)
Backed out changeset 68eabfbf3c16 (bug 1462784)
Backed out changeset 34e71c789903 (bug 1462784)
Backed out changeset 6fe79d1ca1bd (bug 1462784)
Backed out changeset e5ad2e525ea9 (bug 1462784)
Backed out changeset 329645ff1e23 (bug 1462784)
Backed out changeset e09c38853172 (bug 1462784)
Backed out changeset 0663d1a6d2da (bug 1462784)
Backed out changeset 106967fc29d2 (bug 1462784)
Backed out changeset 99b4a433a8e5 (bug 1462784)
Backed out changeset 1d38a4cf5a4a (bug 1462784)
Backed out changeset 692017229de6 (bug 1462784)
Backed out changeset c2911a626671 (bug 1462784)
2018-06-01 23:42:00 +03:00
Markus Stange
9e940d5731
Bug 1462784 - Add idle annotations for DOM worker threads. r=froydnj
...
MozReview-Commit-ID: 7WM1ALzhDzY
2018-05-21 02:37:45 -04:00
Noemi Erli
3946d17555
Backed out 18 changesets (bug 1462784) for failures in devtools/client/performance/test/unit/test_tree-model-08.js on a CLOSED TREE
...
Backed out changeset a74d36598442 (bug 1462784)
Backed out changeset c8192175f360 (bug 1462784)
Backed out changeset cde492240e99 (bug 1462784)
Backed out changeset 8c8d30fa406c (bug 1462784)
Backed out changeset ad3802ffb780 (bug 1462784)
Backed out changeset 2fe10732076c (bug 1462784)
Backed out changeset 268a72b7c3c4 (bug 1462784)
Backed out changeset 4055eb6c3bc6 (bug 1462784)
Backed out changeset 3901070e2e60 (bug 1462784)
Backed out changeset 2faf787fbbdf (bug 1462784)
Backed out changeset 8f06963c7c6f (bug 1462784)
Backed out changeset 036e6f64e224 (bug 1462784)
Backed out changeset e670f156a603 (bug 1462784)
Backed out changeset cd39588aece4 (bug 1462784)
Backed out changeset 2ac65d100fa2 (bug 1462784)
Backed out changeset ea05ff70a51d (bug 1462784)
Backed out changeset 8a06c0ba42f7 (bug 1462784)
Backed out changeset 52ed9a039ad2 (bug 1462784)
2018-06-01 01:06:29 +03:00
Noemi Erli
4dc0409b86
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-06-01 00:58:09 +03:00
Markus Stange
553e649951
Bug 1462784 - Add idle annotations for DOM worker threads. r=froydnj
...
MozReview-Commit-ID: 7WM1ALzhDzY
2018-05-21 02:37:45 -04:00
Steve Fink
551f65ca28
Bug 1464266 - Rename GCForReason to NonIncrementalGC, r=jonco
2018-05-24 16:19:18 -07:00
Jan de Mooij
d81abdc0a2
Bug 1464134 part 8 - Make IterateHeapUnbarriered and related code use realms instead of compartments. r=jonco
2018-05-30 20:14:19 +02:00
Jan de Mooij
60f9ff5297
Bug 1465472 - Remove the atoms realm/compartment. r=jonco
...
Some of the less trivial changes:
* When we allocated a symbol, we used the atom realm's RNG to create a hash code [0]. Instead of this I added a RNG for this to the runtime.
* IsCompilingWasm returned true if the JitContext's realm is nullptr, but that's now also true when we initialize the trampolines stored in the atoms zone. To fix that I added a CompileZone* to JitContext, in addition to the CompileRuntime and CompileRealm, and we now check the zone instead of the realm in IsCompilingWasm.
* JSContext::hasEnteredRealm is only called in DEBUG builds so I made hasEnteredRealm and enterRealmDepth_ #ifdef DEBUG.
2018-05-31 12:53:26 +02:00
Jan de Mooij
03c062bcb5
Bug 1461938 part 5 - Some atoms compartment/realm related changes. r=jonco
2018-05-18 15:18:23 +02:00
Jan de Mooij
8839975e4e
Bug 1461677 - Rename compartment to realm in the memory reporting code. r=njn
2018-05-17 16:15:18 +02:00
Jan de Mooij
9e4208462a
Bug 1461605 part 1 - Rename CompartmentOptions to RealmOptions. r=luke,bz
2018-05-17 10:59:45 +02:00
Jan de Mooij
e5f8a28c84
Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke
2018-05-16 10:53:16 +02:00
Andrea Marchesini
bb748f8fe9
Bug 1302449 - Remove the "referrer" directive in CSP, r=ckerschb
2018-05-09 13:15:08 +02:00
Ben Kelly
c1a8c678d1
Bug 1458970 Avoid accessing mClientSource when a worker is Terminating in more places. r=baku
2018-05-04 06:35:36 -07:00
Andrea Marchesini
b057300058
Bug 1458836 - No needs to inform WorkerHolders when in Closing state, r=bkelly
2018-05-03 17:03:13 +02:00
Ben Kelly
8aee66546e
Bug 1457157 P2 Clear a worker's ClientSource when it reaches Terminating. r=baku
2018-05-02 06:29:26 -07:00
Ben Kelly
2a2ec1ace6
Bug 1457187 P2 Call NoteTerminating() from WorkerPrivate::NotifyInternal(). r=baku
2018-04-26 09:18:01 -07:00
Tarek Ziadé
481052965e
Bug 1452580 - remove RELEASE_OR_BETA defines for PerformanceCounter usage - r=baku,erahm,farre
...
PerformanceCounters are currently disabled in two ways:
- a preference that's off by default "dom.performance.enable_scheduler_timing"
- calls made only for nightly using #ifndef RELEASE_OR_BETA
In order to simplify the code, let's remove the #ifndef and rely only on the pref.
That will also allows us to use the feature in every version going forward.
The performance will not be impacted since the current code is already using
the (cached) pref value to determine if the counters are used.
MozReview-Commit-ID: 47t2M1O13aH
2018-04-24 22:03:06 +02:00
Karl Tomlinson
16c18157ff
bug 1455210 call CycleCollectedJSContext::Get() only once in EnterDebuggerEventLoop() r=baku
...
The WorkerJSContext is created and destroyed after entry and before exit from
WorkerThreadPrimaryRunnable::Run(). WorkerPrivate::EnterDebuggerEventLoop()
is called only while WorkerThreadPrimaryRunnable::Run is on the stack, and so
the CycleCollectedJSContext will not change.
MozReview-Commit-ID: HMJ8fpKC6E3
2018-04-16 19:43:56 +12:00
Karl Tomlinson
531094f4a5
bug 1455210 remove misleading CycleCollectedJSContext null checks r=baku
...
The caller of WorkerPrivate::DoRunLoop() keeps the WorkerJSContext alive, and
so there will always be a CycleCollectedJSContext in DoRunLoop.
WorkerPrivate::EnterDebuggerEventLoop() assumes that
WorkerPrivate::GetJSContext() returns a JSContext, and so
EnterDebuggerEventLoop also must only be called while DoRunLoop is on the
stack and therefore keeping the WorkerJSContext alive.
MozReview-Commit-ID: EJgt73LsTx1
2018-04-16 19:33:55 +12:00
Andrea Marchesini
5835239922
Bug 1455025 - Cleanup some private methods in WorkerPrivate.h, r=asuth
2018-04-19 00:02:08 +02:00
Andrea Marchesini
6b2cf49698
Bug 1454618 - FileReaderSync must work also after a self.close(), r=asuth
2018-04-18 10:02:29 +02:00
Andrea Marchesini
1e54c18888
Bug 1450644 - Better shutdown approach for Workers - part 3 - Preference for time worker timeout, r=asuth
2018-04-17 20:51:04 +02:00
Andrea Marchesini
10700481cc
Bug 1450644 - Better shutdown approach for Workers - part 2 - Timeout + ControlRunnable, r=asuth
2018-04-17 20:51:04 +02:00
Andrea Marchesini
e6606368c7
Bug 1450644 - Better shutdown approach for Workers - part 1 - CancelingRunnable, r=asuth
2018-04-17 20:51:03 +02:00
Jim Blandy
c66b19554c
Bug 1454540 - Remove WorkerPrivate::DispatchPrivate, and give WorkerPrivate::Dispatch a default argument instead. r=baku
2018-04-16 20:08:26 -07:00
Tiberius Oros
a1c2a7891a
Backed out 7 changesets (bug 1450644, bug 1454633) for for failing browser_storage_permission.js on a CLOSED TREE
...
Backed out changeset f4989e0da221 (bug 1454633)
Backed out changeset 08239799d43e (bug 1450644)
Backed out changeset cbe3ad4833b6 (bug 1450644)
Backed out changeset 0d2088370d0c (bug 1450644)
Backed out changeset 246fb3ee14cd (bug 1450644)
Backed out changeset 629e499c0f75 (bug 1450644)
Backed out changeset ed93e3547096 (bug 1450644)
2018-04-18 01:10:26 +03:00
Andrea Marchesini
c5f7fd7171
Bug 1450644 - Better shutdown approach for Workers - part 3 - Preference for time worker timeout, r=asuth
2018-04-17 20:51:04 +02:00
Andrea Marchesini
2d5b0a0dfb
Bug 1450644 - Better shutdown approach for Workers - part 2 - Timeout + ControlRunnable, r=asuth
2018-04-17 20:51:04 +02:00
Andrea Marchesini
d5e1bbf850
Bug 1450644 - Better shutdown approach for Workers - part 1 - CancelingRunnable, r=asuth
2018-04-17 20:51:03 +02:00
Nika Layzell
b4c313c43d
Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj
2018-04-10 17:49:47 -04:00
Ben Kelly
59618c50e7
Bug 1450274 P3 Make WorkerGlobalScope call DisconnectEventTargetObjects() when the worker reaches the Terminating state. r=baku
2018-04-10 11:00:57 -07:00
Boris Zbarsky
d54406240d
Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
...
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Tarek Ziadé
3ee80d8e53
Bug 1447768 - part 2 - Dispatch counters in the parent process - r=baku
...
Chromeutils.RequestPerformanceMetrics() is now composed of two parts:
- calls content processes via IPDL to get their counters
- directly dispatch counters from the parent process
MozReview-Commit-ID: HlgcEOzkyAq
2018-04-04 13:36:25 +02:00
Ben Kelly
7034fda899
Bug 1448141 P5 Remove the service worker script load failure runnable. r=asuth
2018-04-02 07:50:23 -07:00
Ben Kelly
17000f52d8
Bug 1448141 P4 Immediately start closing worker scripts if their initial compilation fails. r=baku
2018-04-02 07:50:23 -07:00
Andrea Marchesini
44bf5432c3
Bug 1450416 - setTimeout/setInterval should silently fail if the worker is shutting down, r=asuth
2018-03-31 09:47:51 +02:00
Andrea Marchesini
a3c9d2181e
Bug 1446273 - Remove a optional parameter in WorkerPrivate::DestroySyncLoop, r=catalinb
2018-03-16 15:20:29 +01:00
Tom Ritter
e19e7123c5
Bug 1440195 Add a random context seed to the Performance APIs r=baku
...
We attach it to WorkerPrivate and DOMNavigationTiming so it will be re-used
when it should.
WorkerPrivate is used in the Performance APIs, Performance Storage Worker,
and Event.
DOMNavigationTiming is used only in the Performance APIs, but the crucial
part is that when the individual DOMNavigationTiming object is re-used,
so will the context seed. This in particular came up with the
nav2_test_document_open.html Web Platform Test which illustrated the fact
that even if you .open() a new document, the performance navigation data
is not supposed to change.
MozReview-Commit-ID: GIv6biEo2jY
2018-03-13 12:36:34 -05:00