Commit Graph

3156 Commits

Author SHA1 Message Date
Boris Zbarsky
30b2700eab Bug 963895. Add threadsafe versions of AutoJSContext/AutoSafeJSContext. r=bholley 2014-01-29 22:33:03 -08:00
Eric Faust
bb4653d814 Bug 924720 - Part 5: Allow callers of NewProxyObject() to specify a Proxy JSClass. (r=jwalden) 2014-01-29 17:20:16 -08:00
Eric Faust
33263c0776 Bug 924720 - Part 2: Make OuterWindowProxy use the proxy HasInstance and Convert stubs. (r=bholley) 2014-01-29 17:20:15 -08:00
Bobby Holley
b1b797c867 Bug 965082 - Tests. r=mrbkap,r=gabor 2014-01-29 13:07:13 -08:00
Bobby Holley
8e3433fd5d Bug 965082 - Only run the {get,set}PrototypeOf override for non-SecurityWrappers. r=mrbkap,r=gabor 2014-01-29 13:07:13 -08:00
Bobby Holley
6932dd8917 Bug 965082 - Unify duplicate bits of state of proxies. r=mrbkap,r=gabor
Conceptually, these all boil down to "is this a security wrapper?"
2014-01-29 13:07:13 -08:00
Ed Morley
dd1432c15c Merge mozilla-central and inbound 2014-01-29 10:39:41 +00:00
Jon Coppeard
73e01da607 Bug 959787 - Handlify some JS friend APIs r=sfink 2014-01-29 10:01:33 +00:00
Jon Coppeard
b5a2f0569c Bug 959787 - Handlify some misc JS APIs r=sfink r=smaug 2014-01-29 10:00:40 +00:00
Henry Chang
7c4cd52214 Bug 811635 - Part 2: Implementation of WebIDLs/IDLs for WifiP2pManager and WifiP2pStatusChangeEvent. r=vchang 2014-01-27 15:48:10 +08:00
Chris Peterson
28f3584391 Bug 964016 - Part 4: Replace JS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE. r=luke 2014-01-24 20:14:56 -08:00
Andrew McCreight
0df713733d Bug 963665 - Make nsIXPConnect noscript. r=bholley 2014-01-27 07:16:38 -08:00
Peiyong Lin
07cf02302b Bug 961041 - Replace infallible allocation in DOMStorage::BroadcastChangeNotification with fallible allocation. r=smaug 2014-01-27 08:25:19 -05:00
Andrew McCreight
3ca5e94a9f Bug 963312 - Get JS engine telemetry values from Components.utils, not nsIXPConnect. r=bholley,taras 2014-01-26 07:57:00 -08:00
Zack Weinberg
098b7dc5c7 Bug 933885 part 1: make xpcshell dump() and print() handle non-ASCII characters correctly. r=bz 2014-01-25 23:27:11 -05:00
Jon Coppeard
7d118df1ce Bug 963167 - Convert JS_SetElement() to take HandleValue rather than MutableHandleValue r=sfink r=bz 2014-01-25 09:31:17 +00:00
Jon Coppeard
57edf84676 Bug 959787 - Handlify JS_Set* APIs r=terrence r=bz 2014-01-25 09:29:12 +00:00
Boris Zbarsky
ef6c1819b3 Bug 962605 part 2. Enable baseline jit in xpcshell. r=bholley 2014-01-22 14:37:11 -05:00
Bobby Holley
3b985cf9d7 Bug 957688 - Remove nsIXPCSecurityManager::CanAccess and nsScriptSecurityManager::CheckPropertyAccessImpl. r=mrbkap
\o/
2014-01-24 16:08:26 -08:00
Bobby Holley
03fb99d54e Bug 957688 - Kill off checkAccess. r=mrbkap 2014-01-24 16:08:26 -08:00
Bobby Holley
f99748dd9f Bug 957688 - Remove checkAccess nsIXPCScriptable hook. r=mrbkap 2014-01-24 16:08:25 -08:00
Terrence Cole
4a61834330 Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 7; r=sfink 2014-01-21 17:03:20 -08:00
Terrence Cole
f62e0d6505 Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 6; r=jonco 2014-01-17 10:10:17 -08:00
Jon Coppeard
e04fe7ce7c Bug 959787 - Handlify JS_Lookup* APIs r=sfink r=bz 2014-01-24 14:03:56 +00:00
Nicholas Nethercote
dd904d4ef9 Bug 961883 (part 3) - Measure and report the Nursery. r=terrence.
--HG--
extra : rebase_source : 6f12d47ca8cedc96b0dd0477ca4f71de08e47181
2014-01-21 17:17:08 -08:00
Nicholas Nethercote
286bcca0cc Bug 961883 (part 2) - Measure and report the StoreBuffer. r=terrence.
--HG--
extra : rebase_source : f298f0373b7fee99eee7a62060f882d628f97eb2
2014-01-21 17:17:02 -08:00
Nicholas Nethercote
674e5b03a5 Bug 961883 (part 1) - Measure and report the SourceDataCache. r=benjamin.
--HG--
extra : rebase_source : b599e19fb681e972b1f6e184c44f5a726a61009f
2014-01-20 19:52:57 -08:00
Ryan VanderMeulen
9b696217ac Backed out changeset 26984019ff59 (bug 962605) for suspicion of causing OSX 10.8 debug mochitest-other crashes.
CLOSED TREE
2014-01-23 12:45:43 -05:00
Boris Zbarsky
eb3ea30e19 Bug 962605. Enable baseline jit in xpcshell. r=bholley 2014-01-22 14:37:11 -05:00
Wes Kocher
1df0d11b3e Backed out changeset c75f13d4f160 (bug 962605) 2014-01-22 16:16:07 -08:00
Boris Zbarsky
3f2c45354d Bug 962605. Enable baseline jit in xpcshell. r=bholley 2014-01-22 14:37:11 -05:00
Tom Schuster
4fe0ac9e85 Bug 958119 - Some cleanup for XPConnect. r=gabor 2014-01-22 18:50:32 +01:00
Carsten "Tomcat" Book
9067c9a2da Merge mozilla-central to mozilla-inbound 2014-01-22 14:37:23 +01:00
Carsten "Tomcat" Book
4fc7f2f24a merge b2g-inbound to mozilla-central 2014-01-22 13:59:54 +01:00
Gina Yeh
5f54a70b3a Bug 952907 - Patch 1: Use WebIDL codegen to implement Bluetooth events, r=smaug 2014-01-22 14:26:29 +08:00
Nathan Froyd
480bc7e4bc Bug 962241 - don't spam error messages about ContractIDToCID failing; r=bholley 2014-01-21 16:14:22 -05:00
Jon Coppeard
e58c03168c Bug 959787 - Handlify has property APIs r=terrence r=bz 2014-01-22 11:28:06 +00:00
Andrew McCreight
f94fdcd656 Bug 961551, part 9 - Split scope of |wrapper|, plus other cleanup. r=bholley 2014-01-21 17:56:16 -08:00
Andrew McCreight
0fe088b81d Bug 961551, part 8 - Use the code at the end of XPCWJS::GetNewOrUsed to build a new root wrapper. r=bholley
The code at the end of nsXPCWrappedJS::GetNewOrUsed will now correctly
construct a root wrapper when |root == nullptr|, so we can consolidate
the two places that construct |wrapper|.
2014-01-21 17:56:16 -08:00
Andrew McCreight
a065e0f69c Bug 961551, part 7 - Smart pointerize rootClasp. r=bholley
Also, move the declaration of |clasp| down to where it is used.
2014-01-21 17:56:16 -08:00
Andrew McCreight
d7fc298807 Bug 961551, part 6 - Smart pointerize wrapper. r=bholley 2014-01-21 17:56:15 -08:00
Andrew McCreight
e616bf8d69 Bug 961551, part 5 - Smart pointerize root. r=bholley 2014-01-21 17:56:15 -08:00
Andrew McCreight
5f32fbd5bb Bug 961551, part 4 - Remove release_root from XPCWJS::GetNewOrUsed. r=bholley
GetNewOrUsed now always releases |root| when |root| is non-null, so
release_root can be eliminated.
2014-01-21 17:56:15 -08:00
Andrew McCreight
6648abe1d6 Bug 961551, part 3 - Hold a strong ref to the root that is the result of Find in XPCWJS::GNOU. r=bholley
This is trickier than it looks, because this change causes additional
refcount traffic on |root| in the case where FindOrFindInherited
succeeds. This is potentially bad because if a WJS has a refcount of 1,
and no weak references to it, then if it goes to a refcount of 2 then
back to 1 it will be deleted.  A WJS can get in this state if it
is a root with a refcount of 2, and has a weak reference, then
its refcount drops to 1, then later the weak reference goes away.

However, in this case, there can be no other WJS in the chain,
or the refcount would be greater than 1, so FindOrFindInherited
must end up returning |root|, so |wrapper == root|, and the
assignment to |wrapper| will make root go to a refcount of 3,
so the release of |root| on exit will only cause the refcount to
go to 2, so |root| won't be deleted.
2014-01-21 17:56:15 -08:00
Andrew McCreight
1042fc8b9b Bug 961551, part 2 - Move addref out of XPCWrappedJS ctor. r=bholley
This paves the way for smart pointerization.
2014-01-21 17:56:15 -08:00
Andrew McCreight
dd44ea589f Bug 961551, part 1 - Add root wrappers to the map in XPCWrappedJS ctor. r=bholley 2014-01-21 17:56:15 -08:00
Bobby Holley
f6e4a6123b Bug 958324 - Remove SOW-transplant-related fixup. r=peterv
This became obsolete with bug 922009.
2014-01-21 08:26:41 -08:00
Bobby Holley
50f9d2007f Bug 958324 - Remove same-compartment security wrappers for WNs. r=peterv,r=mrbkap
We've fixed Components, and SOWs are new-binding only. Youpie!
2014-01-21 08:26:40 -08:00
Bobby Holley
e5620c7a5e Bug 961054 - Don't invoke SetLastResult until the completion of an XPCWN method call. r=mrbkap 2014-01-21 08:25:29 -08:00
Jon Coppeard
2bbbec43e9 Bug 961095 - Improve generic callbacks with better typing, and by only adding storebuffer entries when the key is in the nursery r=terrence 2014-01-21 10:44:39 +00:00