Commit Graph

2253 Commits

Author SHA1 Message Date
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
Bobby Holley
ac7f7ccafb Bug 868130 - Fix include guard. r=me 2013-05-22 10:05:28 -06:00
Bobby Holley
91448a9dac Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
ba8c5579b5 Bug 868130 - Add an AutoRequest inside nsCxPusher. r=gabor 2013-05-22 10:05:26 -06:00
Bobby Holley
20dd5cfed6 Bug 868130 - Remove the dependencies of the nsCxPusher machinery on nsContentUtils, use nsCxPusher in xpcshell, and privatize APIs. r=gabor
No more xpc::danger, for now. ;-)
2013-05-22 10:05:26 -06:00
Bobby Holley
fbfc8f9abe Bug 868130 - Move nsCxPusher into XPConnect. r=gabor
The JSContext stack is an XPConnect construction. In particular, there are
situations where we want to manipulate it outside the lifetime of nsContentUtils
but within the lifetime of the stack itself. In order to do this cleanly, it's
helpful to use private XPConnect APIs. So the first step here is to move this into
js/src/xpconnect, so that we can take advantage of the stuff in xpcprivate.h.

--HG--
rename : content/base/src/nsCxPusher.cpp => js/xpconnect/src/nsCxPusher.cpp
rename : content/base/public/nsCxPusher.h => js/xpconnect/src/nsCxPusher.h
2013-05-22 10:05:26 -06:00
Bobby Holley
54ef3d2952 Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Bobby Holley
94963dc0b5 Bug 868130 - Enter a request for all of OnJSContextNew. r=peterv 2013-05-22 10:05:23 -06:00
Jan de Mooij
d1d46a2f99 Bug 857845 part 3 - Remove JM JSAPI flags, memory reporters and browser prefs. r=djvj
--HG--
extra : rebase_source : 8b2ed85801fcd8c8fd0fc16a89b1a275add1a310
2013-05-22 14:50:45 +02:00
Boris Zbarsky
08e2b56c8e Bug 874612. Make some nsIXPConnectWrappedNative methods take a Handle<jsid> instead of a jsid. r=bholley 2013-05-21 22:59:17 -04:00
Bobby Holley
58c6661d63 Bug 874083 - Ignore domain in PrepareForWrapping prototype remapping. r=gabor, billm 2013-05-21 07:53:35 -06:00
Brian Hackett
7f3a0017d1 Bug 871079 - Don't trigger operation callback if JS has been running for less than one second, r=bholley. 2013-05-20 20:26:44 -06:00
Andrew McCreight
45b08b78f1 Bug 873111 - Statically enforce root/child phase separation in cycle collector graph building. r=smaug 2013-05-20 13:08:11 -07:00
Masatoshi Kimura
39d0ce714a Bug 873753 - Remove classinfo bits from WebIDL-bound events. r=smaug 2013-05-21 04:34:12 +09:00
Bobby Holley
aef9decad9 Bug 871887 - Make sure |this|-binding is correct or marquee event listeners. r=bz 2013-05-20 11:33:49 -06:00
Boris Zbarsky
85b06d58a3 Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley 2013-05-20 08:44:18 -04:00
Boris Zbarsky
8fdfd3f823 Bug 873735 part 1. Fix the more or less mechanical browser rooting hazards. r=terrence 2013-05-20 08:40:06 -04:00
Boris Zbarsky
9b8ebb7008 Bug 873730. Make JS_SourceHook take a Handle for the JSScript. r=till 2013-05-18 23:09:11 -04:00
Masatoshi Kimura
0ce5a821cd Bug 871786 - Remove KeyboardEvent classinfo. r=smaug 2013-05-19 10:28:48 +09:00
Andrea Marchesini
38fc5d8909 Bug 870856 - Convert DOMError to WebIDL. r=Ms2ger, r=bz 2013-05-18 13:52:06 -04:00
Boris Zbarsky
fd290b314c Bug 868312 finale: finish rooting dom/ code. r=smaug 2013-05-17 21:48:25 -04:00
Gregory Szorc
14c4938355 Bug 873629 - Remove 129 empty Makefile.in files; r=ted 2013-05-17 16:20:11 -07:00