Commit Graph

258 Commits

Author SHA1 Message Date
Bobby Holley
8e8a7d28c3 Bug 1065811 - Track Xray waivers with CPOWs. r=billm 2014-09-25 13:13:29 +02:00
Bobby Holley
8b65a1f10b Bug 1065811 - Clean up ObjectId handling with static type checking. r=billm
While adding the CPOW flag for xray waivers, I discovered a bunch of
inconsistency and sloppiness with respect to our handling of object ids,
and a general lack of clarity about when the id included flags or not. Given
the fact that I'm removing static callability for CPOWs, we _could_ just get
rid of the flags, and store the xray waiver state on the answer-side only. But
I eventually decided that these kinds of flags (which are accessible to both
the Answer _and_ the Owner) had enough potential utility that they were worth
cleaning up.

It's worth noting that that utility comes with the large caveat that the flags
can't be trusted for security-sensitive decisions (at least in the parent->child
case), since they could be forged by a compromised child.
2014-09-25 13:13:29 +02:00
Bobby Holley
4f60ec8b3f Bug 1065811 - Stop statically computing callability/constructibility on CPOWs. r=billm 2014-09-25 13:13:29 +02:00
Bobby Holley
db168e5cde Bug 1065811 - Expose isCallable()/isConstructor() in JS_PUBLIC_API. r=billm 2014-09-25 13:13:28 +02:00
Jon Coppeard
132fb38dd4 Bug 650161 - Unify the finalization and moving GC callbacks into a weak pointer update callback r=terrence r=bholley 2014-09-24 12:54:11 +01:00
Bobby Holley
2a5e5e2d96 Bug 1052096 - Move CPOW targets into the privileged/unprivileged junk scope of the child/parent. r=billm 2014-09-12 17:41:18 -07:00
Bobby Holley
048a4d28f5 Bug 1052096 - Move CPOWs into the privileged junk scope. r=billm 2014-09-12 17:41:18 -07:00
Jason Orendorff
ddb4e5c560 Bug 1065507, part 3 - Remove special support for js_GetterOnlyPropertyStub from js/ipc.
--HG--
extra : rebase_source : cc10de476c7c40324f9ae781c6e06500a53edb1b
2014-09-10 12:54:20 -05:00
Bill McCloskey
41b9d7aba6 Bug 1060042 - CPOWs need a hasInstance hook (r=mrbkap) 2014-09-10 17:15:40 -07:00
Eric Faust
385660b12e Bug 966518 - Part 0: Make proxy callability into a trap, rather than a class check. (r=bholley, r=djvj, r=peterv) 2014-09-10 15:52:36 -07:00
Chris Peterson
d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Jon Coppeard
fbd9cb9af7 Bug 650161 - Add moving GC callback and use it to fix up ipc CPOW tables r=terrence 2014-09-02 11:07:22 +02:00
Ehsan Akhgari
ddca1158ca Bug 1060988 - Fix more bad implicit constructors in JS IPC code; r=billm 2014-08-31 21:10:16 -04:00
Eric Faust
db3773210b Bug 1027425 - Make all Proxy handler constructors use MOZ_CONSTEXPR. (r=bz, r=froydnj) 2014-08-28 13:47:16 -07:00
Eric Faust
48b4f73e9f Bug 1017862 - Remove virtual destructor from BaseProxyHandler. (r=jorendorff) 2014-08-28 13:30:56 -07:00
Eric Faust
11375e15fd Bug 1027964 - Standardize proxy handler families. (r=jorendorff) 2014-08-27 17:09:06 -07:00
Bill McCloskey
ee028ed085 Bug 1057601 - Use UncheckedUnwrap in CPOW code (r=mrbkap) 2014-08-22 18:18:00 -07:00
Bill McCloskey
d54b9ed617 Bug 1051127 - Add an env var for CPOW logging (r=mrbkap) 2014-08-20 13:01:32 -07:00
Bill McCloskey
14b0872617 Bug 1052093 - Child->parent CPOWs should go through COWs in the parent for security (r=bholley) 2014-08-20 12:49:10 -07:00
Bobby Holley
eaebf58731 Bug 1052089 - Rename JunkScope to PrivilegedJunkScope and remove fallibility of singleton scope access. r=billm
These two things ended up getting mushed together in my tree.
2014-08-18 10:57:30 -07:00
Bill McCloskey
55952e99b7 Bug 950745 - Back out assertions that are triggering too often 2014-08-15 16:16:42 -07:00
Bobby Holley
e70ddb7476 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592 Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Jon Coppeard
511f6ef1c5 Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug 2014-08-13 10:05:22 +01:00
Bill McCloskey
024b67429e Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-08-05 21:43:36 -07:00
Bill McCloskey
8bcf32b6ed Back out bug 950745 for crashes 2014-07-30 16:19:46 -07:00
Bill McCloskey
c87bbeeeda Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-07-17 21:09:45 -07:00
Jan de Mooij
8772025bff Bug 1034689 part 3 - Fix remaining places in Gecko to handle Latin1 strings. r=bz 2014-07-12 09:43:08 +02:00
Bill McCloskey
e03b6322a0 Bug 1029248 - Clean up CPOW unwrapping (r=mrbkap) 2014-07-10 16:47:04 -07:00
Jan de Mooij
44da586636 Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz 2014-07-05 17:30:54 +02:00
Ryan VanderMeulen
658554a580 Backed out changesets 4a19dcbc7e7a and 4907115e02e3 (bug 1029248) for non-unified bustage.
CLOSED TREE
2014-07-03 13:19:29 -04:00
Bill McCloskey
42d60ab372 Bug 1029248 - Add helpers to simplify CPOW unwrapping (r=mrbkap) 2014-07-03 09:48:21 -07:00
Bill McCloskey
026f5d0e68 Bug 1017109 - Add construct hook for CPOWs (r=mrbkap) 2014-06-30 17:50:58 -07:00
Bill McCloskey
3d9e496beb Bug 1029202 - Allow CPOW receivers to be non-CPOWs (r=mrbkap) 2014-06-30 17:48:09 -07:00
Eric Faust
04ec29520a Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz) 2014-06-27 04:44:06 -07:00
Eric Faust
992c8dde5a Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley, r=bz over IRC) 2014-06-27 04:44:04 -07:00
Carsten "Tomcat" Book
cbe01cdaa8 Backed out changeset 346912776f97 (bug 1027402) 2014-06-27 14:21:22 +02:00
Carsten "Tomcat" Book
76beb8d59f Backed out changeset 285c853fedfa (bug 1027402) 2014-06-27 14:21:20 +02:00
Eric Faust
62d61ccf3f Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz) 2014-06-27 04:44:06 -07:00
Eric Faust
6091687271 Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley) 2014-06-27 04:44:04 -07:00
"Kan-Ru Chen (陳侃如)"
9ed870c153 Bug 879475 - Part 005. Implement ContentBridge r=jlebar
Based on original patch by David Zbarsky <dzbarsky@gmail.com>
2014-06-11 13:44:13 +08:00
Bill McCloskey
f634ff5c34 Bug 957742 - Add missing include 2014-05-28 18:28:24 -07:00
Bill McCloskey
e14c2c6ce8 Bug 957742 - Fix compile error 2014-05-28 18:25:06 -07:00
Bill McCloskey
97221e50db Bug 1014993 - Add special toString method to CPOWs (r=mrbkap) 2014-05-28 18:05:23 -07:00
Tom Schuster
8f9489bd37 Bug 957742 - Logging for CPOWs (r=mrbkap) 2014-05-28 18:05:22 -07:00
Bill McCloskey
b41a921d12 Bug 996785 - Fix CPOW wrapping and compartment ownership (r=mrbkap) 2014-05-16 16:40:37 -07:00
Bill McCloskey
b4170c4e66 Bug 996785 - Bidirectional CPOWs (r=mrbkap) 2014-05-16 16:40:37 -07:00
Bill McCloskey
c9f2d3779d Bug 996785 - Distinguish local and remote CPOW objects in IPDL (r=mrbkap) 2014-05-16 16:40:36 -07:00
Bill McCloskey
719253d75f Bug 996785 - Use more descriptive IPDL types for CPOW value variants (r=mrbkap) 2014-05-16 16:40:36 -07:00