Andrew McCreight
36eb42025b
Bug 1176342, part 1 - De-COM InitClassesWithNewWrappedGlobal. r=mrbkap
...
MozReview-Commit-ID: EfRQW3QUXCG
--HG--
extra : rebase_source : 895694d28cc228cfb095639880738c84767e08a8
2017-09-18 16:35:39 -07:00
Gabriele Svelto
7387dc791b
Bug 1393435 - Remove unnecessary inclusions of the crash reporter header files; r=mconley
...
MozReview-Commit-ID: 3tdFDrTYql8
--HG--
extra : rebase_source : cc862688f19afb8a5cf8c7cf915a5d3d45f041b5
2017-08-07 14:10:02 +02:00
Masatoshi Kimura
38894511bc
Bug 1390106 - Stop using versioned scripts in dom. r=mrbkap
...
MozReview-Commit-ID: 89KvCoTAg3I
--HG--
extra : rebase_source : 24831fa454a1cc6fff70a9b1eb509d0f5aeb800a
2017-08-14 20:42:55 +09:00
Kris Maglione
0b7f63fe38
Bug 1390010: Part 2 - Allow JS callers to retrieve remoteType of message managers. r=krizsa
...
This gives JS callers access to the remote type of remote message managers.
There's currently no way for extensions to access this unless they have a
<browser> element to check the remoteType attribute of.
MozReview-Commit-ID: A8Y3ZSG3rt8
--HG--
extra : rebase_source : e024922522da9a30265f05e9a8dbf7529dfe1d81
2017-08-13 18:58:23 -07:00
Andrew McCreight
8085e87bc3
Bug 379797 - Various dump() methods should check browser.dom.window.dump.enabled. r=krizsa
...
Checking this pref to avoid log spam in opt builds, in sandboxes, JS
components, and whatever uses nsFrameMessageManager's dump method.
This does mean that on Windows in an opt build when a debugger is
present a debug string will no longer be printed unless the pref is
set, but I think that is consistent with the non-Windows behavior.
MozReview-Commit-ID: FWLAzBRVhlx
--HG--
extra : rebase_source : cc5669f422729788f1ebc300d4450290913a3055
2017-08-02 11:56:33 -07:00
Bill McCloskey
55f153be76
Bug 1383328 - Use TabGroup as event target for browser-status-filter (r=smaug)
...
MozReview-Commit-ID: HOSmqr5Vpwh
2017-07-28 13:11:59 -07:00
Sebastian Hengst
6389867b7c
Backed out changeset 1d87b1dc4ce2 (bug 1272697) for failing mochitest test_interfaces.html for 'ByteLengthQueuingStrategy' and wpts, e.g. general.dedicatedworker.html. r=backout on a CLOSED TREE
2017-07-28 20:20:50 +02:00
Till Schneidereit
dec687b07c
Bug 1272697 - Part 2: Add runtime pref to enable streams. r=baku,jonco
...
MozReview-Commit-ID: 5OSxbcd3jQB
2017-07-28 17:48:12 +02:00
Carsten "Tomcat" Book
bd7b184c91
Backed out changeset e3e924da5d5f (bug 1383328)
2017-07-28 09:20:05 +02:00
Bill McCloskey
fff3f0890c
Bug 1383328 - Use TabGroup as event target for browser-status-filter (r=smaug)
...
MozReview-Commit-ID: HOSmqr5Vpwh
2017-07-25 19:52:36 -07:00
Bill McCloskey
f115503a0b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Nicholas Nethercote
58786e1ea7
Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
...
This patch makes the following changes to the macros.
- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
mostly misused.
- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
universally available now anyway.
- Combines the first two string literal arguments of PROFILER_LABEL and
PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
them to be separate, and it forced a '::' in the label, which isn't always
appropriate. Also, the meaning of the "name_space" argument was interpreted
in an interesting variety of ways.
- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
it clearer they construct RAII objects rather than just being function calls.
(I myself have screwed up the scoping because of this in the past.)
- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
the caller doesn't need to. This makes a *lot* more of the uses fit onto a
single line.
The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).
- Fixes a bunch of labels that had gotten out of sync with the name of the
class and/or function that encloses them.
- Removes a useless PROFILER_LABEL use within a trivial scope in
EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
a good idea.
- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
done within them, instead of at their callsites, because that's a more
standard way of doing things.
--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Nicholas Nethercote
4b364cf3f3
Bug 1375299 (part 1) - Reduce usage of MOZ_GECKO_PROFILER. r=mstange.
...
This patch reduces the differences between builds where the profiler is enabled
and those where the profiler is disabled. It does this by removing numerous
MOZ_GECKO_PROFILER checks.
These changes have the following consequences.
- Various functions and classes are now defined in all builds, and so can be
used unconditionally: profiler_add_marker(), profiler_set_js_context(),
profiler_clear_js_context(), profiler_get_pseudo_stack(), AutoProfilerLabel.
(They are effectively no-ops in non-profiler builds, of course.)
- The no-op versions of PROFILER_* are now gone. The remaining versions are
almost no-ops when the profiler isn't built.
--HG--
extra : rebase_source : 8fb5e8757600210c2f77865694d25162f0b7698a
2017-06-22 06:26:16 +10:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Markus Stange
f122f663be
Bug 1373761 - Add a PROFILER_LABEL to nsMessageManagerScriptExecutor::LoadScriptInternal. r=billm
...
MozReview-Commit-ID: A1mU4RdjYw7
--HG--
extra : rebase_source : aeb73de8d30eca1978375f7f362a20afcc536923
2017-06-16 16:34:12 -04:00
Bill McCloskey
515899bc76
Bug 1371125 - Stop saving JSContext in nsSameProcessAsyncMessageBase (r=mccr8)
...
MozReview-Commit-ID: 23kFRobyO2W
2017-06-12 20:21:43 -07:00
Andrea Marchesini
281c7e8cdd
Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru
2017-05-23 18:05:19 +02:00
Sebastian Hengst
4ac10ab053
Backed out changeset c3251f5022dd (bug 1359718)
2017-05-23 19:12:25 +02:00
Andrea Marchesini
f512688b0b
Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru
2017-05-23 18:05:19 +02:00
Sebastian Hengst
89e8ea64b1
Backed out changeset 537abc431472 (bug 1359718)
2017-05-23 18:34:40 +02:00
Andrea Marchesini
7db3365daf
Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru
2017-05-23 18:05:19 +02:00
Andrew McCreight
099723178a
Bug 1365086, part 3 - Make nsMessageManagerScriptExecutor::mGlobal into a raw pointer. r=smaug
...
MozReview-Commit-ID: JdLV3wIB1gj
--HG--
extra : rebase_source : 6580a4325633e723aff3a37f58c5fc0ccb163ab2
2017-05-15 13:46:28 -07:00
Andrew McCreight
ffae1f697d
Bug 1365086, part 2 - Add unlink method for nsMessageManagerScriptExecutor. r=smaug
...
MozReview-Commit-ID: 66qpza5yEZT
--HG--
extra : rebase_source : 290a4102a1e44e6c1a6cf63c48e931130970bd93
2017-05-15 13:05:18 -07:00
Kris Maglione
84f00bc999
Bug 1361900: Part 8 - Use the script preloader in content processes in the frame script loader. r=gabor
...
MozReview-Commit-ID: f7AdQ5cG4k
--HG--
extra : rebase_source : 9f50ef436d0a9770c84760c53951eb9bc71ac846
extra : source : 752295ce12d674f4b5e879c258d4c82fec572484
2017-04-30 21:54:31 -07:00
Kris Maglione
fc0586811d
Bug 1361900: Part 4 - Use a separate script cache for scripts loaded in the child process. r=erahm,gabor
...
MozReview-Commit-ID: EIdwmuTOl90
--HG--
extra : rebase_source : d2f6ba18a03cb54459e98b9d2ff03bc3d9567e83
extra : source : ad243db647c708b74859d73e8787b5b34897c140
2017-05-09 19:52:17 -07:00
Sebastian Hengst
e1ddae17f8
Backed out changeset ad243db647c7 (bug 1361900)
2017-05-13 18:53:40 +02:00
Sebastian Hengst
9db9f9d181
Backed out changeset 752295ce12d6 (bug 1361900)
2017-05-13 18:53:20 +02:00
Kris Maglione
ac38356cdd
Bug 1361900: Part 8 - Use the script preloader in content processes in the frame script loader. r=gabor
...
MozReview-Commit-ID: f7AdQ5cG4k
--HG--
extra : rebase_source : f32ec38067bcbb8334ac1cdf0d883f205be54ea2
2017-04-30 21:54:31 -07:00
Kris Maglione
34e20a0617
Bug 1361900: Part 4 - Use a separate script cache for scripts loaded in the child process. r=erahm,gabor
...
MozReview-Commit-ID: EIdwmuTOl90
--HG--
extra : rebase_source : bce9efcd7b97c281bf4e17e30eed31e6e93c614a
2017-05-09 19:52:17 -07:00
Milan Sreckovic
725d1c193f
Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
...
MozReview-Commit-ID: 5ugh3Ma0OtH
--HG--
extra : rebase_source : 956a7a0535c3b7433fadfa65d0cfc26d9915f61a
2017-05-10 13:12:36 -04:00
Henry Chang
3f6c2504c6
Bug 1353159 - Use IPC_MESSAGE_SIZE2 to unify the expired IPC_MESSAGE_SIZE and MESSAGE_MANAGER_MESSAGE_SIZE2 r=billm
...
The new telemetry tag is for probing the best IPC message pre-allocate size to avoid
realloc overhead. We only count those message size which is greater than 4096.
This tag integrates IPC_MESSAGE_SIZE and MESSAGE_MANAGER_MESSAGE_SIZE2 which
have both expired.
MozReview-Commit-ID: GjvuidGJ7pz
--HG--
extra : rebase_source : 1da13b3f2b5b042d0445abd6051993e2fb317f93
2017-05-04 16:34:20 +08:00
Ehsan Akhgari
d0ac8577e3
Bug 1361747 - Avoid a double hashtable lookup for insertions in nsFrameMessageManager::AddMessageListener and nsFrameMessageManager::AddWeakMessageListener; r=mystor
2017-05-08 10:02:04 -04:00
Andrea Marchesini
1981f67eb3
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Carsten "Tomcat" Book
f0d6de60d7
Backed out changeset 5d77f6b14633 (bug 1362119) for android bustage in nsCCUncollectableMarker.cpp:500:7: error: 'TraceScriptHolder' is not a member of 'mozilla'
...
--HG--
rename : dom/script/ScriptSettings.cpp => dom/base/ScriptSettings.cpp
rename : dom/script/ScriptSettings.h => dom/base/ScriptSettings.h
rename : dom/script/nsIScriptElement.h => dom/base/nsIScriptElement.h
rename : dom/script/nsIScriptLoaderObserver.idl => dom/base/nsIScriptLoaderObserver.idl
rename : dom/script/ScriptElement.cpp => dom/base/nsScriptElement.cpp
rename : dom/script/ScriptElement.h => dom/base/nsScriptElement.h
rename : dom/script/ScriptLoader.cpp => dom/base/nsScriptLoader.cpp
rename : dom/script/ScriptLoader.h => dom/base/nsScriptLoader.h
2017-05-08 09:54:38 +02:00
Andrea Marchesini
7a4ef797cb
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Kris Maglione
64c700feea
Bug 1359653: Part 7 - Use the script preloader for loading frame scripts. r=billm
...
MozReview-Commit-ID: L0EjM0Uomfb
--HG--
extra : source : c1b0ed47743f9b09376fbb88ecbd3dcbabe27265
extra : histedit_source : aaae2cb053e9cbd4b62ba2c04aa337d483fc51d5
2017-05-02 15:16:55 -07:00
Sebastian Hengst
7ed4c0581c
Backed out changeset c1b0ed47743f (bug 1359653)
2017-05-06 11:02:13 +02:00
Kris Maglione
e85e66e3a4
Bug 1359653: Part 7 - Use the script preloader for loading frame scripts. r=billm
...
MozReview-Commit-ID: L0EjM0Uomfb
--HG--
extra : rebase_source : 02cc7f567edcff765c6abffb03be2a4e7f843c78
extra : absorb_source : 1522a5f335eca8188a82f93ac27900cbcd3ef4be
2017-05-02 15:16:55 -07:00
Bill McCloskey
172e502215
Revert "Bug 1340719 - Throw an exception if accessing Xray from wrong docgroup (r=bholley)"
...
This reverts commit ff10f4faedd42f13ed2899cf4ea05c47411aba95.
2017-04-07 14:23:06 -07:00
Bill McCloskey
fcdb251c4b
Bug 1340719 - Throw an exception if accessing Xray from wrong docgroup (r=bholley)
...
MozReview-Commit-ID: BBrRsk3KvGb
2017-04-05 13:26:20 -07:00
Wes Kocher
985bcdea84
Merge m-c to autoland, a=merge
2017-03-29 15:48:28 -07:00
Markus Stange
7c6c13efdf
Bug 1348426 - Add profiler labels to RecvSync/Async/RpcMessage that include the message name. r=billm
...
MozReview-Commit-ID: F7MZhgV12DZ
--HG--
extra : rebase_source : c97e4914f4292ac52338a691dc44810f7dda7486
2017-03-29 17:43:21 -04:00
Michael Layzell
23bbc82a2a
Bug 1348113 - Part 2: Sanitize the message names before sending them to telemetry, r=mccr8
...
MozReview-Commit-ID: LPNPZXt4BGU
2017-03-29 10:10:26 -04:00
Michael Layzell
490a6868bf
Bug 1348113 - Part 1: Add the IPC_SYNC_JS_LATENCY_MS probe to track JS sync IPC latency from sendSyncMessage/sendRpcMessage, r=billm
...
MozReview-Commit-ID: 6ROx87BL18p
2017-03-29 10:10:26 -04:00
Christoph Diehl
4d87f0665b
Bug 777600 - Add MessageManager Fuzzer. r=billm
...
--HG--
extra : rebase_source : 2e37fe0109e45216820543512dfbe58f1fba15fe
2017-02-28 16:24:43 -08:00
Gabor Krizsanits
770c47f73c
Bug 1337730 - part1: releaseCachedProcesses API for testing. r=mrbkap
2017-02-21 11:27:23 +01:00
Andrea Marchesini
3043646e52
Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug
...
--HG--
rename : dom/file/File.cpp => dom/file/BaseBlobImpl.cpp
rename : dom/file/File.h => dom/file/BaseBlobImpl.h
rename : dom/file/File.cpp => dom/file/Blob.cpp
rename : dom/file/File.h => dom/file/Blob.h
rename : dom/file/File.cpp => dom/file/BlobImpl.cpp
rename : dom/file/File.h => dom/file/BlobImpl.h
rename : dom/file/File.cpp => dom/file/EmptyBlobImpl.cpp
rename : dom/file/File.h => dom/file/EmptyBlobImpl.h
rename : dom/file/File.cpp => dom/file/FileBlobImpl.cpp
rename : dom/file/File.h => dom/file/FileBlobImpl.h
rename : dom/file/File.cpp => dom/file/MemoryBlobImpl.cpp
rename : dom/file/File.h => dom/file/MemoryBlobImpl.h
rename : dom/file/File.cpp => dom/file/StreamBlobImpl.cpp
rename : dom/file/File.h => dom/file/StreamBlobImpl.h
rename : dom/file/File.h => dom/file/StringBlobImpl.h
rename : dom/file/File.h => dom/file/TemporaryBlobImpl.h
2017-02-16 18:26:38 +01:00
Sylvestre Ledru
9a3ff09f1a
Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/base/ r=Ehsan
...
MozReview-Commit-ID: 5sCNbqC4ew3
--HG--
extra : rebase_source : ca9b4b02d3f438cf7e907bf0c32623d7ab9e6bc9
2017-02-09 15:44:02 +01:00
Brian Hackett
01a649c197
Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
...
--HG--
extra : rebase_source : ebf319af724d5f829cdf5c2386dc82d49be89989
2017-02-10 16:47:50 -07:00