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
Wes Kocher
4e742eeab0
Backed out changeset ef0eeaec74a8 (bug 949183) on the theory that it somehow broke every single b2g test on a CLOSED TREE
2013-12-16 18:27:43 -08:00
Sean Stangl
4a839043a9
Bug 949183 - Fix jsid static constructor explosion. r=Waldo
2013-12-16 14:40:05 -08:00
Boris Zbarsky
8050da8304
Bug 946067 part 2. Generate Window's access checks in XPConnect based on WebIDL access annotations. r=bholley,peterv
2013-12-09 10:34:03 -05:00
Bobby Holley
7d08c3d450
Backed out changeset 86128d3eac88 (bug 916939) for breaking the web. r=me
2013-09-20 10:32:32 -07:00
Bobby Holley
74f2c329b3
Bug 916939 - Drop support for named and indexed access on cross-origin windows. r=bz
2013-09-18 08:39:48 -07:00
Bobby Holley
289555ee2f
Bug 916983 - Stop allowing writes for named access to cross-origin properties. r=bz
2013-09-17 09:46:30 -07:00
Dan Gohman
94cd9b8531
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -07:00
Ehsan Akhgari
41784ed79f
Bug 913851 - Minimize the #includes in js/xpconnect; r=bholley
...
X-Git-Commit-ID: 78e6843063b303780a7dd2695dd2824a0a9c9a3c
2013-09-09 23:14:10 +02:00
Nicholas Nethercote
378d4e5d13
Bug 911043 (part 1) - Move the "inject JS:: names into js::" block into its own file, to reduce dependencies on jsapi.h. r=luke.
2013-09-01 21:51:02 -07:00
Ms2ger
a5a300481d
Bug 903849 - Use MOZ_ASSERT consistently in XPConnect; r=bholley
2013-08-14 09:00:34 +02:00
Ms2ger
5a51413d49
Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar
2013-08-14 08:56:21 +02:00
Jon Coppeard
247e4f0b6c
Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug
2013-08-12 12:09:14 +01:00
Nicholas Nethercote
f7d6f07d24
Bug 898914 (part 1) - Remove JSBool.
2013-08-08 15:53:04 -07:00
Jon Coppeard
9275cd7c1a
Bug 899973 - GC: Convert the rest of the JS property API to use MutableHandleValue for out params - browser changes r=bz
2013-08-02 13:15:39 +01:00
Ms2ger
bcf0226d55
Bug 884951 - Use XPCWrappedNative::Get more; r=bholley
2013-06-23 09:15:55 +02:00
Peter Van der Beken
05bcfd201e
Bug 851465 - Remove slim wrappers - remove slim wrapper macros and rename WN macros. r=bholley.
2013-04-19 21:58:30 +02:00
Bobby Holley
0ba610632c
Bug 874318 - Don't allow CALL on XOWs. r=mrbkap
2013-05-22 22:27:16 -06:00
Bobby Holley
4ce13e22ae
Bug 862380 - Be more explicit about rejecting JSID_VOID for XOWs. r=mrkbap
...
We already do this, but it's helpful to be clear about it.
2013-05-22 22:27:15 -06: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
Bobby Holley
9363f8d244
Bug 868122 - Calculate the JS_SaveFrameChain optimization by directly examining the principal of the default compartment. r=mrbkap,gabor
2013-05-06 16:53:10 -07:00
Jon Coppeard
a726d15847
Bug 865308: GC: More rooting work in XPConnect r=bholley
2013-04-26 18:50:18 +01:00
Bobby Holley
eb4523542c
Bug 860494 - Check for native properties before checking named children on XOWs. r=bz
2013-04-23 12:50:17 -04:00
Jon Coppeard
30457f2ccf
Bug 863289 - GC: Continue the rooting of XPConnect r=bholley
2013-04-17 16:38:44 +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
7330552fec
Bug 855922 - Check XBL scopes per-compartment in the SOW isSafeToUnwrap hook. r=bz
2013-03-28 18:38:07 -07:00
Bobby Holley
75a039ceca
Bug 854558 - Enforce __exposedProps__ for Sandboxes. r=gabor
2013-03-26 09:08:29 -07:00
Bobby Holley
97a5320a87
Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
19ea74e50b
Bug 658909 - Make isSafeToUnwrap pseudo-dynamic for SOWs. r=mrbkap
...
This can go away as soon as XBL scopes are no longer behind a pref.
2013-03-21 08:20:41 -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
3eb6e189e8
Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap
2013-03-21 08:20:45 -07:00
Bobby Holley
8dd1010edf
Bug 658909 - Make isSafeToUnwrap pseudo-dynamic for SOWs. r=mrbkap
...
This can go away as soon as XBL scopes are no longer behind a pref.
2013-03-21 08:20:41 -07:00
Ms2ger
1e6c995090
Bug 845374 - Part l: Stop including nsIDocument.h in nsContentUtils.h and fix two nits; r=khuey
2013-03-17 08:55:15 +01:00
Bobby Holley
437a0a3edf
Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
...
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-25 13:54:18 -08:00
Phil Ringnalda
b01d7591f9
Back out 4d301b2bcad0:e0632e639097 (bug 836301) for Windows build bustage
...
CLOSED TREE
2013-02-22 08:41:37 -08:00
Bobby Holley
d265a08311
Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
...
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-22 08:14:33 -08:00
Bobby Holley
574cc83a83
Bug 839867 - Align gecko with the spec on cross-origin access to Location.hash. r=bz
...
We update the tests to cover this case. There was also a bug in the tests where
we were accidentally testing non-writable Location properties against window
rather than window.location. :-(
2013-02-11 00:05:17 +01:00
Bobby Holley
56ce1b2c7c
Bug 823348 - Remove broken and unused __scriptOnly__ check. r=mrbkap
...
__scriptOnly__ is unused on mxr and addons-mxr. Morevoer, the current
implementation is totally broken, because we check for NNXOW, which only
happens when a random content JS object ends up in some other cross-origin
scope (via addons, presumably), whereas chrome objects use ChomeObjectWrapper.
I'm soon going to replace SCRIPT_ACCESS_ONLY with checked unwrapping, and mark
all COWs as unsafe to unwrap (see bug 821573 and bug 658909). So let's just kill
this thing here.
2013-01-23 06:04:38 +01:00
Jeff Walden
6054ca7e90
Bug 823283 - Remove all remaining uses of JSRESOLVE_QUALIFIED, and the few remaining tests (which were pretty much purely diagnostic). r=luke
2012-09-15 11:19:55 -07:00
Bobby Holley
b60d7375ce
Bug 809652 - Deny nativeCall for SecurityWrapper except under specific circumstances. r=jorendorff
2012-12-20 22:33:26 -08:00
Peter Van der Beken
f9974cb429
Fix for bug 815149 (Add support for SOWs and XBL bindings in new DOM bindings). r=bz.
2012-09-12 22:29:30 +02:00
Bobby Holley
c602a1cd62
Bug 818716 - Move XBL detection into nsContentUtils and remove filename hack. r=mrbkap
2012-12-12 17:09:37 -08:00
Bobby Holley
69f5bf9568
Bug 813901 - Validate __exposedProps__. r=mrbkap
...
This also involves modifying test_cows to deep clone in getCOW.
2012-12-07 14:49:11 -08:00
Bobby Holley
ece30f242d
Bug 813901 - Throw COW exceptions in the wrapper's scope. r=mrbkap
2012-12-07 14:49:11 -08:00
Bobby Holley
0ffa276304
Bug 808608 - Remove specialized Location security wrappers. r=mrbkap
2012-11-21 13:20:05 -08:00
Bobby Holley
23af94cca4
Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
...
If callers want to throw, it's now their responsibility.
2012-11-14 09:56:26 -08:00
Bobby Holley
8551660e5d
Bug 800915 - Reimplement PUNCTURE consumers in terms of isSafeToUnwrap() and remove PUNCTURE API. r=mrbkap
2012-11-14 09:56:25 -08:00