Bobby Holley
b9ab242827
Bug 803068 - Merge DirectWrapper and Wrapper. r=ejpbruel
...
--HG--
extra : rebase_source : a2b98a9585c6f7761747cfaf55684e6eeed91344
2012-10-29 16:52:53 +01:00
Bobby Holley
b709b3dc7f
Bug 803068 - Manually grab the BaseProxyHandler derived traps in SandboxProxyHandler. r=ejpbruel
...
Let's just bite the bullet and do this here. It will let us get rid of
IndirectProxyHandler, which has really overcomplicated our proxy hierarchy.
--HG--
extra : rebase_source : 7e81529936bc256d672e40537eb6abca6374e52c
2012-10-29 16:52:53 +01:00
Bobby Holley
b8b176e756
Bug 797206 - Remove GetPrincipalFromContext. r=bz
2012-10-29 15:55:36 +01:00
Peter Van der Beken
da84553f1f
Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript) - rename ProtoOrIfaceArray. r=bz.
...
--HG--
extra : rebase_source : c426270fc1ebee818629bd94dfc8d11af59bfc00
2012-10-09 20:50:27 +02:00
Peter Van der Beken
9194dae35e
Fix for bug 804992 (Enable objects with new DOM bindings to be parent of other DOM objects). r=bz.
...
--HG--
extra : rebase_source : f07cade82dad0216d94e68dd0c0f495977abeb31
2012-09-12 22:29:30 +02:00
Peter Van der Beken
c4a61ef363
Fix for bug 804732 (Remove mCachedDOMPrototypes). r=bz.
...
--HG--
extra : rebase_source : dc9ffe5f37dbc0542cbb47384b2d25472c70d801
2012-10-23 22:11:58 +02:00
Nicholas Nethercote
f3101549fc
Bug 805915 (part 5) - Add more detail to shape memory reports. r=luke.
...
--HG--
extra : rebase_source : f1a05ea15b78e5f33d6398accca3333ab29fa1c6
2012-10-29 08:51:21 +11:00
Nicholas Nethercote
77a87b6eb8
Bug 805915 (part 4) - Add more detail to string memory reports. r=luke.
...
--HG--
extra : rebase_source : 010e28f10917ae4cc9d0d11abace9bcdabf0aba8
2012-10-29 08:51:21 +11:00
Nicholas Nethercote
94ad872ba1
Bug 805915 (part 2) - Add more detail to object memory reports. r=luke.
...
--HG--
extra : rebase_source : e54ece88753280ccac284f6265fd92310dc1bec6
2012-10-29 08:51:21 +11:00
Nicholas Nethercote
5286ab9159
Bug 805915 (part 1) - Rename the "cross-compartment-wrappers" memory report. r=luke.
...
--HG--
extra : rebase_source : a9689bde17b043bc8bec55c0307c0bbf94768232
2012-10-29 08:51:21 +11:00
Ryan VanderMeulen
ce9be1b16b
Bug 799917 - Backout for various regressions.
2012-10-28 08:49:20 -04:00
Bill McCloskey
17ffbf5002
Bug 692267 - Remove jsgc.h from INSTALLED_HEADERS (r=terrence)
2012-10-26 11:17:24 -07:00
Andrew Quartey
1d0db40554
Bug 792581 - part 20: Replace LL_UI2L macro with int64_t cast. r=ehsan
2012-10-25 19:25:57 -04:00
Nikhil Marathe
814dbc2a57
Bug 804174 - Inline CallerHasUniversalXPConnect with IsCallerChrome. r=mccr8
2012-10-25 16:10:53 -07:00
Bobby Holley
94d3058170
Bug 797821 - Null check to fix intermittent orange. r=me
2012-10-25 18:36:45 +02:00
Ehsan Akhgari
78b2656cbc
Backed out 2 changesets (bug 579517)
...
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
03be701616
Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517)
2012-10-25 11:48:19 -04:00
Bobby Holley
2c584933ef
Bug 797821 - Address Ms2ger's review comments. r=me
2012-10-25 17:01:09 +02:00
Bobby Holley
888856a6f7
Bug 797821 - Remove the XPConnect Compartment Set. r=mrbkap
2012-10-25 17:01:09 +02:00
Bobby Holley
461c6572fd
Bug 797821 - Hoist XPConnect-y stuff out of the compartment private and into the XPCWrappedNativeScope. r=mrbkap
...
This change means we no longer have to keep around a set of XPConnect compartments.
We keep the compartment private around for non-xpconnecty stuff like about:memory
instrumentation that needs to happen on non-xpconnect compartments.
2012-10-25 17:01:09 +02:00
Bobby Holley
3d0731683a
Bug 797821 - Removed the unused reserved slot for XPConnect globals. r=mrbkap
2012-10-25 17:01:09 +02:00
Bobby Holley
1fd1acf5e9
Bug 797821 - Remove JSCLASS_XPCONNECT_GLOBAL flag. r=mrbkap
2012-10-25 17:01:09 +02:00
Bobby Holley
92a2cd3a9d
Bug 797821 - Decide whether we need to trace DOM stuff based on more relevant information than JSCLASS_XPCONNECT_GLOBAL. r=mrbkap
...
This will let us rip out that flag.
2012-10-25 17:01:08 +02:00
Bobby Holley
a6b39f268c
Bug 797821 - Remove FindInJSObjectScope and friends. r=mrbkap
...
\o/
2012-10-25 17:01:08 +02:00
Bobby Holley
f46b3babff
Bug 797821 - Replace usage of XPCWrappedNativeScope::FindInJSObjectScope(ccx, obj) with GetObjectScope(obj). r=mrbkap
2012-10-25 17:01:08 +02:00
Bobby Holley
723b180d23
Bug 797821 - Create XPCWrappedNativeScopes immediately after global creation. r=mrbkap
2012-10-25 17:01:08 +02:00
Bobby Holley
1c625b67e4
Bug 797821 - Remove xpc_NewSystemInheritingJSObject and cached mJSPrototypeObject. r=mrbkap
...
xpc_NewSystemInheritingJSObject is totally unnecessary now that the system bit
has been removed (\o/). Furthermore, the mJSPrototypeObject optimization is
really dumb. it complicates tracing significantly, and we don't actually use it
in any critical places: XPCWrappedNative and slim wrapper creation use a different
prototype, so this is used only for the creation of tearoff reflectors (seldom/
never used), XPCWrappedNativeProto objects, and the nohelper prototype on the
scope (once per scope).
We could actually just pass NULL to JS_NewObject and let it deal. However, this
would actually trigger a dynamic lookup for the prototype object of the
associated JSClass, which isn't what we want. So we just explicitly pass in
Object.prototype.
2012-10-25 17:01:08 +02:00
Bobby Holley
39c5c62a72
Bug 797821 - Remove unused aNative parameter to XPCWrappedNativeScope creation. r=mrbkap
2012-10-25 17:01:08 +02:00
Bobby Holley
e99bbde601
Bug 797821 - Stop storing mScriptObjectPrincipal. r=mrbkap
2012-10-25 17:01:08 +02:00
Bobby Holley
ea14cf4726
Bug 797821 - Stop making nsXBLDocumentInfo and nsXULPrototypeDocument globals with XPConnect. r=mrbkap
...
We already weren't creating a scope for them. They're generally pretty isolated
and are just used for holding functions that get cloned into other scopes.
Apparently mccr8 once found an edge from an nsXULPrototypeDocument scope into
another scope, but I don't think that should really break anything.
2012-10-25 17:01:07 +02:00
Bobby Holley
a7207d9cf8
Bug 797821 - Allow compartment privates to be lazily created when using them just for storing about:memory URIs. r=mrbkap
...
This will allow us to stop making nsXULPrototypeDocument and nsXBLDocumentInfo
globals XPConnect globals.
2012-10-25 17:01:07 +02:00
Bobby Holley
4f6ed4314a
Bug 797821 - Stop passing wantXrays directly to CreateGlobalObject. r=mrbkap
...
This can happen after the fact where it needs to.
2012-10-25 17:01:07 +02:00
Bobby Holley
2b65e9933d
Bug 797821 - Loosen the CompartmentPrivate contract so that having one does not imply being in the compartment set. r=mrbkap
...
The compartment set goes away in later patches anyway. This is to allow us to
create compartment privates for things like XUL prototype document globals
without having to put them in the set and trace expandos and such.
2012-10-25 17:01:07 +02:00
Bobby Holley
597176da8c
Bug 797821 - Simplify the call signature for XPC::CreateGlobalObject. r=mrbkap
2012-10-25 17:01:07 +02:00
Bobby Holley
5b8ecc6233
Bug 797821 - Remove CreateNewGlobal. r=mrbkap
...
It doesn't do anything useful at this point.
2012-10-25 17:01:07 +02:00
Bobby Holley
4ae7a4efff
Bug 797821 - Remove the dependency of XPCWrappedNativeScope instantiation on XPCCallContext and expose the raw constructor. r=mrbkap
2012-10-25 17:01:07 +02:00
Bobby Holley
1d77b1d068
Bug 801576 - Android bustage fix. r=me
2012-10-24 14:18:39 +02:00
Bobby Holley
ed10eb5a54
Bug 801576 - Add tests for the same-origin policy. r=mrbkap
2012-10-24 12:04:19 +02:00
Bobby Holley
617a6ac6bd
Bug 801576 - Forbid cross-origin access to the History object. r=mrbkap
2012-10-24 12:04:18 +02:00
Ryan VanderMeulen
a25b975d2e
Merge m-c to inbound.
2012-10-23 22:41:34 -04:00
Ryan VanderMeulen
12d8547592
Merge the last PGO-green inbound changeset to m-c.
2012-10-23 22:28:33 -04:00
Olli Pettay
f060a0ba42
Bug 780770, nsThread::SetMainThreadObserver, r=bz+bholley
2012-10-24 01:26:36 +03:00
Benjamin Peterson
b26c0de860
Bug 804404 - Set source hook in XPC initialization. r=bz
2012-10-23 18:09:00 -04:00
Chuck Lee
3156424831
Bug 780142 - Rewrite MozWifiConnectionInfoEvent. r=smaug
2012-10-22 18:18:26 +08:00
Chuck Lee
c467984383
Bug 780142 - Rewrite WifiStatusChangeEvent. r=smaug
2012-10-22 17:17:18 +08:00
Nick Hurley
e7f284c9d3
Bug 536324 part 3 - Change consumers of nsIChannel. r=sworkman
2012-10-22 10:51:07 -07:00
Andres Hernandez
3da7d5c215
Bug 769298 - Avoid logging script errors coming from private windows in the global error console
2012-10-19 15:52:21 -06:00
Boris Zbarsky
04d6d1040c
Bug 801712 part 2. Switch ImageData to WebIDL bindings. r=peterv
2012-10-22 13:08:52 -04:00
Boris Zbarsky
f49c8f247c
Bug 801712 part 1. Add the WebIDL binding API to ImageData. r=peterv
2012-10-22 13:08:52 -04:00
Boris Zbarsky
4ca88b5279
Bug 801723. WebIDL binding objects may not have classinfo even if they're nsISupports. r=peterv
2012-10-22 13:08:51 -04:00