Commit Graph

3204 Commits

Author SHA1 Message Date
Andrea Marchesini
a36cc3fb5e Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent 2015-06-15 14:08:25 +01:00
Boris Zbarsky
ad66f1f56a Bug 1174487. Stop using JS_ReportPendingException in ThrowAndReport. Just let the AutoJSAPI do the work for us. r=bholley 2015-06-15 20:11:54 -04:00
Boris Zbarsky
0d146ab622 Bug 1173593. Make it possible to throw TypeError (or, in fact, any other Error from the content compartment) from js-implemented webidl. r=bholley 2015-06-15 20:09:36 -04:00
Nikhil Marathe
2d46bad799 Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku 2015-03-10 18:57:09 -07:00
Boris Zbarsky
441c49e3a3 Bug 1025395. Output a #error instead of a nonexistent macro for the CC bits of example codegen, to make it clearer to people using it what they should do with CC. r=peterv 2015-06-25 01:39:28 -07:00
Boris Zbarsky
bdc003b7d7 Bug 1173787. The column number of an exception populated via PopulateReportBlame should be 1-based. r=fitzgen 2015-06-12 22:21:44 -04:00
Jinank Jain
b11d337f06 Bug 1155342 - Disallow flagging a [NewObject] method with a [DependsOn] value that implies it might return the same value when called twice. r=bzbarsky 2015-06-10 22:07:51 +02:00
Wes Kocher
a557d0fae7 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Brian Hackett
ed8ae503ae Bug 1170372 - Use unboxed arrays for Array() and other functions keyed to allocation sites, r=jandem. 2015-06-10 09:42:22 -07:00
Paolo Amadini
e904f4aadc Bug 1158133 - Add a way to disable async stacks, and disable by default on mobile platforms. r=bent,jimb 2015-06-09 11:17:09 +02:00
Daniel Holbert
d72b3ac614 Bug 1169086 followup: Add missing 'override' annotation to VerifyTraceProtoAndIfaceCacheCalledTracer::trace() method decl. rs=ehsan 2015-06-03 11:47:06 -07:00
Ryan VanderMeulen
2a1a08dfdf Backed out changeset a2a7009adafc (bug 1172246) for crashes. 2015-06-09 13:40:44 -04:00
Boris Zbarsky
9def88ee9d Bug 1172246. Make sure CallSetup's handling of exceptions it wants to deal with itself works even when the callable is a JSNative that use the JS_Report*Error APIs instead of throwing exceptions in the usual way. r=bholley 2015-06-08 16:16:27 -04:00
Terrence Cole
948a1d6deb Bug 1169086 - Use virtual dispatch to implement callback tracer; r=jonco, r=mccr8 2015-05-28 16:35:08 -07:00
Jose Antonio Olivera Ortega
c4f7716af2 Bug 1131352 - Part 1: Fix codegen issue. r=smaug 2015-05-24 05:45:00 -04:00
Andrew Comminos
8695719287 Bug 1168845 - Update WebGL interface names to follow the spec. r=smaug, r=dglastonbury 2015-06-01 10:17:00 -04:00
Tom Schuster
721236a44b Bug 1135993 - Remove js::IsInNonStrictPropertySet. r=jorendorff 2015-06-02 23:27:39 +02:00
Terrence Cole
bab09d5096 Bug 1169791 - Strongly type GetTenuredGCThingZone; r=jonco, r=mccr8 2015-06-01 14:11:08 -07:00
Boris Zbarsky
edd243eb7a Bug 1166443. Example codegen should output the right signature for Wrap() when the object is not wrappercached. r=peterv 2015-06-01 23:19:57 -04:00
Olli Pettay
45670b5e65 Bug 1149891, backout bug 1081038 because it made us run mutation observer callbacks against the spec, part 2, r=bholley 2015-05-29 19:11:09 +03:00
Andrew Comminos
85eaf561cd Bug 974832 - Add support for WebGL's EXT_disjoint_timer_query. r=dglastonbury, r=smaug 2015-05-27 07:12:00 -04:00
Birunthan Mohanathas
cd748a7266 Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
Nick Fitzgerald
1b8e2780b5 Bug 1024774 - Part 7: Add HeapSnapshot WebIDL interface; r=bholley 2015-05-28 07:37:42 -07:00
Nick Fitzgerald
b3b4912ae8 Bug 1024774 - Part 1: Add the ChromeUtils WebIDL interface. r=bholley 2015-05-28 07:37:42 -07:00
Jason Orendorff
d3220a631f Bug 1140482 - Add JSPROP_RESOLVING. Give NativeDefineProperty standard behavior in cases where a non-resolving define needs to trigger a resolve hook. r=Waldo. 2015-05-01 14:03:17 -05:00
Terrence Cole
7b1f37d23c Bug 1167453 - Rename JSGCTraceKind and make it a C++11 enum class; r=jonco 2015-05-22 10:40:24 -07:00
Boris Zbarsky
2a3ac0aa25 Bug 1158806. Don't try to include stuff for a generated hasInstance hook if we have no interface object, since in that case we don't need the include. r=peterv 2015-05-19 21:05:06 -04:00
Terrence Cole
97c65455fd Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Birunthan Mohanathas
f9c058aaf6 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj 2015-05-18 13:50:34 -07:00
Andrea Marchesini
6ce7c91736 Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan 2015-05-18 14:52:26 +01:00
Boris Zbarsky
368bafb0ef Bug 913053. Split up IDLTypedef and IDLTypedefType, and likewise for IDLCallback vs IDLCallbackType, so it's clearer whether we're operating on types or objects represented by those types. r=khuey 2015-05-13 22:19:22 -04:00
Ehsan Akhgari
382b6d4528 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Andrea Marchesini
7a35ed6840 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher
6fd66905f8 Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Andrea Marchesini
8216a76e2b Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen
ab585ee6e8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE
2015-05-11 11:43:59 -04:00
Andrea Marchesini
3d1cf0758c Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Jordan Santell
9eacf76456 Bug 922221 - implement console.timeStamp(label) to create profile timeline markers. r=khuey 2015-04-29 12:48:57 -07:00
Steve Fink
290823d0e6 Bug 1162318 - Rooting hazard in WrapNativeParentHelper, r=peterv 2015-05-07 09:51:06 -07:00
Tom Tromey
403554c877 Bug 1152033 - Expose CSS lexer to js. r=heycam, r=bz 2015-05-04 10:28:00 -04:00
Boris Zbarsky
2b2824bbc7 Bug 1160628. Speed up the URL constructor in the common case of no base URI. r=baku 2015-05-05 13:38:56 -04:00
Ryan VanderMeulen
eca9ce2103 Merge m-c to inbound. a=merge 2015-05-04 16:11:38 -04:00
Carsten "Tomcat" Book
39e98f065d Merge mozilla-central to b2g-inbound 2015-05-04 15:26:45 +02:00
Jamin Liu
9f7a4accc5 Bug 1063444 - Implement LE scan related methods and LE device event. r=joliu, r=mrbkap 2015-05-04 18:59:02 +08:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Tom Schuster
22fcad3421 Bug 1161101 - Use JS_GetOwnPropertyDescriptor instead of GetPropertyDescriptor in dom/bindings. r=bz 2015-05-04 20:27:02 +02:00
Brian Birtles
fb73e3f8ee Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly. r=smaug 2015-04-30 09:06:43 -04:00
Carsten "Tomcat" Book
5791ead1d5 Backed out changeset 1b5fc672f0d4 (bug 1159082) for B2G ICS Emulator opt R6 test failures on a CLOSED TREE 2015-04-30 13:15:04 +02:00
Brian Birtles
1661b20915 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly; r=smaug 2015-04-28 10:16:45 +09:00
Ben Kelly
98b548236d Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
ziyunfei
a2bb96ff77 Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Tom Schuster
883c729e3a Bug 1159347 - Make BaseProxyHandler::getPropertyDescriptor not-pure virtual. r=efaust 2015-04-29 10:47:48 +02:00
Boris Zbarsky
b09b314191 Bug 1157588. Produce a better error message when someone tries to pass a mixin as an argument. r=peterv 2015-04-28 12:25:55 -04:00
Boris Zbarsky
f3b244998d Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv 2015-04-28 12:25:55 -04:00
David Major
c92c020b89 Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium 2015-04-27 19:59:27 -04:00
Boris Zbarsky
7c563264f9 Bug 1155984. Improve the performance of the "self" getter in both window and workers. r=peterv,jorendorff 2015-04-27 13:38:12 -04:00
Boris Zbarsky
7f61a6b625 Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
99430ec9c0 Bug 1157898 part 4. Add ErrorResult::ErrorCodeIs() and use it in various places to get rid of ErrorCode(). r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
ece8127b76 Bug 1157754 part 3. Make ClearMessage private on ErrorResult. r=peterv 2015-04-26 22:38:17 -04:00
Boris Zbarsky
399ba482a5 Bug 1157754 part 1. Add a way to "catch" an ErrorResult, and a way to safely convert an ErrorResult to an nsresult. r=peterv 2015-04-26 22:38:17 -04:00
Aryeh Gregor
0263fdcfc2 Bug 1157848 - Fix leak in OwningNonNull constructor from already_AddRefed; r=bz 2015-04-24 14:27:34 +03:00
Nikhil Marathe
b79d343a14 Bug 1131327 - Patch 1 - Introduce ServiceWorkerRegistration{Base,MainThread,WorkerThread} r=baku 2015-04-03 15:18:55 -07:00
Jan de Mooij
bfb27c97d1 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Carsten "Tomcat" Book
150d4d1475 Backed out 19 changesets (bug 1149397, bug 1065657, bug 1024774) for fixing Linux PGO xpcshell bustage on a CLOSED TREE
Backed out changeset 53058615e7a3 (bug 1024774)
Backed out changeset 68fe0894bb09 (bug 1065657)
Backed out changeset 1b9620d674df (bug 1024774)
Backed out changeset a31c514b59da (bug 1024774)
Backed out changeset 0fcf8757f6c2 (bug 1024774)
Backed out changeset 9a3c71b925d4 (bug 1024774)
Backed out changeset 783acc92af04 (bug 1024774)
Backed out changeset ad71c9a3446b (bug 1024774)
Backed out changeset 4f37e72e70f6 (bug 1024774)
Backed out changeset ec869578cc0a (bug 1024774)
Backed out changeset 3c1d306c8a3d (bug 1024774)
Backed out changeset b3a90f30892d (bug 1024774)
Backed out changeset cf7bbb3774c0 (bug 1024774)
Backed out changeset 2522eb4d3cf2 (bug 1024774)
Backed out changeset 89a502d88f9c (bug 1024774)
Backed out changeset 61046ad3161f (bug 1024774)
Backed out changeset 36706aaa2f06 (bug 1024774)
Backed out changeset ba8e68e05149 (bug 1149397)
Backed out changeset 532169437c2f (bug 1065657)
2015-04-23 08:37:24 +02:00
Nick Fitzgerald
7017b19d0c Bug 1024774 - Part 7: Add HeapSnapshot WebIDL interface; r=bholley 2015-04-22 11:09:54 -07:00
Nick Fitzgerald
06aaf342e4 Bug 1024774 - Part 1: Add the ChromeUtils WebIDL interface. r=bholley 2015-04-22 11:09:54 -07:00
Andrea Marchesini
eed309c59a Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan 2015-04-22 08:29:18 +02:00
Ehsan Akhgari
d278570d19 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher
01d294be4b Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE 2015-04-21 15:47:40 -07:00
Rahul
1267ab5733 Bug 1152473 - Remove InstallEvent. r=nsm,ehsan 2015-04-20 18:47:13 -07:00
Ehsan Akhgari
74f43d26e8 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Boris Zbarsky
7908fd12c4 Bug 1152902 part 1. Add a way to flag a method in webidl as being identity-testable, so we'll expose such an identity test from bindings to other C++ code. r=peterv 2015-04-17 22:01:02 -04:00
Boris Zbarsky
54db3e707e Bug 1155942. Treat USVString and ByteString as serializable values. r=bkelly 2015-04-20 16:54:46 -04:00
Aryeh Gregor
a5d422d0dc Bug 1153649 part 3 - More OwningNonNull improvements; r=bz 2015-04-19 15:28:50 +03:00
Aryeh Gregor
e6726b3179 Bug 1153649 part 1 - Improve usability of OwningNonNull; r=bz 2015-04-19 15:28:49 +03:00
Phil Ringnalda
afefb44917 Back out 2 changesets (bug 1152902) for Gu bustage
CLOSED TREE

Backed out changeset 462f2f668259 (bug 1152902)
Backed out changeset 1c5ed66652c3 (bug 1152902)
2015-04-18 15:30:17 -07:00
Boris Zbarsky
0c3477aecc Bug 1155793 part 2. Split apart the concepts of movability and eliminatability in jitinfo, since some things are not movable but are eliminatable. r=efaust. 2015-04-17 22:01:02 -04:00
Boris Zbarsky
5a219cc77a Bug 1155793 part 1. Make it possible to safely change the number of bits in the slotIndex field in jitinfo. r=efaust 2015-04-17 22:01:02 -04:00
Boris Zbarsky
9708bf2310 Bug 1152902 part 1. Add a way to flag a method in webidl as being identity-testable, so we'll expose such an identity test from bindings to other C++ code. r=peterv 2015-04-17 22:01:02 -04:00
Jim Blandy
a52b425862 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley 2015-04-08 21:23:48 -04:00
Boris Zbarsky
e23b0186b2 Bug 1129239. Don't require 'optional' keyword on trailing dictionary arguments if the dictionary has a required member. r=smaug 2015-04-17 12:13:25 -04:00
Ben Kelly
20c070b338 Bug 1110485 P0 Add an ErrorResult constructor that takes nsresult. r=bz 2015-04-16 12:00:15 -07:00
Daniel Holbert
2161e09d2c Bug 1148506: Remove unused variable 'bool result' from code generated by getDeleterBody(), in Codegen.py. r=jorendorff 2015-04-16 11:00:28 -07:00
Jim Blandy
c49a3b9f79 Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium 2015-03-19 00:46:40 -07:00
Ehsan Akhgari
aed12567f8 Bug 1154831 - Remove the gcc-4.6-warning-silencing code in ErrorResult::ErrorResult; r=bzbarsky 2015-04-16 07:29:31 -04:00
Martin Thomson
91567c5feb Bug 1153294 - Exposing Document.documentLoadGroup to Chrome JS, r=sicking 2015-04-15 14:19:21 -07:00
Ehsan Akhgari
3344e3c192 Bug 1149987 - Part 8: Do not store or match Response objects with a Vary:* header; r=bkelly 2015-04-15 15:55:51 -04:00
Ehsan Akhgari
d9154ef126 Bug 1149987 - Part 4: Do not attempt to delete ErrorResult::mMessage when deserializing the object from IPDL; r=bzbarsky
In opt builds, we do not initialize mMessage, so the null check is going
to be ineffective to test whether mMessage has a value that we should
delete.  But in IPDL, the ParamTraits Read method is only called with
freshly allocated objects, so we don't need to free anything here.
In order to be safe and ensure that we don't leak this memory, this
patch adds a number of assertions to check whether mMessage is
indeed only initialized where we expect it to.
2015-04-15 15:55:01 -04:00
Brian Birtles
cae37c8fed Bug 1153734 part 5 - Add AnimationEffectReadonly as a superinterface of KeyframeEffectReadonly; r=smaug
This patch also replaces some tabs with spaces in KeyframeEffect.h because I was
in the area.
2015-04-15 08:48:21 +09:00
Paul Adenot
d8c0b4d55d Bug 1148496 - Allow to set an interface member as [Deprecated] in WebIDL. r=bz,smaug 2015-04-14 17:03:49 +02:00
Boris Zbarsky
5c0ebc7a8f Bug 1153516. Stop using loose is() comparisons in test_dom_xrays.html. r=bholley 2015-04-13 19:36:44 -04:00
Brian Birtles
28a48770ea Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug
And then re-add AnimationTimeline as an abstract super-interface of
DocumentTimeline.
2015-04-10 10:34:22 +09:00
Doug Turner
1cb1b34095 Bug 1038811 - Push Notifications - WebIDL changes. r=nsm. sr=jst 2015-04-10 20:19:28 -07:00
Ryan VanderMeulen
e7c9ec097f Merge m-c to b2g-inbound. a=merge 2015-04-09 12:08:54 -04:00
Thomas Zimmermann
559b775004 Bug 1146355: Prepare build system to support Bluetooth APIs v1 and v2, r=shuang
This patch adds support for both Bluetooth interfaces to the build
system. The actual interface must be selected at compile time.
2015-04-09 15:57:40 +02:00
Thomas Zimmermann
508a9da29d Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu 2015-04-09 15:57:40 +02:00
Ehsan Akhgari
293095378e Bug 1149987 - Part 3: Give ErrorResult a move constructor and a move assignment operator; r=bzbarsky 2015-04-08 22:44:50 -04:00
Ehsan Akhgari
1d5748e27e Bug 1149987 - Part 2: Make ErrorResult unassignable; r=bzbarsky
This object is not copyable, so it should probably not be
assignable either, especially since the compiler generated
copy constructor can potentially cause UAF issues on the
mMessage member, for example.
2015-04-08 22:44:47 -04:00
Ehsan Akhgari
5303aae53b Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer; r=bzbarsky 2015-04-08 22:44:44 -04:00
Ehsan Akhgari
2049093026 Bug 1151884 - Enable the uint32_t overload of ToJSValue; r=smaug 2015-04-08 21:58:07 -04:00
Ryan VanderMeulen
a148661e18 Backed out 5 changesets (bug 1149987) for mochitest crashes.
Backed out changeset b62e371d6189 (bug 1149987)
Backed out changeset daa762fca8e6 (bug 1149987)
Backed out changeset bdb64d5befa5 (bug 1149987)
Backed out changeset 693901a4bcde (bug 1149987)
Backed out changeset e7c41c8653c4 (bug 1149987)

CLOSED TREE
2015-04-08 11:49:49 -04:00
Ehsan Akhgari
915fd31fbc Bug 1149987 - Part 5: Do not store or match Response objects with a Vary:* header; r=bkelly 2015-04-08 10:27:40 -04:00
Ehsan Akhgari
1e2d6ce351 Bug 1149987 - Part 3: Give ErrorResult a move constructor and a move assignment operator; r=bzbarsky 2015-04-08 10:27:37 -04:00
Ehsan Akhgari
38c90e2d03 Bug 1149987 - Part 2: Make ErrorResult unassignable; r=bzbarsky
This object is not copyable, so it should probably not be
assignable either, especially since the compiler generated
copy constructor can potentially cause UAF issues on the
mMessage member, for example.
2015-04-08 10:27:36 -04:00
Ehsan Akhgari
de0743a17a Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer; r=bzbarsky 2015-04-08 10:27:35 -04:00
Nikhil Marathe
0bb77ad8b0 Bug 1109751 - Consume FormData support in Fetch API. r=baku 2015-04-03 22:55:15 -07:00
Wes Kocher
d642860643 Backed out 2 changesets (bug 1109751) for asan mochitest-3 failures
Backed out changeset 269ce19afa43 (bug 1109751)
Backed out changeset add6d1bd2e52 (bug 1109751)
2015-04-03 12:22:47 -07:00
Nikhil Marathe
833423e628 Bug 1109751 - Consume FormData support in Fetch API. r=baku 2015-04-02 10:51:13 -07:00
Boris Zbarsky
d03f59df28 Bug 1146333. Get rid of WrapCallThisValue and just use ToJSValue, now that we have it. r=peterv 2015-03-30 23:43:45 -04:00
Jason Orendorff
dd9176d431 Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv. 2015-03-26 06:13:18 -05:00
Wes Kocher
e18e14d8e1 Backed out 20 changesets (bug 1138499, bug 1148750, bug 1149563, bug 1148652, bug 1123875, bug 1145636, bug 1147660, bug 1148568, bug 1142828) for talos other timeouts CLOSED TREE
Backed out changeset 3fc49391f7fe (bug 1148750)
Backed out changeset 75e867c1c39e (bug 1148750)
Backed out changeset 7f6a4e3976f0 (bug 1148750)
Backed out changeset 91d726011835 (bug 1149563)
Backed out changeset fc7c3cf0e526 (bug 1148652)
Backed out changeset 35a01c7e0f8d (bug 1148652)
Backed out changeset 3125cc5a7a65 (bug 1148652)
Backed out changeset a9f10724b83b (bug 1148568)
Backed out changeset 87132a806ab0 (bug 1147660)
Backed out changeset e6b410c7b847 (bug 1147660)
Backed out changeset c350fe54d9c0 (bug 1147660)
Backed out changeset e4b971996b94 (bug 1147660)
Backed out changeset f221db19fb75 (bug 1147660)
Backed out changeset c4599f0cff00 (bug 1142828)
Backed out changeset c7388a9c3935 (bug 1138499)
Backed out changeset 9b51b38317d6 (bug 1138499)
Backed out changeset ad243a3cd06f (bug 1138499)
Backed out changeset fafda276abd9 (bug 1138499)
Backed out changeset 0a00470fdc2a (bug 1145636)
Backed out changeset 06dbe25231c2 (bug 1123875)
2015-04-01 19:17:45 -07:00
Jason Orendorff
e6617fbe7b Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv. 2015-03-26 06:13:18 -05:00
Vladimir Vukicevic
f3b0e44deb Bug 1148005; Update WebVR APIs based on latest spec changes; r=baku 2015-04-01 16:02:20 -04:00
Tom Schuster
b6e24288b0 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Boris Zbarsky
3e4b91c38a Bug 1144397. Disallow using fill when dedent would do. r=peterv 2015-03-30 23:43:24 -04:00
L. David Baron
7c9e7b5d4f Back out changeset 64934914c29d (bug 1144397) for widespread test bustage, on a CLOSED TREE. 2015-03-30 21:52:35 -07:00
L. David Baron
ee77e2eda3 Back out changeset 616e32e3da77 (bug 1146333) for widespread test bustage. 2015-03-30 21:52:07 -07:00
Boris Zbarsky
ce9a231f83 Bug 1146333. Get rid of WrapCallThisValue and just use ToJSValue, now that we have it. r=peterv 2015-03-30 23:43:45 -04:00
Boris Zbarsky
05349cc108 Bug 1144397. Disallow using fill when dedent would do. r=peterv 2015-03-30 23:43:24 -04:00
Cameron McCormack
161a8c2a7e Bug 1072101 - Part 2: Implement FontFaceSet.{entries,values}. r=peterv 2015-03-31 14:05:33 +11:00
Andrew McCreight
1f6e5cfea2 Bug 1147951, part 3 - Remove unnecessary includes of nsIProgrammingLanguage. r=baku 2015-03-30 10:45:39 -07:00
Eddy Bruël
52887dab0d Bug 1092102 - Implement WorkerDebuggerGlobalScope.setImmediate;r=khuey 2015-03-30 13:54:38 +02:00
Andrew McCreight
12bf4e0709 Bug 1147967 - Remove CreateStackFrameLocation. r=bholley
This method is defined on nsIXPConnect and StackFrame, but is not used.

Also the non-default constructor that for StackFrame that is no longer used.
2015-03-29 07:52:53 -07:00
Phil Ringnalda
6ed9961a65 Backed out changeset d72144153749 (bug 1147005) for being on top of a patch on top of a patch being backed out
CLOSED TREE
2015-03-28 10:39:09 -07:00
Tom Schuster
66af630422 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Cameron McCormack
8b1db2cde9 Bug 1146235 - Followup to address review comment correctly. 2015-03-28 15:05:04 +11:00
Cameron McCormack
89f3438815 Bug 1146235 - Part 2: Expose @@iterator aliases on XrayWrappers. r=peterv 2015-03-28 11:44:44 +11:00
Cameron McCormack
8e8b4598a7 Bug 1146235 - Part 1: Add support for an [Alias] extended attribute on IDL operations. r=peterv 2015-03-28 11:44:39 +11:00
Cameron McCormack
3a8fd6b8cc Bug 1146234 - Allow non-object values to be used as the this value when invoking IDL callback functions. r=peterv 2015-03-28 11:44:29 +11:00
Nick Fitzgerald
40a1a6071d Bug 1038238 - Part 4: Rename JS::StringifySavedFrameStack to JS::BuildStackString; r=jorendorff 2015-03-27 13:08:46 -07:00
Nick Fitzgerald
4736a927ec Bug 1038238 - Part 0: Make js/src/vm/SavedStacks.h use 1-based column numbers,
like js::ComputeStackString and other browsers do; r=jorendorff

https://bugzilla.mozilla.org/show_bug.cgi?id=1038238
2015-03-27 13:08:46 -07:00
Jason Orendorff
db4ac4cade Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.

There is no change in behavior.

In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.

We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).

Notes:

*   InvokeGetterOrSetter had to be split into two functions:
    InvokeGetter takes a MutableHandleValue out-param,
    InvokeSetter a HandleValue in-param.

*   Watchpoints can still tamper with values being assigned. So can
    JSSetterOps. I'm pleased we can support this craziness in a way that
    doesn't have to spread via the type system to encompass the entire
    codebase.

*   Change in GlobalObject::setIntrinsicValue is not really a change.
    Yes, it asserted before, but an exception thrown during self-hosting
    initialization is not going to go unnoticed either.

*   Since the receiver argument to js::SetProperty() is at the end now, it
    makes sense for it to be optional. Some callers look nicer.
2015-03-01 13:16:19 -06:00
Boris Zbarsky
1348cf51b0 Bug 1147193. Go back to having our accessors on JSStackFrame infallible. r=bholley 2015-03-26 23:05:16 -04:00
Eddy Bruël
c35b5d7565 Bug 1092102 - Implement WorkerDebuggerGlobalScope.reportError;r=khuey 2015-03-26 20:09:45 +01:00
Jason Orendorff
d28f3fee83 Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo. 2015-02-17 11:58:43 -06:00
Terrence Cole
ef0a198902 Bug 1135985 - Split callback and marking tracers completely; r=jonco, r=mccr8 2015-02-25 13:11:37 -08:00
Wes Kocher
dc5b8282c8 Merge b2g-inbound to m-c a=merge CLOSED TREE 2015-03-23 16:47:58 -07:00
Jocelyn Liu
f19ab05fd5 Bug 1114515 - Par h4: Implement Service, Characteristic, Descriptor interfaces for GATT client DiscoverServices API. r=btian, r=mrbkap
This patch covers
1) Add BluetoothGattService, BluetoothGattCharacteristic, BluetoothGattDescriptor interfaces
2) Create services, characteristics, descriptors from handling signals distributed by BluetoothGattManager
2015-03-23 03:27:00 -04:00
Ehsan Akhgari
b89590e3d5 Bug 1145631 - Part 2: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the WebIDL codegen; r=froydnj 2015-03-21 12:28:16 -04:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
080c70e4d2 Bug 1143529 part 2. Tighten up the assert in binding Wrap methods. r=peterv 2015-03-23 12:18:05 -04:00
Phil Ringnalda
8a89e647fd Backed out 9 changesets (bug 1142775, bug 1139683, bug 1143810, bug 1142761, bug 1142784, bug 1142794, bug 1144819) for widespread bustage
CLOSED TREE

Backed out changeset 7613fc978d36 (bug 1142794)
Backed out changeset e5f0cb31263d (bug 1142784)
Backed out changeset dcd0af73ac84 (bug 1142784)
Backed out changeset 034f9c8e79ee (bug 1142784)
Backed out changeset ce0ee37e3ca9 (bug 1142775)
Backed out changeset 1519b8f2bbba (bug 1142761)
Backed out changeset 26fd55677841 (bug 1139683)
Backed out changeset 7ebc76a450c3 (bug 1144819)
Backed out changeset 92adb459d519 (bug 1143810)
2015-03-22 09:34:25 -07:00
Jason Orendorff
60373a960b Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.

There is no change in behavior.

In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.

We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).

Notes:

*   InvokeGetterOrSetter had to be split into two functions:
    InvokeGetter takes a MutableHandleValue out-param,
    InvokeSetter a HandleValue in-param.

*   Watchpoints can still tamper with values being assigned. So can
    JSSetterOps. I'm pleased we can support this craziness in a way that
    doesn't have to spread via the type system to encompass the entire
    codebase.

*   Change in GlobalObject::setIntrinsicValue is not really a change.
    Yes, it asserted before, but an exception thrown during self-hosting
    initialization is not going to go unnoticed either.

*   Since the receiver argument to js::SetProperty() is at the end now, it
    makes sense for it to be optional. Some callers look nicer.
2015-03-01 13:16:19 -06:00
Jason Orendorff
6b90d382df Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo. 2015-02-17 11:58:43 -06:00
Tom Schuster
308ff4d0ec Bug 837630 - Stop hiding __proto__ from O.getOwnPropertyNames. r=Waldo,peterv,past 2015-03-19 17:42:15 +01:00
Boris Zbarsky
54c64f20a9 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Boris Zbarsky
50b622a067 Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp.  The rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Boris Zbarsky
14dff9a0e8 Bug 1117172 part 1. Allow passing an optional aGivenProto to binding Wrap methods. r=peterv 2015-03-19 10:13:32 -04:00
Andrew McCreight
c34850707a Bug 1137536, part 3 - Move the top level DeferredFinalize functions into their own file. r=smaug 2015-03-18 11:36:03 -07:00
Andrew McCreight
0f7082e12b Bug 1137536, part 1 - Move DeferredFinalize out of the cyclecollector namespace. r=smaug 2015-03-18 11:36:03 -07:00