Граф коммитов

57 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini cb157a61e8 Bug 1363307 - Console.timeEnd(label) should warn if 'label' in an unknwon timer, r=bgrins 2017-05-11 14:36:12 -07:00
Andrea Marchesini 2f43217a11 Bug 1363288 - Console.time() prints a warning if used twice with the same label, r=bgrins 2017-05-11 14:36:09 -07:00
btian bc058622e6 Bug 1351795 - part 2: Remove console.markTimeline. r=baku
MozReview-Commit-ID: EmbscFp9oD4

--HG--
extra : rebase_source : 3f620c05faf82731d384dfca369db62ae8eb871e
2017-05-09 15:34:18 +08: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
Nathan Froyd 5f0417d309 Bug 1361511 - change ownership assertion mechanism for various DOM classes; r=baku
The declarations of their refcounting methods already includes an owning
thread, so let's just piggyback on top of that to assert their owning
thread, rather than having separate fields and tests.
2017-05-03 11:48:54 -04:00
Andrea Marchesini 81bc08c5d9 Bug 1357473 - Update Console to the latest spec - part 6 - Console.count(), r=bgrins 2017-04-20 13:52:41 +02:00
Andrea Marchesini 62832535e3 Bug 1357473 - Update Console to the latest spec - part 5 - Console.time(), r=bgrins r=smaug 2017-04-20 13:52:31 +02:00
Andrea Marchesini 309383c5b0 Bug 1357473 - Update Console to the latest spec - part 4 - Console.trace(), r=bgrins 2017-04-20 13:52:24 +02:00
Andrea Marchesini 9a89dabb3e Bug 1357473 - Update Console to the latest spec - part 3 - Console.groupEnd(), r=bgrins, r=nchevobbe 2017-04-18 10:04:00 +02:00
Andrea Marchesini 5c55c3b994 Bug 1357473 - Update Console to the latest spec - part 2 - Console.clear(), r=bgrins 2017-04-20 13:50:13 +02:00
Tom Tromey d9a58b20b7 Bug 1346326 - implement new console.count semantics; r=baku
Bug 1346326 points out that the console.count spec has changed to

  void count(optional DOMString label = "default");

This patch implements the same behavior, but does not change the webidl,
on the theory that perhaps something relies on the current "any..."
type.

MozReview-Commit-ID: 9RQKAZ4AVtT
2017-04-07 10:04:10 -06:00
Andrea Marchesini dddaf22902 Bug 1357503 - Some additional CX exception checks in Console API code, r=smaug 2017-04-18 22:22:55 +02:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 738d097aae Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 3c564a2b02 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
nchevobbe e7354910af Bug 1088900 - Parse console.group/groupCollapse for custom styling. r=baku
Process the arguments of "MethodGroup" and "MethodGroupCollapsed"
Use the result of ProcessArguments to compute the groupName so we can get
rid of the "%c" parts.

MozReview-Commit-ID: 5B2jqG5RoRj

--HG--
extra : rebase_source : 256ef1ffc80157751cb202cc163cb2ca42c7397a
2017-04-11 15:14:40 +02:00
Ben Kelly a68b3b11fd Bug 1350433 Expose WorkerPrivate::ServiceWorkerScope() instead of using WorkerName() all over the place. r=asuth 2017-03-24 19:56:48 -04:00
Kris Maglione 85333437e5 Bug 1314361 - Part 3: Stop using origin attributes for add-on ID in console filtering. r=baku 2017-02-26 13:13:45 -08:00
Joel Maher c203f27827 Bug 1335099 - add BUG_COMPONENT to many dom/* subdir files. r=overholt
MozReview-Commit-ID: CyIIs98hnUI
2017-02-06 09:45:55 -05:00
Sebastian Hengst 7225ec6170 Backed out changeset 9a332af74af5 (bug 1335099) for build bustage (moz.build rule matches no files). r=backout on a CLOSED TREE 2017-02-06 16:21:20 +01:00
Joel Maher 60e61eed48 Bug 1335099 - add BUG_COMPONENT to many dom/* subdir files. r=overholt
MozReview-Commit-ID: CyIIs98hnUI
2017-02-06 09:45:55 -05:00
Tom Tung e185f7bc4c Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly. 2017-02-06 09:19:34 +08:00
Kris Maglione 729b7a2019 Bug 1273251: Part 3 - Allow CallbackObject to contain a null callable. r=peterv
MozReview-Commit-ID: FCXVHouhG3I

--HG--
extra : rebase_source : f3e9325559d40bcb4017ec2505f435275d4fea7f
2016-11-14 21:25:37 -08:00
Andrea Marchesini 359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Olli Pettay 0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Yoshi Huang 2ceecc22f5 Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug 2016-12-21 14:59:21 +08:00
Andrea Marchesini 3f9ca03e22 Bug 1323676 - Remove ConsoleTimerStart.started, r=bgrins 2016-12-16 22:42:10 +01:00
Andrea Marchesini 769ca2e705 Bug 1323781 - Console API should use OriginAttributes instead a privateBrowsing boolean, r=ehsan, r=smaug 2016-12-16 22:08:31 +01:00
Carsten "Tomcat" Book 6fce6188df Backed out changeset 7c18fbb292d1 (bug 1323781) for assertion failures
--HG--
extra : rebase_source : 0d9518d855e463eb85e262452e9a957716735f12
2016-12-16 11:57:24 +01:00
Andrea Marchesini 553b437a8c Bug 1323781 - Console API should use OriginAttributes instead a privateBrowsing boolean, r=ehsan 2016-12-16 09:23:27 +01:00
Andrea Marchesini 4f830c36c0 Bug 1322292 - Some fixes for the Performance API in workers - part 3 - TimeStampToDOMHighRes() in workerPrivate, r=bz 2016-12-16 09:08:05 +01:00
Andrea Marchesini 64b687fb1c Bug 1322292 - Some fixes for the Performance API in workers - part 2 - Get rid of NowBaseTimeStamp(), r=bz 2016-12-16 09:07:39 +01:00
Florian Quèze aca29148b2 Bug 1319844 - Fix a few broken paths, r=Gijs. 2016-11-28 12:29:31 +01:00
Carsten "Tomcat" Book d17bc55a94 Backed out changeset b05c8f63d8a2 (bug 1319844) 2016-11-28 15:56:44 +01:00
Florian Quèze dcdba1c4c0 Bug 1319844 - Fix a few broken paths, r=Gijs. 2016-11-28 12:29:31 +01:00
Luca Greco ce8c6bf791 Bug 1318006 - Clone originAttributes on cached console message events. r=baku
MozReview-Commit-ID: tnWCa5CsuE

--HG--
extra : rebase_source : ef536e135cd415a9f1f476e30e5636f466a43d31
2016-11-16 18:03:08 +01:00
Andrea Marchesini f8cf3b6565 Bug 1290021 - Implement a prototype version of Houdini "Worklets Level 1" spec - part 3 - Console API in worklet, r=smaug 2016-11-06 09:54:52 +01:00
Sebastian Hengst 77dc2c4eef Bug 1310297 - Remove test annotations using b2g, mulet or gonk: dom/console. r=RyanVM
MozReview-Commit-ID: COPyxutfGaR

--HG--
extra : rebase_source : 5309bbf4e4d848b3cea3f880fb8ba6d55171554d
2016-11-05 11:29:15 +01:00
Tom Tung c34ee7095c Bug 1187335 - P1 - Add a way to report error to all clients for ServiceWorker and SharedWorker. r=bkelly. 2016-05-23 14:56:46 +08:00
Andrea Marchesini 8ccb3ca885 Bug 1301032 - Remove a warning when Console.cpp is compiled, r=smaug 2016-09-07 18:08:23 +02:00
Nicholas Nethercote 34dcc7b852 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");

--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Andrea Marchesini b3d116ff7e Bug 1286487 - WorkerProxyToMainThreadRunnable must keep alive workers using WorkerHolder - part 2, r=me 2016-08-16 09:35:21 +02:00
Andrew McCreight c054f8ec15 Bug 1292289, part 3 - Remove dependency of Console on xpcprivate.h. r=mrbkap
This file only uses functions on nsIXPConnect, so it can get it from
nsContentUtils and stop including xpcprivate.h, which eliminates
another file from being rebuilt when xpcprivate.h gets touched.

MozReview-Commit-ID: AT5Khu0vkyf

--HG--
extra : rebase_source : fa40afb7df9afe1dede714c111947e4e85aee34e
2016-08-04 11:35:13 -07:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Boris Zbarsky 13a6409e22 Bug 1280818 part 2. Change console to capture the first non-self-hosted subsumed frame when it just needs a caller location, instead of capturing the first frame and then possibly failing to get useful location info out of it because it's self-hosted. r=baku 2016-07-21 23:41:02 -04:00