Граф коммитов

459 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley 63ad77a18f Backed out changeset 86128d3eac88 (bug 916939) for breaking the web. r=me 2013-09-20 10:32:32 -07:00
Bobby Holley 75ca6697e7 Bug 916939 - Drop support for named and indexed access on cross-origin windows. r=bz 2013-09-18 08:39:48 -07:00
Bobby Holley a1adca6383 Bug 916983 - Stop allowing writes for named access to cross-origin properties. r=bz 2013-09-17 09:46:30 -07:00
Bobby Holley b2dcf6a05b Bug 856437 - Remove same-compartment permissive Xray machinery. r=gabor 2013-09-11 11:28:21 -07:00
Dan Gohman a50084b38d Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Ehsan Akhgari 4bfc25a75e Bug 913851 - Minimize the #includes in js/xpconnect; r=bholley
X-Git-Commit-ID: 78e6843063b303780a7dd2695dd2824a0a9c9a3c

--HG--
extra : rebase_source : 1dfcc228f43c68efbbc74f639570c227c26ef025
2013-09-09 23:14:10 +02:00
Kyle Huey 888aba875b Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Nicholas Nethercote 8129026433 Bug 912411 (part 2) - Move JSID_{VOID,EMPTY}HANDLE from jsapi.{h,cpp} to Id.{h,cpp}. r=luke.
--HG--
extra : rebase_source : 5fb68bf5079e3261fdca6cb99717d3a502c878f3
2013-09-05 16:08:57 -07:00
Nicholas Nethercote 6ae716adf2 Bug 912411 (part 1) - Removed some jsapi.h includes in Gecko. r=bz.
--HG--
extra : rebase_source : c0b73945bcd6978a616fd846e33e69fae9162d78
2013-09-05 16:08:06 -07:00
Mike Hommey f8bc7fa754 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Nicholas Nethercote cbd87e0b81 Bug 911043 (part 1) - Move the "inject JS:: names into js::" block into its own file, to reduce dependencies on jsapi.h. r=luke.
--HG--
extra : rebase_source : 2250064bdd316ffeb8126da749bdf94ab9da4418
2013-09-01 21:51:02 -07:00
Nicholas Nethercote 7fbc04343e Bug 910109 (part 2) - Make jswrapper.h not depend on jsapi.h. r=luke.
--HG--
extra : rebase_source : 138e93b074691e9da0feab9cd24e149f4d5edf6a
2013-08-28 17:24:34 -07:00
Ms2ger f805d8d6eb Merge m-c to inbound 2013-08-22 10:38:48 +02:00
Ms2ger bdfaa84f5b Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger 1c4d224f0e Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg 2013-08-22 08:56:00 +02:00
Ms2ger 4807f1c86c Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Nicholas Nethercote 2585de9a07 Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Ms2ger 32b4cafc67 Bug 903849 - Use MOZ_ASSERT consistently in XPConnect; r=bholley 2013-08-14 09:00:34 +02:00
Ms2ger 1a5ae526d9 Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Jon Coppeard e133b9b2a9 Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug 2013-08-12 12:09:14 +01:00
Nicholas Nethercote 50ebc50e02 Bug 898263 (part 7) - Remove jsprvtd.h from EXPORTS. r=jorendorff.
--HG--
extra : rebase_source : eca8164f8652587796a8283932d8ba8ec76c0b5b
2013-07-25 22:52:59 -07:00
Terrence Cole 09de524f1a Bug 862115 - Use Rooted<JSPropertyDescriptor> in favor of JSPropertyDescriptor::AutoRooter r=terrence r=smaug r=bholley 2013-04-30 10:29:40 -07:00
Nicholas Nethercote d8f824e34e Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote 9624be5713 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 7e34a56fc6 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 a9d33996dd 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 dc4bd05cb5 Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Bobby Holley d129f0e5cd 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 f33ade0d68 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 6f242a6502 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 9ecda8d7ad 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 12bdf91609 Bug 888579 - Remove some code that handled WN Nodes; r=bholley 2013-07-01 09:14:36 +02:00
Justin Lebar 3da6ed220e 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 3e059c7221 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 616079d107 Bug 884951 - Use XPCWrappedNative::Get more; r=bholley 2013-06-23 09:15:55 +02:00
Ms2ger b7bef21f7f Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug 2013-06-23 09:15:42 +02:00
Jon Coppeard 37b7b92c4c Bug 885310 - 2 Rename JSHandleFoo in js directory r=bholley 2013-06-21 14:12:46 +01:00
Brian O'Keefe 11bcc1cd9e 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 ecf0e80935 Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Jon Coppeard d61000e77b Bug 884371 - Remove JSMutableHandleXXX from the js directory r=bholley 2013-06-19 11:32:27 +01:00
Peter Van der Beken 08d68069d5 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 e246f74b5d 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 a6f9979ef0 Bug 851465 - Remove slim wrappers - stop morphing slim wrappers. r=bholley. 2013-04-19 21:57:15 +02:00
Ms2ger e0918cb8dc Bug 881358 - Kill build warnings in XPConnect; r=bholley 2013-06-12 09:00:09 +02:00
Bobby Holley e5c61adafd 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 9b232e7840 Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap 2013-06-04 10:30:11 -07:00
Ryan VanderMeulen e6e2873354 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 2879c7a400 Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap 2013-06-03 11:27:41 -07:00
Trevor Saunders 744e454eb1 bug 873622 - remove some useless xpconnect getters r=bholley 2013-05-17 13:28:08 -04:00
Trevor Saunders efd48bef1e 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 6452f0c3f0 Bug 876604 - Outparamdel UnwrapDOMObjectToISupports; r=bz 2013-06-01 08:56:02 +02:00
Bobby Holley 72af799499 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 3402cab97c 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 5169c0a913 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 b433ae35b8 Bug 874318 - Don't allow CALL on XOWs. r=mrbkap 2013-05-22 22:27:16 -06:00
Bobby Holley 89be72dd4e Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap 2013-05-22 22:27:15 -06:00
Bobby Holley 2fbd8f4d5c 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 a76f725f9c 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 0906eb3ba9 Bug 874083 - Ignore domain in PrepareForWrapping prototype remapping. r=gabor, billm 2013-05-21 07:53:35 -06:00
Bobby Holley 047d3c3c1e 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 a2aebddd70 Bug 871595 - don't include WrapperFactory.h in AccessCheck.h; r=bholley 2013-05-13 12:04:23 -04:00
David Zbarsky 9c18b7ec0d Remove some unused code due to bug 871189, r=bz over irc 2013-05-16 12:29:03 -07:00
David Zbarsky 680b9b7951 Bug 871189 - Remove Document classinfo r=bz 2013-05-16 11:06:21 -07:00
Ted Mielczarek 3cfd62c3d2 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 7c5384c4e9 Bug 866823 - Handle standard prototype remapping in PrepareForWrapping. r=gabor,mrbkap 2013-05-15 21:13:12 -07:00
Bobby Holley a7596f01a7 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 cc5157a913 Bug 857356 - Remove XBL field auto-waiving. r=bz 2013-05-09 09:16:01 -07:00
Jon Coppeard 068a876f84 Bug 869526 - GC: Fix more rooting hazards in xpconnect r=bholley 2013-05-09 10:39:21 +01:00
Bobby Holley 75723ecffd 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 b47f593e23 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 9b428f8e67 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 1a57cd403b Merge m-c to m-i 2013-05-05 12:17:07 -07:00
Ms2ger bb6fd0a4ee Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz 2013-05-05 09:03:19 +02:00
Ms2ger 4a6390f03d Bug 868411 - Handlify js::GetObjectProto; r=bz 2013-05-05 09:03:14 +02:00
Boris Zbarsky 7640b170ac Bug 865969 part 6. Fix rooting hazards in BindingUtils.cpp. r=smaug 2013-05-03 19:29:08 -04:00
Tom Schuster 79e64357e4 Bug 865410 - Use CallArgs for XPConnect Call and Construct hooks. r=bholley. 2013-05-04 19:25:15 +02:00
Jon Coppeard c1714595b9 Bug 866762 - GC: A few more XPConnect rooting hazards r=bholley 2013-04-30 15:27:48 +01:00
Jon Coppeard 7304b3bc6e Bug 865308: GC: More rooting work in XPConnect r=bholley 2013-04-26 18:50:18 +01:00
Boris Zbarsky 1ffcf1ad91 Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
There are several changes here:

1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
   effectively allow doing a const_cast without knowing the actual type being
   templated over.  I needed this because I do not in fact know that type in
   the relevant code.  I'm open to suggestions for a better name for this
   method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
   and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
   I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
   in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
   constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Andrew McCreight 85d756a3c6 Bug 865397 - Nicen up "id got defined" assertion. r=bholley 2013-04-25 08:42:44 -07:00
Jon Coppeard c1c42130cf Bug 861887 Review comments for prev patch r=bholley
--HG--
extra : rebase_source : 7f91680f5f7249c9fb09708eb790bdc19c779c67
2013-04-24 14:22:21 +01:00
Jon Coppeard a797c9f224 Bug 861887 - GC: Rooting in XrayWrapper.cpp - part 2 r=bholley 2013-04-24 10:45:41 +01:00
Bobby Holley 02a2496bc2 Bug 860494 - Move the named property check further down in XrayWrapper. r=bz 2013-04-23 12:50:17 -04:00
Bobby Holley 416b2c4c8c Bug 860494 - Check for native properties before checking named children on XOWs. r=bz 2013-04-23 12:50:17 -04:00
Bobby Holley 820adfebdf Bug 860494 - Clarify the semantics of XrayTraits::resolveOwnProperty. r=bz
Right now, it sometimes fills out |desc|, and sometimes just defines the property
on the holder. This can get confusing, so let's refine the semantics here and
describe them in a big comment.
2013-04-23 12:50:17 -04:00
Bobby Holley d4a09bba16 Bug 860494 - Make resolveNativeProperty a virtual instance method in XrayTraits like resolveOwnProperty. r=bz
The current setup is just an artifact of how it used to be before I refactored
Xrays. Have it as a virtual trap is more flexible since it allows us to invoke
the right trap by just calling GetXrayTraits(wrapper) from non-templatized code.
2013-04-23 12:50:16 -04:00
Jon Coppeard 721057a505 Bug 864046 - GC: Almost the last rooting fixes in XPConnect - part 1 r=bholley 2013-04-20 10:41:47 +01:00
Jon Coppeard 7b2f5e54d8 Bug 863767 - GC: Rooting for XPCCallContext r=bholley 2013-04-20 09:52:56 +01:00
Jon Coppeard 6b41db971f Bug 863289 - GC: Continue the rooting of XPConnect r=bholley 2013-04-17 16:38:44 +01:00
Ryan VanderMeulen 040af911d4 Backed out changesets b9f7fd0996f0 and c0ab16b6003e (bug 860494) for mochitest failures on a CLOSED TREE. 2013-04-17 12:00:20 -04:00
Bobby Holley b460b44c87 Bug 860494 - Move the named property check further down in XrayWrapper. r=bz 2013-04-17 10:52:52 -04:00
Mike Shal df7deac25b Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Jon Coppeard 7f7df293ae Bug 861281 - GC: Root the wrap object API r=terrence r=bholley
--HG--
extra : rebase_source : 1d3ed88299ad8e9ad6812fb41aa48f03cc7aabae
2013-04-15 18:32:55 +01:00
Jeff Walden 763718651b Bug 858677 - Fix up code not built by SpiderMonkey to use the newly-changed deletion signatures. r=bholley, r=billm 2013-04-05 21:22:55 -07:00
Jon Coppeard 32bc2e5c59 Bug 861269 - GC: Continuing the rooting of XPConnect - Convert id_ to idArg style arguments r=bholley
--HG--
extra : rebase_source : a0a88749928f3f622b5626adfc8aa23382d06611
2013-04-15 15:29:37 +01:00
Ryan VanderMeulen 454cb5b6ad No bug - Fix typo. 2013-04-12 23:04:51 -04:00
Jon Coppeard 8d0b0385b6 Bug 860777 - Part 2 - Root WrapperFactory.cpp r=bholley
--HG--
extra : rebase_source : 83a21d88d01e52ea34326388dab462efdc4252ab
2013-04-12 10:50:43 +01:00
Jon Coppeard 650580da78 Bug 860311 - GC: More rooting in XPConnect r=bholley
--HG--
extra : rebase_source : 3afba11173f0df957fe34e66b9dd443b5ed01b9a
2013-04-09 16:42:21 +01:00
Jacek Szpot a38774d086 Bug 854503 - Rename JS unwrapping functions. r=bholley 2013-04-11 11:50:18 -07:00
Bobby Holley 7235a8baf4 Bug 856840 - Kill FindWrapper. r=mrbkap 2013-04-08 12:51:24 -07:00