Andrew McCreight
a5a1322db0
Bug 1288870, part 3 - Root the return value of the prewrap callback. r=mrbkap,terrence
...
Like part 2, this patch is to work around a false GC hazard in
~XPCNativeInterface in part 4. This hazard is around the return value
of WrapperFactory::PrepareForWrapping(), because ~XPCCallContext might
call ~XPCNativeInterface. The fix is to pass the return value into a
mutable handle. Unfortunately, this function is used in the JSAPI, so
JS minor engine changes are also needed.
MozReview-Commit-ID: GwFxmrXFXmb
2016-08-23 05:59:57 -07:00
Bobby Holley
c66ad2a5e6
Bug 1182409 - Add 'allowWaivers' sandbox option. r=gabor
2015-07-15 11:32:30 -07:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Jan de Mooij
c6596c5fa8
Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 23:22:11 +01:00
Phil Ringnalda
1a1c158706
Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
...
CLOSED TREE
2015-03-28 10:39:56 -07:00
Jan de Mooij
369ef1b850
Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 12:08:37 +01:00
Boris Zbarsky
ff09c61895
Bug 1136925 part 2. Stop passing a parent to Wrapper::New. r=waldo,bholley
2015-02-26 15:58:59 -05:00
Wes Kocher
64ff21e8a1
Backed out 4 changesets (bug 1136925) for potentially busting m-e10s-dt on a CLOSED TREE
...
Backed out changeset 331761aaae22 (bug 1136925)
Backed out changeset 2faa0e91fe23 (bug 1136925)
Backed out changeset a00f2530c911 (bug 1136925)
Backed out changeset d5e658bc0792 (bug 1136925)
2015-02-26 23:17:34 -08:00
Boris Zbarsky
0d229e715e
Bug 1136925 part 2. Stop passing a parent to Wrapper::New. r=waldo,bholley
2015-02-26 15:58:59 -05:00
Bobby Holley
7d0c27ef8e
Bug 1060521 - Remove infrastructure for Xrayed NewResolve, GetProperty, and SetProperty on XPCWrappedNatives. r=peterv
2014-09-15 14:13:02 +02:00
Peter Van der Beken
5915e88796
Bug 1063700 - Remove unused IsSecurityWrapper functions. r=bholley.
2014-09-09 15:38:45 +02:00
Bobby Holley
1aa4d3a626
Bug 742444 - Pass the old wrapper or value to the prewrap callback instead of its flags. r=gabor
...
We need this so that we can reason about the origin of the wrapper that
previously had a waiver and decide whether or not to extend it.
2014-07-22 16:14:27 -07:00
Eric Faust
51c149ff8f
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
026215908a
Backed out changeset 346912776f97 (bug 1027402)
2014-06-27 14:21:22 +02:00
Eric Faust
7a21439f3d
Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley)
2014-06-27 04:44:04 -07:00
Terrence Cole
cf3f16eda5
Bug 1017650 - Remove the unused |proto| arg from the wrapping machinery; r=efaust
2014-06-16 11:59:59 -07:00
Birunthan Mohanathas
56da97da22
Bug 866289 - Make mode lines consistent in js/xpconnect/ for 4 space indented files. r=Ms2ger
2014-04-03 07:58:00 -04:00
Bobby Holley
af9049316d
Bug 958326 - Remove same-compartment security wrapper machinery. r=mrbkap
2014-03-26 10:59:20 -03:00
Bobby Holley
60d1981574
Bug 825392 - Remove SOWs. r=bz
2014-03-19 13:35:45 -03:00
Bobby Holley
caa236cfd2
Bug 951948 - Remove Components wrappers. r=mrbkap
...
We fix up the tests here to test the new behavior, and fix some bugs in the test
while we're at it.
2014-01-14 18:49:30 -08:00
Eric Faust
28e1fab1d7
Bug 926012 - Part 3: Convert wrappers to using dynamic prototype hooks. (r=bholley)
2013-12-13 12:01:30 -08:00
Terrence Cole
7413a8f46d
Bug 940505 - Handlify GetXrayWaiver; r=bholley
2013-11-19 10:12:10 -08:00
Tom Schuster
faba4d7d1c
Bug 930782 - Handlify JS_WrapValue. r=terrence
2013-10-26 18:19:05 +02:00
Bobby Holley
4818902938
Bug 856437 - Remove same-compartment permissive Xray machinery. r=gabor
2013-09-11 11:28:21 -07:00
Nicholas Nethercote
9fc605b8f3
Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
2013-08-17 15:50:18 -07:00
Bobby Holley
b9fadef9b8
Bug 834707 - Kill dynamic SOWs. r=gabor
...
Now that XBL scopes are here to stay (no more pref), we can remove all the
machinery that makes SOWs dynamic. We still need SOWs until bug 825392 is
fixed, but they can now be totally opaque.
One side effect of this patch is that, due to our usage of Opaque, we now
allow CALL on SOWs. But this shouldn't be a problem, because SOWs are used
for anonymous elements which are not callable (and we probably wouldn't mind
it even if they were).
2013-05-06 19:38:23 -07:00
Jon Coppeard
7aa5b95a6c
Bug 861281 - GC: Root the wrap object API r=terrence r=bholley
2013-04-15 18:32:55 +01:00
Jon Coppeard
5dea95e60d
Bug 860777 - Part 2 - Root WrapperFactory.cpp r=bholley
2013-04-12 10:50:43 +01:00
Jacek Szpot
cb202e52fa
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-11 11:50:18 -07:00
Ryan VanderMeulen
299788bf3c
Backed out changeset a85d21e394c0 (bug 854503) for bustage.
2013-04-06 14:37:33 -04:00
Jacek Szpot
4b634f9cf2
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-04 12:14:32 +02:00
Bobby Holley
e2e5fa0ca3
Bug 854480 - Remove SCRIPT_ACCESS_ONLY. r=mrbkap
2013-04-01 15:17:51 -07:00
Bobby Holley
72f1a52cbd
Bug 658909 - Remove GWNOJO from JSObject2NativeInterface. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
c3b8edc1ce
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
2013-03-21 08:20:42 -07:00
Ryan VanderMeulen
736320d2fd
Backed out 22 changesets (bug 658909) for Windows debug bustage.
2013-03-21 15:24:54 -04:00
Bobby Holley
8d0d0053b1
Bug 658909 - Remove GWNOJO from JSObject2NativeInterface. r=mrbkap
2013-03-21 08:20:44 -07:00
Bobby Holley
04fd1cf568
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
2013-03-21 08:20:42 -07:00
Ms2ger
d16578178b
Backout bug 658909 for Marionette bustage.
2013-03-17 10:44:33 +01:00
Bobby Holley
79ba68c6fa
Bug 658909 - Remove GWNOJO from JSObject2NativeInterface. r=mrbkap
2013-03-16 22:58:15 -07:00
Bobby Holley
672888c95e
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
2013-03-16 22:58:14 -07:00
Bobby Holley
9e7a11c1bc
Bug 808608 - Remove Xray shadowing protection infrastructure. r=mrbkap
...
This is now unused.
2012-11-21 13:20:05 -08:00
Bobby Holley
0ffa276304
Bug 808608 - Remove specialized Location security wrappers. r=mrbkap
2012-11-21 13:20:05 -08:00
Bill McCloskey
e0a30d419f
Bug 803376 - Allow wrappers to be reused (r=bholley)
2012-09-11 17:14:24 -07:00
Bobby Holley
9f045d1a30
Bug 803068 - Merge DirectWrapper and Wrapper. r=ejpbruel
2012-10-29 16:52:53 +01:00
Bobby Holley
4e01324489
Bug 788914 - Kill the XOW flag. r=mrbkap
...
There are really two questions to be asked: is the caller chrome, and does the
caller subsume the callee. We have other, more precise ways of asking both of
these questions.
2012-09-11 01:05:10 -07:00
Bobby Holley
2371140fc5
Bug 788914 - Kill partially transparent wrappers. r=mrbkap
2012-09-11 01:05:10 -07:00
Ryan VanderMeulen
5185907444
Backout bug 788914 and bug 789494 because they were backed out on inbound.
2012-09-07 19:40:57 -04:00
Bobby Holley
cc55e49517
Bug 788914 - Kill the XOW flag. r=mrbkap
...
There are really two questions to be asked: is the caller chrome, and does the
caller subsume the callee. We have other, more precise ways of asking both of
these questions.
2012-09-07 11:28:56 -07:00
Bobby Holley
d713f9abcd
Bug 788914 - Kill partially transparent wrappers. r=mrbkap
2012-09-07 11:28:56 -07:00
Ed Morley
e9d662c840
Backout 5853df66d488, e8fadd906232, d787279d282c, 8c1ed6327355, 94cfcf5da7c8, 87aa103d7e87 (bug 585922) for failures in test_bug411236.html
2012-09-07 09:15:34 +01:00