Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Andrea Marchesini
045fcd72bf
Bug 1263392 - ConsoleCallData::mStatus should be set also when ConsoleCallData is not used in workers, r=smaug
2016-04-25 13:53:49 +08:00
Andrea Marchesini
d9a7078f48
Bug 1247953 - Increase the number of stored ConsoleEvent objects, r=bgrinstead
2016-04-19 14:10:15 +02:00
Julian Descottes
1873502247
Bug 659625 - part1: implement Console::clear in dom/base/Console.cpp;r=baku
...
Remove the noop implementation of console.clear and actually clear the
console storage.
mozReview-Commit-ID: B9NGhRARKoR
MozReview-Commit-ID: 2sMEGB2BsAs
2016-04-13 16:33:43 +02:00
Carsten "Tomcat" Book
2f17a28b1a
Backed out changeset 89cfa8c724e1 (bug 659625) for android test failures in own test
2016-04-13 12:30:41 +02:00
Carsten "Tomcat" Book
ef0f6d68b7
Merge mozilla-central to fx-team
2016-04-13 11:58:47 +02:00
Julian Descottes
36f9ca1697
Bug 659625 - part1: implement Console::clear in dom/base/Console.cpp;r=baku
...
Remove the noop implementation of console.clear and actually clear the
console storage.
mozReview-Commit-ID: B9NGhRARKoR
MozReview-Commit-ID: 2sMEGB2BsAs
2016-04-07 19:48:25 +02:00
Kyle Huey
a256ae1a91
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Andrea Marchesini
29fc0130e8
Bug 1261115 - when Console is running in the main thread the existence of mWindow should always be ensured, r=smaug
2016-04-12 06:12:07 -04:00
Andrea Marchesini
84a127149e
Bug 1263392 - Console should reset the state of ConsoleCallData if the worker runnables are not correctly dispatched, r=smaug
2016-04-11 15:08:57 -04:00
Luca Greco
3b564ef4a6
Bug 1211665 - Save originAttributes in the console event messages. r=baku
...
Save the originAttributes of the current principal into the console events,
so that we can filter the console messages by originAttributes (e.g.
WebExtensions console events can be filtered using the addonId that the
ExtensionPages' originAttributes contain.
MozReview-Commit-ID: 5v9BWLbgskd
2016-04-01 13:55:40 +02:00
Andrea Marchesini
9809ef581e
Bug 1260414 - WorkerDebuggerGlobalScope.setConsoleEventHandler should be able to receive a null param, r=bz
2016-03-29 15:56:10 +01:00
Kyle Huey
d791fedcc4
Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz
2016-03-28 10:28:14 -07:00
Andrea Marchesini
193f4fc9df
Followup for bug 1246091 to fix the naming for PopulateConsoleNotificationInTheTargetScope, r=me
2016-03-24 09:29:08 +01:00
Boris Zbarsky
65435eadd8
Followup for bug 1246091 to fix the rooting hazard, get us closer to reopening the CLOSED TREE, and reduce philor's blood pressure.
2016-03-23 22:15:05 -04:00
Andrea Marchesini
80f2b36c8c
Bug 1246091 - patch 7/7 - Correct use of JSCompartment in Console.cpp, r=bz
2016-03-23 22:55:07 +01:00
Andrea Marchesini
7b8a9dcd70
Bug 1246091 - patch 5/7 - Remove data when memory pressure notification is received, r=ejpbruel
2016-03-23 22:55:07 +01:00
Andrea Marchesini
4407d25841
Bug 1246091 - patch 4/7 - Expose ConsoleCallData to WorkerDebuggerGlobalScope, r=ejpbruel
2016-03-23 22:55:07 +01:00
Andrea Marchesini
acbb13fefb
Bug 1246091 - patch 3/7 - Console API should store ConsoleCallData internally, r=ejpbruel
2016-03-23 22:55:07 +01:00
Andrea Marchesini
d288f72bcf
Bug 1246091 - patch 2/7 - Propagate initialization error in Console.cpp, r=ejpbruel
2016-03-23 22:55:07 +01:00
Andrea Marchesini
93977517a5
Bug 1246091 - patch 1/7 - Add some NS_WARN_IF in Console.cpp, r=ejpbruel
2016-03-23 22:55:07 +01:00
Boris Zbarsky
90298f136b
Bug 1257919 part 10. Make the caller and formattedStack getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:35 -04:00
Boris Zbarsky
3370c7dc70
Bug 1257919 part 9. Make the asyncCause/asyncCaller getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
03b1012b2f
Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
dd6bd785db
Bug 1257919 part 7. Make the name getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
c77ea32842
Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
56a021511c
Bug 1257919 part 4. Stop returning StackFrame instances from exceptions::CreateStack. C++ callers of GetCurrentJSStack or exceptions::CreateStack always check for null anyway, and none of them seem to want this non-JS thing. r=khuey
2016-03-22 13:50:31 -04:00
Sebastian Hengst
8cdf264c0e
Backed out changeset 1b5db6edd791 (bug 1257919)
2016-03-22 21:10:45 +01:00
Sebastian Hengst
de4b5ff3eb
Backed out changeset 6e95ee3cd4c6 (bug 1257919)
2016-03-22 21:10:21 +01:00
Sebastian Hengst
8321a9d590
Backed out changeset c4faeb0be959 (bug 1257919)
2016-03-22 21:10:12 +01:00
Sebastian Hengst
15448ddd9f
Backed out changeset 08f1c7239cdf (bug 1257919)
2016-03-22 21:10:01 +01:00
Sebastian Hengst
ad55a59e31
Backed out changeset cf816f733296 (bug 1257919)
2016-03-22 21:09:53 +01:00
Sebastian Hengst
77eb406761
Backed out changeset ff81c52375ba (bug 1257919)
2016-03-22 21:09:32 +01:00
Boris Zbarsky
b162a17fbc
Bug 1257919 part 10. Make the caller and formattedStack getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:35 -04:00
Boris Zbarsky
2c5483111c
Bug 1257919 part 9. Make the asyncCause/asyncCaller getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
66f3a012c0
Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
019231886a
Bug 1257919 part 7. Make the name getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
3a69e5bfdd
Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
02a9f19be9
Bug 1257919 part 4. Stop returning StackFrame instances from exceptions::CreateStack. C++ callers of GetCurrentJSStack or exceptions::CreateStack always check for null anyway, and none of them seem to want this non-JS thing. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
679821ced0
Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley
...
In general, using an AutoJSAPI inited with an object is NOT the same as using
AutoSafeJSContext (or AutoJSAPI inited without an object) and then entering the
compartment of the object: the former will report exceptions to the global of
the object as it comes off the stack, while the latter will not. This only
really matters if we have an object from a window or worker global and hence
might fire error events, or report internal stuff to the web console.
The changes to initing with an object made in this bug are OK for the following
reasons:
1) dom/base/Console.cpp: Always clears its exception before coming off the stack.
2) dom/base/nsDOMClassInfo.cpp: Inits with a non-web global.
3) dom/base/nsFrameMessageManager.cpp: Inits with a non-web global.
4) dom/media/MediaPermissionGonk.cpp: We probably want the caller to notice if
anything here throws.
5) dom/xbl/nsXBLPrototypeBinding.cpp: Inits with a non-web global.
6) dom/xul/nsXULElement.cpp: Inits with a non-web global.
7) extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp: Inits with a non-web global.
8) ipc/testshell/XPCShellEnvironment.cpp: Inits with a non-web global.
2016-03-18 10:48:38 -04:00
Boris Zbarsky
48677a12b6
Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey
2016-02-29 14:52:42 -05:00
Boris Zbarsky
e3eff10fb4
Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey
2016-02-26 15:23:12 -05:00
Andrew McCreight
9f6b653800
Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug
2016-02-22 10:11:02 -08:00
Andrea Marchesini
97d9233311
Bug 1248022 - ConsoleEvent.styles can be a sequence of nullable strings, r=bz
2016-02-13 16:08:17 +00:00
Andrea Marchesini
c2c91dd2b9
Bug 1245957 - Adding assertions in Console about in which thread is running what, r=bz
2016-02-11 17:11:02 +00:00
Andrea Marchesini
fe4fc8eb88
Bug 1245954 - Console StartTimer/StopTimer and IncrementCounter should run in the owning thread, r=bz
2016-02-11 17:09:22 +00:00
Aidin Gharibnavaz
bb0750ec60
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book
498dd069da
Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
d9bbb0c446
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-07 10:56:00 +01:00
Andrea Marchesini
00f5dd53ef
Bug 1244995 - Console should trace the arguments correctly, r=bz
2016-02-07 10:29:12 +00:00