Commit Graph

2274 Commits

Author SHA1 Message Date
Daniel Holbert
46611d9455 Bug 880078: Remove no-longer-used variable 'secFlag' from XPCWrappedNative::CallMethod. r=bholley 2013-06-06 00:27:16 -07:00
Bobby Holley
60866a3d1b Bug 877261 - Fold XPCCallContext::Init into XPCCallContext::XPCCallContext. r=Ms2ger
The large block is a simple move.
2013-06-04 21:11:21 -07:00
Bobby Holley
5881e7cb24 Bug 877261 - Remove WrapperInitOptions. r=Ms2ger
Now that we don't have the separate path for initialization from an
XPCLazyCallContext, this stuff can be simplified. We get rid of Init entirely
in the next patch.
2013-06-04 21:11:21 -07:00
Bobby Holley
46db20296e Bug 877261 - Kill XPCLazyCallContext. r=Ms2ger
\o/
2013-06-04 21:11:21 -07:00
Bobby Holley
ab6d52b50e Bug 877261 - Remove XPCLazyCallContext from Quickstubs. r=Ms2ger
There are a number of places where quickstubs does a scary-looking call to
lccx->SetWrapper. However, the lccx never gets morphed into a ccx, nor does
it escape in any other way. And unlike ccxes, declaring an lccx on the stack
doesn't have any observable side-effects. So this should actually be safe.
2013-06-04 21:11:20 -07:00
Bobby Holley
e0f38c8c77 Bug 877261 - Stop Passing lccx in a few Quickstubs places where we just want a JSContext. r=Ms2ger 2013-06-04 21:11:20 -07:00
Bobby Holley
c9aed98a89 Bug 877261 - Remove the last two non-quickstub XPCLazyCallContexts. r=Ms2ger 2013-06-04 21:11:20 -07:00
Bobby Holley
1beab8c85f Bug 877261 - Remove a bunch of now-unnecessary ccx declarations from nsXPConnect. r=Ms2ber 2013-06-04 21:11:20 -07:00
Bobby Holley
2be6886ec3 Bug 877261 - Remove XPCCallContext from XPCCComponents. r=Ms2ger 2013-06-04 21:11:19 -07:00
Bobby Holley
c10703b2f4 Bug 877261 - Stop taking a cx in XPCWrappedJS::GetNewOrUsed. r=Ms2ger
Some of these callers seem to be passing a ccx when they don't need to, but
let's just remove the param all together for consistency.
2013-06-04 21:11:19 -07:00
Bobby Holley
868b75c7e1 Bug 877261 - Stop using XPCCallContext for XPCConvert. r=Ms2ger 2013-06-04 21:11:19 -07:00
Bobby Holley
9588461fd2 Bug 877261 - Stop using XPCCallContext for most stuff in XPCWrappedNative.cpp. r=Ms2ger
Starting with the above, this is the smallest unit change that will compile.
2013-06-04 21:11:18 -07:00
Bobby Holley
8da2a4ffbb Bug 877478 - Remove the machinery for security managers in XPCContext. r=mrbkap 2013-06-04 19:56:43 -07:00
Bobby Holley
69fd76705f Bug 877478 - Move all consumers of GetAppropriateSecurityManager to GetDefaultSecurityManager and rm the former. r=mrbkap 2013-06-04 19:56:43 -07:00
Bobby Holley
7a7cb3b991 Bug 877478 - Remove SetSecurityManagerForJSContext and related APIs. r=mrbkap
The only consumers here were the shells, which we've now fixed.
2013-06-04 19:56:43 -07:00
Bobby Holley
ec2aeea66b Bug 877478 - Remove FullTrustSecMan junk. r=mrbkap
This stuff shouldn't be necessary anymore. The default security manager should
do the right thing given for script running in the scope of a BackstagePass.
2013-06-04 19:56:42 -07:00
Bobby Holley
1b8ed7cb9a Bug 879341 - Use an AutoSafeJSContext in CheckForDebugMode like we should. r=gabor 2013-06-04 15:37:59 -07:00
Bobby Holley
53f56a3be4 Bug 879341 - Move CheckForDebugMode into the main thread event observer. r=gabor
This gets invoked at the very end of nsThread::ProcessNextEvent(). If the cx stack
is empty here, that means the event loop isn't nested - if it it was, we'd at
least have a null cx on the stack from a higher-level call to OnProcessNextEvent
for the main thread observer.

As such, this seems like a much more reasonable place to make debug mode changes.
2013-06-04 15:37:58 -07:00
Bobby Holley
605334575c Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap 2013-06-04 10:30:11 -07:00
Daniel Holbert
c8fa6a671c Bug 879029: Remove no-longer-used variable 'xpc' from nsCxPusher::DoPush. r=bholley 2013-06-03 16:17:22 -07:00
Ryan VanderMeulen
7e8c2a6c93 Backed out 3 changesets (bug 877862, bug 878325) for mochitest-other orange on a CLOSED TREE.
Backed out changeset 803586f0a297 (bug 878325)
Backed out changeset d4a39e18e5a7 (bug 878325)
Backed out changeset 08a29f18500a (bug 877862)
2013-06-03 15:50:59 -04:00
Bobby Holley
0e971c2ed9 Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap 2013-06-03 11:27:41 -07:00
Trevor Saunders
5e358955b9 bug 873622 - remove XPCCallContext::GetXPConnect() r=bholley 2013-05-17 15:21:23 -04:00
Trevor Saunders
399641e550 bug 873622 - remove nsIXPConnectWrappedNative::GetXPConnect() r=bholley 2013-05-17 14:31:02 -04:00
Trevor Saunders
5b48393469 bug 873622 - remove some useless xpconnect getters r=bholley 2013-05-17 13:28:08 -04:00
Trevor Saunders
6a25cfb54f bug 873622 - speed up nsXPConnect::GetXPConnect() and rename it since it never returns null r=bholley 2013-05-17 01:49:41 -04:00
Ms2ger
c1c1a92c3b Bug 876604 - Outparamdel UnwrapDOMObjectToISupports; r=bz 2013-06-01 08:56:02 +02:00
Bobby Holley
c72d0f8113 Bug 858101 - Run the DefaultValue algorithm directly on the wrapper for Xrays. r=mrbkap 2013-05-31 10:36:01 -07:00
Gabor Krizsanits
94a2af0a2c Bug 875405 - fixing unpushed cx usages. r=bholley 2013-05-30 16:54:46 +02:00
Peter Van der Beken
44c790a6fb Bug 874321 - Fix setting of expandos on Xrays for DOM bindings with named properties. r=bz.
--HG--
extra : rebase_source : 697545417d27696de05c0f22987e4cb187d226cd
2013-05-29 11:38:57 +02:00
Brian Hackett
ddbb9d9519 Bug 678037 - Add (disabled) ability to parse script bytecode lazily, r=luke. 2013-05-30 06:29:56 -06:00
Kyle Huey
3cc4ccd2f5 Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz 2013-05-30 11:15:31 +08:00
Boris Zbarsky
e1d7ebf663 Bug 876805. Fix unsafe reference gc hazards in dom/ code. r=smaug 2013-05-29 16:16:04 -04:00
Bobby Holley
915ff39473 Bug 876762 - Remove support for mScopeForNewJSObjects. r=luke 2013-05-29 09:50:49 -07:00
Ryan VanderMeulen
39c4db0fb4 Merge m-c to fx-team. 2013-05-28 21:25:32 -04:00
Bobby Holley
d96de02e67 Bug 872135 - Remove unnecessary nsContentUtils include. r=me DONTBUILD 2013-05-28 11:05:38 -07:00
Bobby Holley
6032157247 Bug 870423 - Tests. r=bz 2013-05-28 10:29:38 -07:00
Mihai Sucan
1611b7310d Bug 859756 - [browserconsole] Add timestamp to nsIConsoleMessages; r=bz 2013-05-24 21:36:56 +03:00
Mike Shal
994cfe0b6b Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Jon Coppeard
8a68ce4b84 Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz 2013-05-27 12:50:49 +01:00
Masatoshi Kimura
46330f1dc1 Bug 875155 - Make bug 809674 test self-contained. r=bholley 2013-05-25 07:55:18 +09:00
Boris Zbarsky
b6bcc5c7f7 Bug 875628. NewProxyObject should take a handle for the private value. r=till 2013-05-24 13:03:13 -04:00
Bobby Holley
4d51cd1086 Bug 874318 - Don't allow CALL on XOWs. r=mrbkap 2013-05-22 22:27:16 -06:00
Bobby Holley
346f85a57c Bug 862380 - Tests. r=mrbkap 2013-05-22 22:27:15 -06:00
Bobby Holley
66cef80cfe Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap 2013-05-22 22:27:15 -06:00
Bobby Holley
4b3957c0bc 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
04fe393f0c Bug 862380 - Pass the entered id in addition to the wrapper action to Policy::deny. r=mrbkap 2013-05-22 22:27:15 -06:00
Bobby Holley
d1daeb827a Bug 868110 - Introduce a more private API for the consumers that really do need the default compartment object. r=luke
The primary consumer of this is the whole inner/outer DOM window setup, which
uses the default global to track the current inner. But there are few other
random ones as well.

We use this as an opportunity to convert a bunch of consumers from the two-step
GetNativeContext() -> JS_GetGlobalObject() into just |GetNativeGlobal()|. This
will make things much easier to convert when we start tracking the current inner
explicitly.
2013-05-22 15:42:44 -06:00
Tom Schuster
dea1fca4c0 Bug 863957 - Check if jsid is really a string in Components.interfacesByID. r=bz 2013-05-22 22:32:50 +02:00
Bobby Holley
29aaa7a698 Bug 872135 - Use the SafeJSContext in nsXPConnect::CheckForDebugMode. r=gabor 2013-05-22 10:05:28 -06:00