Граф коммитов

1494 Коммитов

Автор SHA1 Сообщение Дата
Peter Van der Beken dd5db5a970 Fix for bug 814022 (Make instanceof for new DOM bindings work across scopes). r=bz. 2012-11-19 11:59:13 +01:00
Bobby Holley 26b63d0f22 Bug 812415 - Use wrapperSubsumes rather than isChrome in XPCNativeWrapper.unwrap. r=mrbkap
The current behavior breaks same-origin Xrays in sandboxes. This makes it match
the check we do in XrayWrapper.cpp for the .wrappedJSObject property.
2012-11-21 17:55:58 -08:00
Bobby Holley bd2ae43bd9 Bug 813394 - Test both |window.location| and |location| in navigated-away-from frame. r=bz 2012-11-21 13:20:05 -08:00
Bobby Holley b639984487 Bug 808608 - Fix test_bug802557. r=bz
There are a number of fixes to this important tests, so this warrants a separate
patch.

First of all, the boundTo machinery goes away, because we no longer have same-
compartment Xrays giving us the weird bound methods.

Furthermore, now that the sensitive methods are just regular old methods
off the prototype. They'll fail correctly when used on a same-scope object,
but not for cross-scope XOWs they'll just fail in the
GetWrappedNativeOfJSObject rat's nest (when they can't unwrap the security
wrapper), so we'll just get a generic XPConnect error instead of a security
exception. I want to fix this soon, so I changed the skipMessageCheck stuff
to use todo_is.

However, _that_ caused an UNEXPECTED-PASS for the DefaultValue test (which
was the only one of the array of tests that was throwing a security exception
in step 2). So I added an annotation for that in item[2].
2012-11-21 13:20:05 -08:00
Bobby Holley f0c88f066f Bug 808608 - Remove Xray shadowing protection infrastructure. r=mrbkap
This is now unused.
2012-11-21 13:20:05 -08:00
Bobby Holley abee0881bb Bug 808608 - Fix up tests to work with new behavior. r=bz,me 2012-11-21 13:20:05 -08:00
Bobby Holley 234ba415b6 Bug 808608 - Remove special testing for Location in test_bug505915. r=me
Removing test coverage isn't great. But the only reason this test is doing all
this funny stuff with Location is that it thinks that it's always wrapped in
an Xray wrapper and that we always do a dynamic security check, which is no
longer true. Moreover, it checks for very specific error messages, which are
kind of in flux right now as I'm fixing up GWNOJO. The calls are never going
to actually succeed (since location isn't a Node), so it's not really clear
how to fix up this test to do something uniquely useful in a readable way.
I've added enough Location test coverage recently that I'm comfortable removing
this part.
2012-11-21 13:20:05 -08:00
Bobby Holley 11d6106099 Bug 808608 - Remove specialized Location security wrappers. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley 660ca5d5cf Bug 808608 - Remove unnecessary outparam. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley 1824d3f494 Bug 808608 - Implement shadowing protection in nsDOMClassInfo. r=mrbkap
This allows us to remove the same-compartment Location wrappers. This can
go away when we move Location to the new bindings and get access to
[Unforgeable].
2012-11-21 13:20:05 -08:00
Bobby Holley 3eb5b58cea Bug 808608 - Rescue expando sharing tests. r=mrbkap
We have a very nice and robust infrastructure for per-origin expando sharing
for Xrays. Unfortunately, the only way to currently exercise it is with
Location objects, since those are the only objects with same-origin Xrays
(cross-origin Xrays don't allow expandos at all). Sandbox wantXrays would
almost work here, but we actually make an explicit exception for sandboxes
so that they never share expandos (the 'exlusive global' stuff).

I think the infrastructure is nice and that we may want it in the future, so
I don't really want to back it out. But I also don't want to leave it in the
tree untested. So I'm adding an explicit Cu API to force DOM compartments to
use same-origin Xrays. This allows us to keep testing this stuff, which I think
is important.
2012-11-21 13:20:04 -08:00
Daniel Holbert 10928a1716 Bug 811057: Make DeferredFinalizeFunction take a uint32 instead of an int32 as its "slice" parameter. r=peterv 2012-11-21 10:20:32 -08:00
Ryan VanderMeulen bc75900a01 Merge m-c to inbound. 2012-11-20 20:28:29 -05:00
Olli Pettay 6531f58d50 Bug 794158, Remove over-complicated AutoWrapperChanger, r=peterv 2012-11-20 23:01:28 +02:00
Bill McCloskey 742e117df4 Backout 2ee20348ae59 (bug 747066) for Win64 crashes 2012-11-20 10:45:43 -08:00
Benjamin Peterson 2726941d91 Bug 795104 - Sources with a custom charset can't be lazily loaded. r=bz 2012-11-20 11:30:03 -06:00
Boris Zbarsky b6b9137a48 Bug 813423. A bit more inlining for stuff that should really be inline. r=peterv 2012-11-20 11:36:06 -05:00
Boris Zbarsky 77eb8146ff Bug 813419. Add a non-null-checking version of xpc_UnmarkGrayObject. r=mccr8 2012-11-20 11:36:06 -05:00
Nicolas B. Pierron eaf17fb9d0 Bug 810062 - Toggle JSOPTIONs before the compartment creation. r=bhackett 2012-11-19 18:07:20 -08:00
Bill McCloskey 4e8591dd0b Bug 747066 - Inline xpc_UnmarkGray (r=terrence) 2012-11-19 10:59:01 -08:00
Nicholas Nethercote f41b18a4d6 Bug 789398 - Rework the type inference memory reporters. r=bhackett.
--HG--
extra : rebase_source : 945c35907d0d4a62b904664da7b5f2b35a182034
2012-11-18 14:40:01 -08:00
Jim Mathies 21f4b948a5 Bug 810810 - Add support for 'APluginsDL' to the xpcshell directory service provider and return the GRE folder when queried. r=bsmedberg, glandium 2012-11-17 14:35:16 -06:00
Jonathan Griffin 79264276f7 Backed out a94288026ea5 (Bug 811784) for turning all b2g emulator tests red 2012-11-16 18:30:22 -08:00
Kyle Huey c728f95e75 Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap
--HG--
extra : rebase_source : 6da8a33c512b2e5758094f4a2108e5c342c7c28c
2012-11-16 08:54:58 -08:00
Ed Morley a72389aba9 Backout 4bc502c08da4 (bug 811784) for xpcshell failures 2012-11-16 18:16:33 +00:00
Kyle Huey ee01241abe Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap 2012-11-16 08:54:58 -08:00
Kannan Vijayan 96d5dc12c8 Bug 803730 - Mochitest for bug. 2012-11-15 22:57:18 -05:00
Bobby Holley d18e457a84 Bug 809674 - Fail at call time when invoking an XPCWrappedJS method with [implicit_jscontext] or [optional_argc]. r=mrbkap
I think this is the path of least resistance here.
2012-11-15 10:16:36 -08:00
Peter Van der Beken a1d0e1ff9a Fix for bug 811895 (Fix WN Xray special methods so they can take new DOM binding objects). r=bz.
--HG--
extra : rebase_source : 4b4ade0c3cddee9241e94f2e20216cee73a8e284
2012-09-26 16:17:51 +02:00
Benoit Jacob f5eae0f15f Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 2: handmade fixups - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob 7cc7c472e5 Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Boris Zbarsky 05ba9f02c1 Bug 811449 part 8. Get rid of nsGenericElement. r=peterv 2012-11-14 14:10:08 -08:00
Peter Van der Beken 0a5f44ada8 Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
--HG--
extra : rebase_source : 842b9397d2b050f880c44d3366bcc838e6615fd5
2012-11-11 00:30:15 +01:00
Ben Turner c8cb7e42d3 Bug 809661 - Need a speedy way to construct a thread list for SMS messages. r=sicking 2012-11-14 11:49:56 -08:00
Bobby Holley 6a7c5df33e Bug 569506 - Tearoff tests. r=mrbkap 2012-11-14 10:15:13 -08:00
Bobby Holley 7c36e30523 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 2988e5c227 Bug 800915 - Reimplement PUNCTURE consumers in terms of isSafeToUnwrap() and remove PUNCTURE API. r=mrbkap 2012-11-14 09:56:25 -08:00
Bobby Holley 8b01117ea3 Bug 800915 - Add infrastructure to flag security wrappers as unsafe to unwrap. r=mrbkap 2012-11-14 09:56:25 -08:00
Bobby Holley 6f63d40f85 Bug 800915 - Clarify and refine the semantics of SecurityWrapper so that it is used if and only if unwrapping is unsafe. r=mrbkap
The naming scheme for Xray typedefs is the concatenation of the tuple:
({SC,}, {Security,Permissive}, Xray, {XPCWN,DOM}). This is admittedly a bit
much, but I think it's still better than explicitly doing the "typdef Foo Xray"
everywhere. Moreover, once the new DOM bindings are done, the last component
in the tuple will go away.
2012-11-14 09:56:25 -08:00
Ed Morley 35b84cb08f Backout 54c4f2ff78e3 (bug 807075) for Windows compilation errors 2012-11-14 16:45:28 +00:00
Peter Van der Beken f19ca9b71f Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
--HG--
extra : rebase_source : 9afce481cd0a5c8a1014c8c9b0aad7d6665aaa82
2012-11-11 00:30:15 +01:00
Gregor Wagner 54188f6e82 Backout f2c60518351d Bug 809661 2012-11-13 14:44:18 -08:00
Ben Turner 073357cfca Bug 809661 - Need a speedy way to construct a thread list for SMS messages. r=sicking 2012-11-13 13:01:26 -08:00
Kyle Huey e690de14af Bug 810987: When sharing a global, don't import properties onto the global, import them onto the appropriate 'this' object. r=mrbkap
--HG--
extra : rebase_source : c3a92d4197831fa3061bf3f01b7cc610cc89e867
2012-11-13 11:13:27 -08:00
Kyle Huey 437ea18f52 Backout Bug 810987. 2012-11-13 10:27:37 -08:00
Kyle Huey 1605b8037a Backed out changeset 62886fd1aaa4 2012-11-13 10:25:24 -08:00
Kyle Huey a63f21401a Bug 810987: Followup bustage fix. 2012-11-13 10:24:08 -08:00
Kyle Huey f6db28c28a Bug 810987: When sharing a global, don't import properties onto the global, import them onto the appropriate 'this' object. r=mrbkap 2012-11-13 08:57:44 -08:00
Ed Morley 6c4fbc534b Backout bcb591d32bd6 (bug 809674) on suspicion of breaking B2G marionette-webapi 2012-11-13 13:48:21 +00:00
Ryan VanderMeulen 5f0fd7aeda Backed out de9fff3a523, c567df2244f5, 8e3d976d5dc5, and c7499faaec23 (bug 800915) for bustage.
--HG--
extra : rebase_source : c823063bfa31d59d32b3402bd4b458b84b703cd5
2012-11-12 21:43:39 -05:00