Commit Graph

34757 Commits

Author SHA1 Message Date
Bobby Holley
de4ecc2a87 Bug 965898 - Squelch exceptions during the shadowing detection in isCrossOriginAccessPermitted. r=gabor 2014-07-29 21:35:32 -07:00
Bobby Holley
393c112402 Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor 2014-07-29 21:35:32 -07:00
Bobby Holley
ad9059bb11 Bug 965898 - Generalize FilterSetter to work on all the relevant fields of JSPropertyDescriptor. r=gabor 2014-07-29 21:35:31 -07:00
Bobby Holley
edfc634180 Bug 965898 - Don't reuse the JSPropertyDescriptor in BaseProxyHandler::keys. r=gabor
This causes garbage from a previous lookup to propagate into subsequent lookups,
and creates confusing situations (like having both a value and a getter).
2014-07-29 21:35:31 -07:00
Bobby Holley
212683cae4 Bug 965898 - Don't use a FilteringWrapper to get an unfiltered view in ChromeObjectWrapper. r=gabor
This is necessary because subsequent patches cause us to assert when invoking
getPropertyDescriptor on a FilteringWrapper for which |Policy| denies both GET
and SET.

This stuff is really a mess. I'm looking forward to it going away.
2014-07-29 21:35:31 -07:00
Bobby Holley
83e31f73e3 Bug 965898 - Throw for [[Delete]] and [[DefineOwnProperty]]. r=gabor 2014-07-29 21:35:31 -07:00
Bobby Holley
f2b2ae9683 Bug 965898 - Implement proper behavior for [[Enumerate]] And [[OwnPropertyKeys]]. r=gabor 2014-07-29 21:35:31 -07:00
Bobby Holley
ea11a4e359 Bug 965898 - Cross-origin objects should have null prototypes. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
1ddc37dfd7 Bug 965898 - All properties from cross-origin objects are "configurable", non-enumerable, and non-writable. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
7724a65eb8 Bug 965898 - All properties on cross-origin DOM objects should be |own|. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
605a17bbb6 Bug 965898 - Implement an Xray subclass that we can use to implement HTML5 cross-origin semantics. r=gabor 2014-07-29 21:35:30 -07:00
Bobby Holley
49b066f2d2 Bug 965898 - Drop support for XPCWN XOWs. r=gabor
XOWs only allow access to Window and Location, both of which are on WebIDL now.
2014-07-29 21:35:29 -07:00
Bobby Holley
41287f115d Bug 940305 - Move extraWarnings to RuntimeOptions with a per-compartment override. r=jandem,r=khuey 2014-07-29 21:00:37 -07:00
Boris Zbarsky
f36664672f Bug 1031945. Don't expose showModalDialog on Window if it's preffed off. r=smaug 2014-07-26 01:41:10 -04:00
Andrew McCreight
532e925036 Bug 1037510, part 1 - Add nursery size as a parameter of CycleCollectedJSRuntime. r=khuey 2014-07-29 15:38:14 -07:00
Terrence Cole
748ec580f8 Bug 1033442 - Split out GC scheduling tunables to make Zone GC heap triggers clearer; r=sfink 2014-07-22 16:24:28 -07:00
Terrence Cole
3cc44bc3b7 Bug 1045181 - Miscellaneous small cleanups in js::gc; r=jonco 2014-07-29 10:47:43 -07:00
Brian Hackett
4f3fc78ee7 Bug 1042833 - Remove JS_ION #ifdef, r=jandem. 2014-07-29 12:51:40 -08:00
Terrence Cole
44d99ddf16 Backed out changeset eefad3e4e594 for valgrind failures on a CLOSED TREE.
--HG--
extra : rebase_source : b5b018f5a5f23fe12600e64508ef075794d707fe
2014-07-29 10:47:32 -07:00
Brian Hackett
d8a230ab6c Bug 1028580 - Fold and/or and condition tests before critical edge splitting, r=sunfish. 2014-07-29 09:18:14 -08:00
Terrence Cole
2ffe2b30aa Bug 1033442 - Split out GC scheduling tunables to make Zone GC heap triggers clearer; r=sfink
--HG--
extra : rebase_source : 3631e7c23d5e48f294d7860d2edd3dda776036cc
2014-07-22 16:24:28 -07:00
Bobby Holley
0fdf3aaf28 Bug 1044205 - Rename XPCWrappedNativeScope::TraceSelf to TraceInside. r=billm 2014-07-29 08:48:33 -07:00
Bobby Holley
5bfdc1a8eb Bug 1044205 - Invoke XPCWrappedNativeScope::TraceSelf from TraceXPCGlobal. r=billm 2014-07-29 08:48:32 -07:00
Bobby Holley
85a6735f8c Bug 1044205 - Detach the XPCWrappedNativeScope from the CompartmentPrivate during forcible shutdown. r=billm 2014-07-29 08:48:32 -07:00
Luke Wagner
43734ba31b Bug 1040390 - Integrate JS::ProfilingFrameIterator with the profiler (r=bgirard)
--HG--
extra : rebase_source : 7f9a022fb16a353d22242f60cfae4e5659798752
2014-07-29 09:56:22 -05:00
Luke Wagner
aa6f30446c Bug 1040390 - Replace ad hoc methods with JS::ProfilingFrameIterator::label() (r=dougc)
--HG--
extra : rebase_source : 396c7925edac39e39d16dea7a53da3ba34f68ddf
2014-07-29 09:56:21 -05:00
Luke Wagner
a2f63f6a3e Bug 1040390 - Add JS::ProfilingFrameIterator::stackAddress (r=dougc)
--HG--
extra : rebase_source : a5f1823e8e9fb96aeb2813ce5105dc9096a054d7
2014-07-29 09:56:21 -05:00
Luke Wagner
af5aaec4de Bug 1040390 - Make js::RunScript push an isCpp frame (r=djvj)
--HG--
extra : rebase_source : 66f8e50977cb172d0b888aca382227fc252c8410
2014-07-29 09:56:21 -05:00
Luke Wagner
64f34df966 Bug 1027885 - Don't clobber arg registers in the profiling builtin thunk on ARM (r=dougc)
--HG--
extra : rebase_source : e735dfac5a1e6652049d13145e165dcc98b97b5c
2014-07-29 09:56:06 -05:00
Nicolas B. Pierron
2a97bc46d6 Bug 1034349 - Skip Float32 specialization for int32 operations. r=bbouvier 2014-07-29 04:49:19 -07:00
Mike Hommey
1e79fe55c2 Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
Bobby Holley
fd6bf2c90c Bug 1042996 - Remove the special JSContext for Sandboxes. r=bobowen,r=gabor 2014-07-28 14:55:51 -07:00
Bobby Holley
0ac3502f9a Bug 1042996 - Always set an explicit version in evalInSandbox. r=gabor
If setVersion() is not invoked on compileOptions, it ends up with
JSVERSION_UNKNOWN, which invokes findVersion() on the JSContext, which does a
bunch of crazy hunting of previous scripted stack frames that we most certainly
don't want for sandboxes, which are supposed to be controlled environments.
Using a separate JSContext in evalInSandbox isolates us from these effects, so
once we stop doing that we need to be more explicit here.
2014-07-28 14:55:51 -07:00
Brian Hackett
2e2abbaafe Bug 1042833 - Add 'none' architecture used in --disable-ion builds, r=jandem. 2014-07-28 11:37:48 -08:00
Bobby Holley
c77cb31ac4 Bug 1042840 - Remove evalInWindow. r=gabor 2014-07-28 11:19:25 -07:00
Bobby Holley
50b9c0b895 Bug 1042824 - Remove implicit cloning behavior in function forwarders. r=gabor 2014-07-28 11:19:25 -07:00
Bobby Holley
11aa4b0a97 Bug 1042824 - Borrow the JSID_VOID handling from the cloning forwarding. r=gabor 2014-07-28 11:19:25 -07:00
Bobby Holley
f977f7061f Bug 1042824 - Manually do the cross-compartment call in NonCloningFunctionForwarder. r=gabor 2014-07-28 11:19:24 -07:00
Bobby Holley
8bcc146804 Bug 1042824 - Do a security check on the callee in ExportFunction. r=gabor
It would be nice to enforce this in New*FunctionForwarder, but we're already
in the target compartment at that point. :-(

We don't need to worry about this at the other callsites of
New*FunctionForwarder because:
* The stuff in XPCComponents is always invoked by System Principaled code.
* The stuff in StackScopedCloneRead only gets invoked when we're already done a
  successful CheckedUnwrap inside the JS engine.
2014-07-28 11:19:24 -07:00
Benjamin Bouvier
d39eb74e72 Bug 1042244: Make FuncWith return the same type as their inputs; r=nmatsakis 2014-07-28 19:27:52 +02:00
Benjamin Bouvier
84fdb9a299 Bug 1042244: Instantiate operators template arguments in users; r=nmatsakis 2014-07-28 19:27:48 +02:00
Benjamin Bouvier
7b9a7f0ecc Bug 1042244: Simplify and generalize FuncShuffle; r=nmatsakis 2014-07-28 19:27:46 +02:00
Benjamin Bouvier
50c643e060 Bug 1042244: Remove return template parameter in SIMD operators; r=nmatsakis 2014-07-28 19:27:42 +02:00
Benjamin Bouvier
68e0e44c0b Bug 1042244: Make comparison operators always return int32_t; r=nmatsakis 2014-07-28 19:27:34 +02:00
Ehsan Akhgari
022f2f1142 Bug 1045092 - Fix some bad implicit constructors in xpconnect; r=bholley 2014-07-28 13:20:14 -04:00
Andrea Marchesini
8e6f92ea03 Bug 1030917 - xpc::GlobalProperties object ignores the 'aPromise' param., r=bholley 2014-07-28 15:42:57 +01:00
Nicolas B. Pierron
13078b60ea Bug 1040194 - Keep recoverOnBailout instruction for resume point operands. r=h4writer 2014-07-28 05:46:26 -07:00
Nicolas B. Pierron
dae837c304 no bug - Fix order of namespace comments. r=me 2014-07-28 05:46:26 -07:00
Benjamin Bouvier
a838adcacf Bug 1043898: Remove num() methods and use input() instead, remove MComputeThis' overriding input(); r=nbp 2014-07-28 13:18:46 +02:00
Benjamin Bouvier
e92f13bf2e Bug 1043898: Remove MNot's operand() and use input() instead; r=nbp 2014-07-28 13:18:42 +02:00