Bobby Holley
9ecc2d4946
Bug 655649 - Recompute cross-compartment wrappers when setting document.domain. r=mrbkap
2012-07-12 10:10:15 +02:00
Nathan Froyd
bfff055672
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Makoto Kato
1e533fbd2e
Bug 769533 - Part 1. Replace AppendWithConversion with others. r=jlebar
2012-07-06 18:43:28 +09:00
Bobby Holley
791b8a0a39
Bug 754202 - Check principal in IsCapabilityEnabled when there's no code on the stack. r=mrbkap
2012-06-28 23:47:55 +02:00
Bobby Holley
338e1a2a10
Bug 754202 - Remove mContextPrincipal usage from within nsScriptSecurityManager. r=mrbkap
2012-06-28 23:47:55 +02:00
Bobby Holley
83245872f0
Bug 754202 - Remove context pushing/popping API. r=mrbkap Each one of these uses grabs the principal off of an object for pushing, but also enters the compartment of that object. So we shouldn't need this anymore.
...
Can I get a 'hell yeah'?
2012-06-28 23:47:55 +02:00
Bobby Holley
285b2d0a7e
Bug 754202 - Pull subject principals directly off the compartment. r=mrbkap It would be nice to check these principals against the principals acquired using the old mechanism. Unfortunately, they often differ. Because CAPS uses JS stack frames, any time we enter a compartment and do an operation (even throwing an Access-Denied exception) without running any JS code, we'll end up with a different principal.
...
Our security story is pretty darn tied to compartments at this point, so let's
just pull the trigger.
2012-06-28 23:47:55 +02:00
Bobby Holley
6def798e8f
Bug 754202 - Pull object principals directly off the compartment and assert that behavior doesn't change. r=bz
2012-06-28 23:47:55 +02:00
Justin Lebar
0ba5460898
Bug 766173 - Hold a strong ref to nsScriptSecurityManager, instead of hoping that it won't get addref'ed or released. r=bsmedberg
...
--HG--
rename : mobile/android/base/resources/drawable/tabs_button_contracted.xml => mobile/android/base/resources/drawable/tabs_button.xml
extra : rebase_source : 8f861c2298fd053a0e1f6deb6f9945040ea8db90
2012-06-19 13:20:34 -04:00
Ehsan Akhgari
549521b5db
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (caps parts); r=bholley
2012-06-12 23:58:27 -04:00
Ryan VanderMeulen
8d5ee1114e
Merge m-c to inbound
2012-06-10 21:34:50 -04:00
L. David Baron
ca009b979f
Backout bug 754202 (all patches, rather than just patches 3-7).
2012-06-10 17:22:31 -07:00
Ryan VanderMeulen
0ec5784959
Backout 90107a2a0c64 (bug 754202) for real due to orange.
2012-06-10 19:46:20 -04:00
Ryan VanderMeulen
5f2a19ee6e
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
6d6c4efbab
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Bobby Holley
75ea89c874
Merge backout.
2012-06-11 00:28:30 +02:00
Bobby Holley
b65e3d0fc1
Back out bug 754202. r=me
2012-06-11 00:28:05 +02:00
Ms2ger
00f2cea380
Bug 734891 - Followup: Fix build warnings in nsPrincipal.cpp.
2012-06-10 21:25:17 +02:00
Gabor Krizsanits
a4d0a2ae65
Bug 734891 - part 2: Adding ExpandedPrincipal support
2012-06-09 15:19:26 -07:00
Gabor Krizsanits
c33eb75fc0
Bug 734891 - part 1: Decoupling URI based logic from caps/certificate related logic of nsPrincipal
2012-06-09 15:19:26 -07:00
Gabor Krizsanits
0cf789a95d
Bug 734891 - part 0: rearanging nsPrincipal methods for follow up
2012-06-09 15:19:26 -07:00
Bobby Holley
8c6bec7d49
Bug 754202 - Remove mContextPrincipal usage from within nsScriptSecurityManager. r=mrbkap
2012-06-07 14:28:22 +02:00
Bobby Holley
3065c84571
Bug 754202 - Remove context pushing/popping API. r=mrbkap
...
Each one of these uses grabs the principal off of an object for pushing, but also enters the compartment of that object. So we shouldn't need this anymore.
Can I get a 'hell yeah'?
2012-06-07 14:28:21 +02:00
Bobby Holley
3d5afc4e42
Bug 754202 - Pull subject principals directly off the compartment. r=mrbkap
...
It would be nice to check these principals against the principals acquired
using the old mechanism. Unfortunately, they often differ. Because CAPS uses
JS stack frames, any time we enter a compartment and do an operation (even
throwing an Access-Denied exception) without running any JS code, we'll end
up with a different principal.
Our security story is pretty darn tied to compartments at this point, so let's
just pull the trigger.
2012-06-07 14:28:21 +02:00
Bobby Holley
ddbdb6b79b
Bug 754202 - Pull object principals directly off the compartment, and assert that behavior doesn't change. r=bz
2012-06-07 14:28:21 +02:00
Boris Zbarsky
809a53856c
Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley
2012-06-06 15:59:46 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
d55ff730fa
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
66d81d0a7e
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
7235558c07
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Ms2ger
ba51dd062a
Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley
2012-05-18 10:29:40 +02:00
Tom Schuster
448c19e69b
Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger
2012-05-11 17:46:26 +02:00
Ed Morley
94067f98cb
Backout 9b0fcaacb788 & bf3fef257e68 (bug 752226) for mochitest-other orange
2012-05-11 18:25:52 +01:00
Tom Schuster
a5e74fc12b
Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger
...
--HG--
extra : rebase_source : edf2077f8b8bad1970eab6ebe9996e761d4e596c
2012-05-11 17:46:26 +02:00
Ms2ger
a147767a14
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Boris Zbarsky
2299a42041
Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
...
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom. General files not specific to an interface are also exported into
mozilla/dom.
In terms of namespaces, most things now live in mozilla::dom. Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).
IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum. We then typedef
EnumFooValues::valuelist to EnumFoo. That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.
The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.
The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Bobby Holley
710c5cfdb0
Bug 750859 - Remove {Disable,Revert}Capability. r=bz, PGO helper on CLOSED TREE
2012-05-02 23:57:43 +02:00
Bobby Holley
e6e34db54d
Bug 750859 - Remove (most of) SetCanEnableCapability. r=bz
2012-05-02 23:57:34 +02:00
Bobby Holley
c532e2d4c3
Bug 750859 - Kill the CAPS confirm dialog. r=bz
...
This will break addons using enablePrivilege, but that's going away too. We've been warning for many releases now, so it's time to bite the bullet.
2012-05-02 23:57:34 +02:00
Bobby Holley
26ec731b76
Bug 750859 - remove unused (or seldom-used) PrivilegeManager functions. r=bz
2012-05-02 23:57:34 +02:00
Gabor Krizsanits
729109dc65
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-28 09:12:28 -04:00
Ryan VanderMeulen
848ce91be4
Backout a0b3af4ac9f5 (bug 735280) due to Android jsreftest orange.
2012-04-25 21:59:36 -04:00
Gabor Krizsanits
e342225871
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-25 20:12:33 -04:00
Ryan VanderMeulen
41b2438cb3
Backout 0b170d1f5d10 (bug 735280) due to red.
2012-04-24 22:09:23 -04:00
Gabor Krizsanits
8870c5fe96
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-24 21:48:02 -04:00
David Anderson
94ccb204aa
Remove simple JS_FrameIterator use from content, DOM, and caps (bug 744617, r=mrbkap).
...
--HG--
extra : rebase_source : 003a5285b549845d47c9298606d737620db5bb3d
2012-04-16 12:30:00 -07:00
Ms2ger
77ca860259
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
5a2d0a8476
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Mark Capella
bb0cb90d39
Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
...
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
Bobby Holley
403f8c3812
Bug 739825 - Push principals when entering compartments in structured clone. r=mrbkap
2012-04-05 14:02:34 -07:00