Commit Graph

386 Commits

Author SHA1 Message Date
Nicholas Nethercote
ba723f1034 Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Jon Coppeard
694e4a5be0 Bug 900979 - Change JS_DeleteProperty APIs to use a boolean out param rather than a value r=waldo r=bz 2013-08-05 14:01:53 +01:00
Jon Coppeard
93c50cb189 Bug 899973 - GC: Convert the rest of the JS property API to use MutableHandleValue for out params - browser changes r=bz 2013-08-02 13:15:39 +01:00
Tom Schuster
0b021a6fa2 Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Bobby Holley
8848597459 Bug 898939 - Loosen assertion. r=bz
This is just an overzealous assertion, rather than a security issue.
2013-07-30 08:43:46 -07:00
Trevor Saunders
82e5558b37 bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal 2013-07-11 11:06:34 -04:00
Jeff Walden
296b917e73 Bug 888106 - Add too-much-recursion detection to isExtensible tests, and make the isExtensible hook capable of failing. r=bholley, r=ejpbruel
--HG--
extra : rebase_source : fe7345322f87dd214aa5122ea8704750e8b2375a
2013-06-28 14:01:09 -07:00
Terrence Cole
d145542530 Bug 878160 - GC: post barrier weak references in the browser - part 2 browser r=terrence r=billm
--HG--
extra : rebase_source : a1856a7dce28da5086f6fbeaeda15596193aa7ad
2013-06-05 16:40:02 -07:00
Ms2ger
2dcf517a55 Bug 888579 - Remove some code that handled WN Nodes; r=bholley 2013-07-01 09:14:36 +02:00
Justin Lebar
904130e9c2 Bug 820686 - Follow-up: s/MOZ_ASSUME_NOT_REACHED/MOZ_ASSUME_UNREACHABLE/. rs=waldo
I'd meant to do this, but I only got as far as the comment in mfbt.  Oops!

--HG--
extra : rebase_source : 3cfe3ef1bf401eb7d9a10fcabcfb39008e9553a4
2013-06-28 19:20:12 -07:00
Justin Lebar
6c46d0633d Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Ms2ger
0b036f4010 Bug 884951 - Use XPCWrappedNative::Get more; r=bholley 2013-06-23 09:15:55 +02:00
Ms2ger
ff63d2149b Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug 2013-06-23 09:15:42 +02:00
Jon Coppeard
2632590a6e Bug 885310 - 2 Rename JSHandleFoo in js directory r=bholley 2013-06-21 14:12:46 +01:00
Brian O'Keefe
5f8b5163e8 Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Terrence Cole
0ae404a1ee Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Jon Coppeard
63011a7ca0 Bug 884371 - Remove JSMutableHandleXXX from the js directory r=bholley 2013-06-19 11:32:27 +01:00
Peter Van der Beken
1badbbcf0f Bug 851465 - Remove slim wrappers - remove slim wrapper macros and rename WN macros. r=bholley. 2013-04-19 21:58:30 +02:00
Peter Van der Beken
88cdaa8f8b Bug 851465 - Remove slim wrappers - remove various slim wrapper code and checks. r=bholley. 2013-04-19 21:57:18 +02:00
Peter Van der Beken
76ae99ee96 Bug 851465 - Remove slim wrappers - stop morphing slim wrappers. r=bholley. 2013-04-19 21:57:15 +02:00
Ms2ger
b9e065f934 Bug 881358 - Kill build warnings in XPConnect; r=bholley 2013-06-12 09:00:09 +02: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
605334575c Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap 2013-06-04 10:30:11 -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
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
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
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
Bobby Holley
4d51cd1086 Bug 874318 - Don't allow CALL on XOWs. r=mrbkap 2013-05-22 22:27:16 -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
58c6661d63 Bug 874083 - Ignore domain in PrepareForWrapping prototype remapping. r=gabor, billm 2013-05-21 07:53:35 -06:00
Bobby Holley
064079672c Bug 872772 - Fix up lost Xray waivers when wrapping into the content compartment. r=gabor 2013-05-17 10:44:25 -07:00
Nathan Froyd
2271a709b0 Bug 871595 - don't include WrapperFactory.h in AccessCheck.h; r=bholley 2013-05-13 12:04:23 -04:00
David Zbarsky
81e131ceac Remove some unused code due to bug 871189, r=bz over irc 2013-05-16 12:29:03 -07:00
David Zbarsky
c8f4001a0a Bug 871189 - Remove Document classinfo r=bz 2013-05-16 11:06:21 -07:00
Ted Mielczarek
110919af49 bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium 2013-05-16 09:33:26 -04:00
Bobby Holley
718c0af04a Bug 866823 - Handle standard prototype remapping in PrepareForWrapping. r=gabor,mrbkap 2013-05-15 21:13:12 -07:00
Bobby Holley
e64892b96e Bug 866823 - Don't create waivers in WaiveXrayAndWrap if the caller has no business waiving. r=gabor,mrbkap 2013-05-15 21:13:12 -07:00
Bobby Holley
d0202a05c6 Bug 857356 - Remove XBL field auto-waiving. r=bz 2013-05-09 09:16:01 -07:00
Jon Coppeard
cc5d536d60 Bug 869526 - GC: Fix more rooting hazards in xpconnect r=bholley 2013-05-09 10:39:21 +01:00
Bobby Holley
84aefeb108 Bug 834707 - Kill dynamic SOWs. r=gabor
Now that XBL scopes are here to stay (no more pref), we can remove all the
machinery that makes SOWs dynamic. We still need SOWs until bug 825392 is
fixed, but they can now be totally opaque.

One side effect of this patch is that, due to our usage of Opaque, we now
allow CALL on SOWs. But this shouldn't be a problem, because SOWs are used
for anonymous elements which are not callable (and we probably wouldn't mind
it even if they were).
2013-05-06 19:38:23 -07:00
Bobby Holley
023dfdb6f3 Bug 834707 - Disable SOWs for remote XUL domains. r=bz
We have to do this if we want to proceed with eliminating SOWs entirely. Given
the other restrictions around remote XUL, I don't think this is a problem.

Note that we shouldn't need any special handling in the wrapper reparenting
paths, because those all depend on whether a SOW was there already. So that
would only be an issue if it were possible to adoptNode from a non-remote-XUL
domain into a remote-XUL domain, which thankfully can't happen.
2013-05-06 19:38:22 -07:00
Bobby Holley
c9228b2c97 Bug 868122 - Calculate the JS_SaveFrameChain optimization by directly examining the principal of the default compartment. r=mrbkap,gabor 2013-05-06 16:53:10 -07:00
Phil Ringnalda
fedf6c0df7 Merge m-c to m-i 2013-05-05 12:17:07 -07:00
Ms2ger
65037ba176 Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz 2013-05-05 09:03:19 +02:00