Commit Graph

4434 Commits

Author SHA1 Message Date
Wes Kocher
390b01dc2e Backed out changeset d7d9bbfa72c5 (bug 674779) for m-bc orange on a CLOSED TREE 2015-02-26 17:55:37 -08:00
Boris Zbarsky
d19843290b Bug 1131803 comment fix followup. DONTBUILD 2015-02-26 16:33:02 -05:00
David Rajchenbach-Teller
8d0fc0855c Bug 674779 - Add per-compartment CPU accounting. r=jandem, r=blassey, r=bz 2015-02-26 11:53:41 +01:00
Boris Zbarsky
04443966d0 Bug 1137334. Remove nsIDOMWindowUtils.getParent. r=bholley 2015-02-26 15:58:59 -05:00
Boris Zbarsky
8552abcc45 Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo 2015-02-26 15:58:59 -05:00
Boris Zbarsky
14d7853fb4 Bug 1136925 part 2. Stop passing a parent to Wrapper::New. r=waldo,bholley 2015-02-26 15:58:59 -05:00
Boris Zbarsky
e84e448ba9 Bug 1131803. Remove the use of parents from SandboxCallableProxyHandler and SandboxProxyHandler. r=bholley 2015-02-26 15:58:59 -05:00
Joel Maher
fa8aaf19d8 Bug 1131110 - Intermittent OSX 10.6 run-by-dir test_bug484459.xul. r=bholley 2015-02-26 15:32:21 -05:00
Boris Zbarsky
3ebec14f2b Bug 1136906 part 2. Stop passing a parent to JS_NewObject in xpconnect code. r=bholley 2015-02-26 09:40:08 -05:00
Boris Zbarsky
c727708c03 Bug 1136520. Stop parenting Xray expando objects to a non-global. r=bholley 2015-02-26 09:40:08 -05:00
Boris Zbarsky
24d253d2c0 Bug 1136516. Stop using JS_DeprecatedNewObjectWithGivenProtoAndParent in XPCWrappedNative. r=bholley 2015-02-26 09:40:08 -05:00
Boris Zbarsky
41ea9c03fa Bug 1136345. Drop the parent arg from JS_NewObjectWithGivenProto and introduce a JS_DeprecatedNewObjectWithGivenProtoAndParent for the few cases that still pass in a custom parent. r=waldo 2015-02-26 09:40:08 -05:00
Boris Zbarsky
b405c53159 Bug 1136292 part 5. Stop passing a global as the parent arg to JS_NewObjectWithGivenProto in XPConnect. r=peterv 2015-02-26 09:40:07 -05:00
Andrew McCreight
bbb6dc7e24 Bug 1135772 - Return null on failure in nsXPCWrappedJS's QueryInterface. r=smaug 2015-02-25 09:44:10 -08:00
Martin Thomson
1223f2d088 Bug 975144 - Tests for rtcIdentityProvider property, r=gabor 2015-02-22 10:57:20 +13:00
Martin Thomson
f96635cdf5 Bug 975144 - Adding rtcIdentityProvider to sandbox global scope, r=gabor 2015-02-22 10:57:20 +13:00
Boris Zbarsky
9e8395b4c9 Bug 742194 part 1. Add support for throwing uncatchable exceptions to Web IDL bindings. People keep asking for this. r=khuey 2015-02-20 23:58:36 -05:00
Jon Coppeard
439686762a Bug 1134255 - Add breakdown of allocated and unused GC things by kind in memory reports r=njn
--HG--
extra : rebase_source : aaec1857d252090c2aea9fc8e45a2a82ac492b6c
2015-02-19 11:56:00 +00:00
Eric Skoglund
e97429987d Bug 1121936 - Implement %TypedArray%.prototyp.{map,filter}. r=evilpie 2015-02-19 15:39:07 +01:00
Dirkjan Ochtman
e0b2fbfa9f Bug 1121935 - Implement %TypedArray%.prototype.slice. r=evilpie 2015-02-19 15:39:07 +01:00
Jon Coppeard
566098634b Backed out changeset d60d2602deab (bug 1134255) for making test_memoryReporters.xul fail 2015-02-19 13:22:37 +00:00
Jon Coppeard
b4faa4b4ec Bug 1134255 - Add breakdown of allocated and unused GC things by kind in memory reports r=njn 2015-02-19 11:56:00 +00:00
Bill McCloskey
c2f40fe8a3 Bug 1131317 - Always unwrap objects before wrapping them in XPCWrappedJS (r=mrbkap) 2015-02-18 10:42:28 -08:00
Christoph Kerschbaumer
217965f260 Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - in js/ (r=bholly) 2015-02-17 10:09:23 -08:00
Tom Schuster
cc00af9bd1 Bug 1073816 - Implement ES6 Function.prototype.bind length handling. r=Till,bholley 2015-02-09 19:42:20 +01:00
Boris Zbarsky
aa57107ef2 Bug 1132187 part 3. Remove the WANT_CONVERT bit. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
0605bcb783 Bug 1132187 part 2. Remove the WANT_DELPROPERTY bit. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
ebbad0e9f4 Bug 1132187 part 1. Remove the totally unused WANT_CREATE bit. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
580807c19b Bug 1132184. Remove the nsIXPCScriptable postCreate and postTransplant hooks. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
99f959886a Bug 1131801 part 3. Get rid of the now-unused ReparentWrapperIfFound. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
f69290eaf6 Bug 1131801 part 2. Get rid of the now-useless RescueOrphansInScope. r=peterv 2015-02-13 14:34:53 -05:00
Boris Zbarsky
533f2830ac Bug 1131801 part 1. Get rid of the now-unnecessary RescueOrphans function. r=peterv 2015-02-13 14:34:53 -05:00
Boris Zbarsky
768ae4c66e Bug 1131799. Stop parenting XPConnect tearoffs to the XPCWrappedNative. r=peterv 2015-02-13 14:34:53 -05:00
Boris Zbarsky
c7de70479f Bug 1131887 part 2. Remove the now-unused nsIXPConnect.reparentWrappedNativeIfFound. r=peterv 2015-02-13 14:34:53 -05:00
Wes Kocher
3af53039d1 Backed out changeset 38bcb731dba8 (bug 1131887) 2015-02-13 13:25:42 -08:00
Wes Kocher
d3d02dd750 Backed out changeset 564376c26384 (bug 1131799) 2015-02-13 13:25:40 -08:00
Wes Kocher
3d53ad3c92 Backed out changeset d71b934c28ee (bug 1131801) 2015-02-13 13:25:39 -08:00
Wes Kocher
8319eb47c6 Backed out changeset be654bd9e20d (bug 1131801) 2015-02-13 13:25:38 -08:00
Wes Kocher
c8c7f4e804 Backed out changeset 32176c758b4d (bug 1131801) 2015-02-13 13:25:37 -08:00
Wes Kocher
cb7d8da562 Backed out changeset 6d9547a55557 (bug 1132184) 2015-02-13 13:25:36 -08:00
Wes Kocher
84682654cd Backed out changeset e5479c58d966 (bug 1132187) 2015-02-13 13:25:35 -08:00
Wes Kocher
cd6057f164 Backed out changeset 70b09a891a37 (bug 1132187) 2015-02-13 13:25:33 -08:00
Wes Kocher
4e40a28a6e Backed out changeset 9017975d0201 (bug 1132187) 2015-02-13 13:25:32 -08:00
Tom Schuster
045b47ab00 Bug 1127475 - Remove unnecessary parent arguments. r=bz 2015-02-13 12:20:02 +01:00
Tom Schuster
797b78de4b Bug 1124934 - Add a HasProperty ObjectOp. r=jorendorff 2015-02-13 12:20:02 +01:00
Boris Zbarsky
a352d5c69e Bug 1132187 part 3. Remove the WANT_CONVERT bit. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
26bee4f820 Bug 1132187 part 2. Remove the WANT_DELPROPERTY bit. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
1c8e7c2015 Bug 1132187 part 1. Remove the totally unused WANT_CREATE bit. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
6a08acbbd1 Bug 1132184. Remove the nsIXPCScriptable postCreate and postTransplant hooks. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
c6f4a42302 Bug 1131801 part 3. Get rid of the now-unused ReparentWrapperIfFound. r=peterv 2015-02-13 14:34:54 -05:00
Boris Zbarsky
3868298fd6 Bug 1131801 part 2. Get rid of the now-useless RescueOrphansInScope. r=peterv 2015-02-13 14:34:53 -05:00
Boris Zbarsky
46a8ab53a4 Bug 1131801 part 1. Get rid of the now-unnecessary RescueOrphans function. r=peterv 2015-02-13 14:34:53 -05:00
Boris Zbarsky
9a737209f4 Bug 1131799. Stop parenting XPConnect tearoffs to the XPCWrappedNative. r=peterv 2015-02-13 14:34:53 -05:00
Boris Zbarsky
3a8ff9079e Bug 1131887 part 2. Remove the now-unused nsIXPConnect.reparentWrappedNativeIfFound. r=peterv 2015-02-13 14:34:53 -05:00
Nick Fitzgerald
ead84e4acf Bug 1117242 - SavedFrame objects should do principal checks for every accessor; r=jimb,jandem,bz 2015-02-13 09:21:50 -08:00
Chris Peterson
14e0fb9508 Bug 1130123 - Part 1: Move deprecated JS telemetry from Parser to JSCompartment. r=jandem 2015-02-10 23:17:43 -08:00
Tom Schuster
43324bd36f Bug 1125437 - Get rid of SetPropertyAttributes and use DefineProperty to follow ES6 specification. r=efaust 2015-02-11 23:40:47 +01:00
Nicholas Nethercote
3a7b0a9f57 Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : 526d96ab65e4d7d71197b90d086d19fbdd79b7b5
2015-02-02 14:48:58 -08:00
Nicholas Nethercote
63e3218e4c Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures.
--HG--
extra : rebase_source : eb30be83c3143c6c203585a80a18f180025efaba
2015-02-10 14:39:49 -08:00
Tom Schuster
fcb11bbe71 Bug 1131003 - Move jsproxy.h to js/Proxy.h. r=efaust
--HG--
rename : js/src/jsproxy.h => js/public/Proxy.h
2015-02-10 19:58:18 +01:00
Bob Owen
15061e2136 Bug 1094953: Ensure that GetGlobalJSObject on the native global does not return null in nsXPCWrappedJSClass::DelegatedQueryInterface. r=bholley 2015-02-09 19:55:57 +00:00
Ryan VanderMeulen
4e69725665 Backed out 7 changesets (bug 1117242) for mochitest failures.
Backed out changeset 694f7ac58964 (bug 1117242)
Backed out changeset b3f8122dd990 (bug 1117242)
Backed out changeset 442d41779bd8 (bug 1117242)
Backed out changeset ccf6dfe1ac75 (bug 1117242)
Backed out changeset 86421767cd26 (bug 1117242)
Backed out changeset 2f996950fb2f (bug 1117242)
Backed out changeset 4414e9d0b66b (bug 1117242)

CLOSED TREE
2015-02-06 13:40:53 -05:00
Nick Fitzgerald
26ceac32de Bug 1117242 - Part 5: Implement xray support for SavedFrame; r=bholley 2015-02-06 09:15:01 -08:00
Bobby Holley
2bbc2b39d3 Bug 1126911 - Tests. r=gabor 2015-02-05 11:07:40 -08:00
Bobby Holley
e8247b28ad Bug 1126911 - Special-case all chrome objects in wrapper selection. r=gabor 2015-02-05 11:07:40 -08:00
Bobby Holley
f10144e7c3 Bug 1126911 - Fix rest of test suite. r=gabor 2015-02-05 11:07:40 -08:00
Jan de Mooij
1e8c1994e1 Bug 1125784 - Remove JS_ConvertArguments and JS_ConvertValue. r=jorendorff 2015-02-05 12:01:11 +01:00
Nicholas Nethercote
b5913e0b3d Bug 1050035 (part 4) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : eeba14d732077ef2e412f4caca852de6b6b85f55
2015-02-02 14:48:58 -08:00
Nicholas Nethercote
f325953043 Bug 1050035 (part 3) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
Because they are now just equivalent to |new PLDHashTable()| +
PL_DHashTableInit() and PL_DHashTableFinish(t) + |delete t|, respectively.

They're only used in a handful of places and obscure things more than they
clarify -- I only recently worked out exactly how they different from Init()
and Finish().

--HG--
extra : rebase_source : c958491447523becff3e01de45a5d2d227d1ecd3
2015-02-01 20:36:52 -08:00
Nicholas Nethercote
9a36fdbde4 Bug 1050035 (part 2) - Remove the fallible version of PL_DHashTableInit(). r=froydnj,mrbkap.
Because it's no longer needed now that entry storage isn't allocated there.
(The other possible causes of failures are much less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible.

--HG--
extra : rebase_source : 848cc9bbdfe434525857183b8370d309f3acbf49
2015-02-01 20:19:08 -08:00
Tooru Fujisawa
80ed789950 Bug 1108930 - Part 6: Call WeakMap with new in xpconnect. r=mrbkap 2015-02-05 00:59:15 +09:00
Ms2ger
731bff666c Bug 1125901 - Part d: Remove unused nsIXPConnect.holdObject; r=bholley
It is now unused, so can be removed.
2015-02-04 09:41:41 +01:00
Andrew McCreight
a63a67a5e2 Bug 1122758 - Get rid of XPCJSObjectHolder::newHolder(). r=gabor 2015-02-03 09:13:54 -08:00
Jason Orendorff
8f9fef2147 Bug 1127121 - Remove property key type splitting in ObjectOps. r=bhackett.
--HG--
extra : rebase_source : dab65791e3efc9fc625365b6aa5dc26d5cad19fb
2015-01-28 17:12:44 -06:00
Terrence Cole
e5afb92f3a Bug 1125929 - Remove the unused GC stack capture; r=billm
--HG--
extra : rebase_source : e32779f431f0ddc70ead1b2d273a0a23d99541ac
2015-01-28 11:52:01 -08:00
Brian Hackett
909e578fea Bug 1125930 - Rename TypeObject to ObjectGroup, r=jandem. 2015-02-02 11:20:38 -07:00
Tom Schuster
f605ba3799 Bug 1127443 - Remove JS_NewObject proto argument. 2015-01-31 16:18:51 +01:00
Tom Schuster
42f3ec261e Bug 1127443 - Move some JS_NewObject callers to JS_NewObjectWithGiveProto 2015-01-31 16:18:51 +01:00
Terrence Cole
93976b9fec Backed out changeset f6ac06e9143d (Bug 1125929) for breaking win32 builds on a CLOSED TREE.
--HG--
extra : rebase_source : 20adf8603c62c967257d4603a6b1e8303d8bdd1c
2015-01-29 12:01:23 -08:00
Bill McCloskey
94aebaaa39 Bug 1072980 - Don't allow CPOWs to be passed to C++ code (r=mrbkap,ally,mconley) 2015-01-29 11:28:01 -08:00
Terrence Cole
aa3b065ff1 Bug 1125929 - Remove the unused GC stack capture; r=billm
--HG--
extra : rebase_source : e3e11fcde39720c6bf5b62bf670b04debc193426
2015-01-28 11:52:01 -08:00
Bill McCloskey
cbecfa296f Bug 1123868 - Clear interposition map after deleting it (r=mccr8) 2015-01-28 12:10:53 -08:00
Nicholas Nethercote
3163cfc2c1 Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj.
It feels safer to use a function with a new name, rather than just changing the
behaviour of the existing function.

For most of these cases the PL_DHashTableLookup() result was checked with
PL_DHASH_ENTRY_IS_{FREE,BUSY} so the conversion was easy. A few of them
preceded that check with a useless null check, but the intent of these was
still easy to determine.

I'll do the trickier ones in subsequent patches.

--HG--
extra : rebase_source : ab37a7a30be563861ded8631771181aacf054fd4
2015-01-22 21:06:55 -08:00
Tooru Fujisawa
ee95717e31 Bug 1069416 - Part 2: Remove JS_HAS_SYMBOLS from js tests. r=evilpie,mrbkap 2015-01-28 13:06:37 +09:00
Shu-yu Guo
4e73ce230d Bug 1119363 - Tweak trusted stack buffer size to give Win64 PGO more room. (r=bholley) 2015-01-27 17:06:23 -08:00
Eric Skoglund
fff6b439db Bug 1107645 - Implement TypedArray.forEach in accordance with the ecma 6 revision 31 spec. r=evilpie
Added reference to the forEach function in TypedArrayObject.cpp. Also added the correct specification reference to the function.

Tests added for the TypedArray#forEach based on the tests for TypedArray#some

Added reference to forEach in test_xrayToJs.xul

Added test to assert that forEach returns undefined.

Added new Proxy() to list of invalid receivers.
2015-01-26 12:46:00 -05:00
Bobby Holley
928226b50e Bug 1126023 - Annotate assertion. r=me 2015-01-26 15:44:00 -08:00
Bill McCloskey
2f3d90830b Bug 1123461 - Make a real interface for js/ipc (r=dvander) 2015-01-26 13:32:18 -08:00
Bobby Holley
ebfd3a1b74 Bug 1124898 - Tests. r=bz 2015-01-26 10:26:33 -08:00
Tom Schuster
7f95393f87 Bug 1122619 - Remove getPropertyAttributes object ops. r=jorendorff 2015-01-24 16:38:08 +01:00
Tom Schuster
66ad9a2e49 Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz 2015-01-24 16:38:08 +01:00
Boris Zbarsky
3c92a4bdd7 Bug 1107443 part 3. Stop defining non-configurable properties on the window in xpconnect sandbox code. r=peterv,jorendorff 2015-01-23 09:54:15 -05:00
Boris Zbarsky
cbb271e250 Bug 1107443 part 2. Stop defining non-configurable properties on the window in dom and xpconnect JS files. r=peterv 2015-01-23 09:54:14 -05:00
Jon Coppeard
12ae93f10e Bug 1107639 - Replace nsAutoJSValHolder with use of PersistentRooted r=bent 2015-01-23 10:23:57 +00:00
Jon Coppeard
c17c1bd7eb Bug 1107639 - Use two phase construction rather than Maybe<PersistentRooted> r=terrence 2015-01-23 10:23:57 +00:00
Nicholas Nethercote
1728be992a Bug 1122322 (follow-up) - Fix busted paths in worker memory reporter. r=bent.
--HG--
extra : rebase_source : c191acaa96ff7fd3d973eb542a56e7b96efb7466
2015-01-22 21:26:21 -08:00
Wes Kocher
c1bec44889 Backed out 3 changesets (bug 1123461, bug 1123090) for windows build bustage
Backed out changeset 2c442905d0af (bug 1123461)
Backed out changeset d7aa4c72ebab (bug 1123461)
Backed out changeset 8bb689ec8086 (bug 1123090)
2015-01-22 21:04:33 -08:00
Bill McCloskey
e535bf8aa7 Bug 1123461 - Make a real interface for js/ipc (r=dvander) 2015-01-22 20:00:19 -08:00
Ehsan Akhgari
5f3af43996 Bug 1123108 follow-up: Fix the Windows only build bustage on a CLOSED TREE 2015-01-22 19:13:39 -05:00
Ehsan Akhgari
59d99db61e Bug 1123108 - Mark nsIXPConnectWrappedNative::mIdentity as an nsCOMPtr; r=bholley 2015-01-22 17:54:54 -05:00