Commit Graph

181 Commits

Author SHA1 Message Date
Pip
4e12ba331b Bug 1264613 - Allow object-to-nonobject serialization. r=baku
Fix the Structured Clone API to avoid assigning a numeric back-reference
id to objects that are serialized as non-objects; in particular, this
fixes incorrect serialization and crashes upon deserialization when a
DedicatedWorkerGlobalScope is serialized twice in the same serialization
packet.
2016-04-19 10:26:00 +02:00
Andrea Marchesini
4570d46a36 Bug 1268303 - Better WorkerFeature management in Console API, r=smaug 2016-05-07 07:49:15 +02:00
Andrea Marchesini
a29728b62b Bug 1269646 - Console API should be NOP after window-inner-destroyed, r=smaug 2016-05-03 10:19:39 +02:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Andrea Marchesini
bad9abbf97 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
fd0f8bf221 Bug 1247953 - Increase the number of stored ConsoleEvent objects, r=bgrinstead 2016-04-19 14:10:15 +02:00
Julian Descottes
0fac5939fc 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

--HG--
extra : rebase_source : a889ffce5ef82224feb691b499f790da9ae6f34f
extra : source : 89cfa8c724e1fcb0909e1414b6051dbd62b40105
2016-04-13 16:33:43 +02:00
Carsten "Tomcat" Book
457bb31f9b Backed out changeset 89cfa8c724e1 (bug 659625) for android test failures in own test 2016-04-13 12:30:41 +02:00
Carsten "Tomcat" Book
4c2ef97599 Merge mozilla-central to fx-team 2016-04-13 11:58:47 +02:00
Julian Descottes
cadb37f0ad 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

--HG--
extra : rebase_source : 3023e1f3d9452f3670af12bab55ad79b51a5af12
2016-04-07 19:48:25 +02:00
Kyle Huey
1cc02aa8c6 Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj 2016-04-11 11:40:06 -07:00
Andrea Marchesini
c4cbf74421 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
330d61a4ae 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
2a28dabb62 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

--HG--
extra : transplant_source : %2C%A1%D4%8AEp%E6G%8A%2C%DA%A8%EE%B3%EA%0E%84xk%FF
2016-04-01 13:55:40 +02:00
Andrea Marchesini
5f2d5ca216 Bug 1260414 - WorkerDebuggerGlobalScope.setConsoleEventHandler should be able to receive a null param, r=bz 2016-03-29 15:56:10 +01:00
Kyle Huey
fe5f7b4105 Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz 2016-03-28 10:28:14 -07:00
Andrea Marchesini
91e4d4e4ea Followup for bug 1246091 to fix the naming for PopulateConsoleNotificationInTheTargetScope, r=me 2016-03-24 09:29:08 +01:00
Boris Zbarsky
12e6e3f600 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
dffe78c29b Bug 1246091 - patch 7/7 - Correct use of JSCompartment in Console.cpp, r=bz 2016-03-23 22:55:07 +01:00
Andrea Marchesini
df932690be 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
931f576f19 Bug 1246091 - patch 4/7 - Expose ConsoleCallData to WorkerDebuggerGlobalScope, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini
a41a9b217f Bug 1246091 - patch 3/7 - Console API should store ConsoleCallData internally, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini
e2091ba30e Bug 1246091 - patch 2/7 - Propagate initialization error in Console.cpp, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini
a29efa56f9 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
bc347a401b 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
dde5cae5bb 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
42b3bbe27a 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
54987c5cc1 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
efa07c06d1 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
655d4654c8 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
60e4be8fc0 Backed out changeset 1b5db6edd791 (bug 1257919) 2016-03-22 21:10:45 +01:00
Sebastian Hengst
0e9bf1445a Backed out changeset 6e95ee3cd4c6 (bug 1257919) 2016-03-22 21:10:21 +01:00
Sebastian Hengst
e6e4d30446 Backed out changeset c4faeb0be959 (bug 1257919) 2016-03-22 21:10:12 +01:00
Sebastian Hengst
336c2cc4ae Backed out changeset 08f1c7239cdf (bug 1257919) 2016-03-22 21:10:01 +01:00
Sebastian Hengst
d5e963398d Backed out changeset cf816f733296 (bug 1257919) 2016-03-22 21:09:53 +01:00
Sebastian Hengst
8b2bf79a7a Backed out changeset ff81c52375ba (bug 1257919) 2016-03-22 21:09:32 +01:00
Boris Zbarsky
8062407932 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
eea8812d6b 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
5df498fbd2 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
cc563df19f 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
38af226a36 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
8ba7a0b580 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
172598b4e2 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
663b9bd562 Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky
7345c5edb1 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
Andrew McCreight
b80e656e9e 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
f114621a79 Bug 1248022 - ConsoleEvent.styles can be a sequence of nullable strings, r=bz 2016-02-13 16:08:17 +00:00
Andrea Marchesini
a1204e41a8 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
e20d589c0b 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
686438c658 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