Commit Graph

22978 Commits

Author SHA1 Message Date
Bill McCloskey
f33b7097a6 Backout bug 778993 for kraken regression (r=regression) 2012-11-02 18:21:36 -07:00
Bobby Holley
6877351937 Bug 805807 - Rearchitect filtering policies so that check() doesn't throw on denial. r=mrbkap
This is another one of those annoying situaitons in XPConnect right now where we
can't ask a question without potentially throwing if the answer is no. There's
also a bunch of unused cruft in here (like the Perm*Access stuff), so this stuff
was ripe for a spring cleaning. Unfortunately, I wasn't able to divide this patch
up nicely. Sorry for the big diff. :-(

In a nutshell, this patch changes things so that Policy::check() just becomes
a predicate that says whether the access is allowed or not. There's the remote
possibility that one of the underlying JSAPI calls in a ::check() implementation
might throw, so callers to ::check() should check JS_IsExceptionPending
afterwards (this doesn't catch OOM, but we can just continue along until the
next OOM-triggering operation and throw there).

Aside from exceptional cases, callers should call Policy::deny if they want to
report the failure. Policy::deny returns success value that should be returned
to the wrapper's consumer.
2012-11-02 21:47:49 -03:00
Bobby Holley
d2fe9d94ec Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 21:47:49 -03:00
Jason Orendorff
97c6fcedaa Change some GC tests to only check the output of findReferences in builds that actually have it. Fixing orange introduced by dc4f417ef79a (bug 805003). No bug, no_r=me, pushing to a CLOSED TREE.
--HG--
extra : rebase_source : a460dbedcfd32ed8f24a1fc9db10922fe182398f
2012-11-02 18:34:50 -05:00
Terrence Cole
38c47d4f6f Backed out changeset f0d7c7806a90 2012-11-02 16:00:27 -07:00
Terrence Cole
bc56d57eb1 Bug 808181: Do not allow implicit conversion of Return<T>; r=jorendorff
This will allow the compiler to catch more usage errors.

--HG--
extra : rebase_source : b424e2a8dfb88a340fc298cd9a11cd5779664c9d
2012-11-02 15:48:08 -07:00
Bill McCloskey
e0d30b6583 Bug 778993 - Separate runtime's gcMallocBytes from compartment's gcMallocBytes (r=gwagner,till) 2012-11-02 15:06:56 -07:00
Jason Orendorff
944eec5523 Bug 787703. r=terrence.
--HG--
extra : rebase_source : 59c8ab53405421c3eeb87fb409d8f2af94630b5a
2012-11-02 10:12:45 -05:00
Jason Orendorff
f0ddf7bbd5 Bug 807001 - Change Map and Set size() methods to accessor properties. r=Waldo.
--HG--
extra : rebase_source : bf2809aa1d943caa6349d7b44621cd1b0bb85742
2012-11-02 10:12:36 -05:00
Jason Orendorff
4171f7df7d Bug 805003 - Implement Map and Set clear methods. r=luke.
--HG--
extra : rebase_source : 02c641c57f556f83dbaf6fbf568f0d67e53c9982
2012-10-30 17:02:29 -05:00
Ryan VanderMeulen
2eb1595013 Merge m-c to inbound. 2012-11-02 16:11:46 -04:00
Ryan VanderMeulen
eafa7e9651 Merge fx-team to m-c. 2012-11-02 15:45:53 -04:00
Panos Astithas
89253ed688 Implement Debugger.removeAllDebuggees for efficient debugger shutdown (bug 740551); r=jimb,jorendorff 2012-11-02 18:30:23 +02:00
Bill McCloskey
049ffc6f35 Bug 807535 - Avoid toggling Ion write barrier too often (r=sstangl) 2012-11-01 08:08:21 -07:00
Axel Hecht
4eea2e6ceb bug 797745, use l10n-base and relativesrcdir instead of config.mk for l10n-merge, r=ted
--HG--
extra : rebase_source : 0d280e5cfabe7efdbe112309da6ef87d3848c441
2012-11-01 13:25:53 +01:00
Nicolas B. Pierron
f42a5be8e2 Bug 807035 - Skip guard insertion if there is no proto. r=dvander 2012-10-31 18:55:33 -07:00
Eric Faust
0cca6e3dd9 Check to make sure compilations haven't been invalidated (bug 799803, r=pierron). 2012-10-31 18:41:56 -07:00
David Anderson
e03d4c64ba Respect object's extensibility in addprop ICs (bug 805747, r=djvj). 2012-10-31 16:23:53 -07:00
Sean Stangl
8c81e02033 Bug 800617 - Fix some ARM-specific uber-nits. r=mjrosenb 2012-10-31 15:41:20 -07:00
Rafael Ávila de Espíndola
7a1ec44b6c Bug 807112 - change MOZ_EXPORT_API and MOZ_IMPORT_API to not take the type. r=Waldo. 2012-10-31 18:18:12 -04:00
Kyle Huey
45adfbf2c8 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Bill McCloskey
bb4b1b7c05 Bug 807161 - Remove extern C and #ifdef __cplusplus from JSAPI (r=luke) 2012-10-30 18:28:34 -07:00
Jan de Mooij
0895223bc5 Bug 802809 - Assert PRESET LDefinitions are not followed by instructions with fixed uses. r=dvander 2012-10-31 16:27:00 +01:00
Jan de Mooij
583d9fc0c3 Bug 801831 - Don't mark EnterJIT thunk if it's NULL. r=dvander 2012-10-31 14:04:18 +01:00
Tom Schuster
cbb3282bdd Bug 805222 - Change some usages of GetFunctionId to GetFunctionDisplayId for better JS stacktrace. r=bholley,robcee 2012-10-31 13:34:42 +01:00
Peter Van der Beken
ba4378de1d Test for bug 798264. 2012-10-12 12:48:25 +02:00
Bill McCloskey
847fa007e0 Bug 739681 - Allow DumpHeapComplete to print unreachable objects (r=mccr8) 2012-11-02 12:24:19 -07:00
Geoff Brown
541dee1fc6 Bug 799863 - Fix paths so check-one-remote can find mozdevice; r=wlach 2012-11-02 13:19:54 -06:00
Ed Morley
14d92519c8 Backout 23c9f61a243b & 6ca11f4b470c (bug 805807) for mochitest-1 orange in test_contextmenu.html 2012-11-02 14:12:51 +00:00
Robert O'Callahan
7a1378c702 Bug 807237. Add 'data' parameter to JS_StealArrayBufferContents. r=sfink
--HG--
extra : rebase_source : 5c9fe8f9b09ac63f3e130e7ff3418301f868cb8d
2012-11-02 23:42:59 +13:00
Robert O'Callahan
07fba06b5c Bug 807212. Call TypedArray methods instead of accessing slots directly. r=sfink
--HG--
extra : rebase_source : 05af21bea8caf6d80bb3f97762d559f21e0c4157
2012-11-02 23:42:58 +13:00
Robert O'Callahan
dd3101e673 Bug 807223 - Implement JS_ArrayBufferViewBuffer. r=sfink
This is really sfink's patch, but we wrote basically the same code and the
review looks better this way.

--HG--
extra : rebase_source : 90d52ff6c9b7050abde98fa582984c88fa909f0c
2012-10-30 21:26:32 -07:00
Bobby Holley
0123f9f2d2 Bug 805807 - Rearchitect filtering policies so that check() doesn't throw on denial. r=mrbkap
This is another one of those annoying situaitons in XPConnect right now where we
can't ask a question without potentially throwing if the answer is no. There's
also a bunch of unused cruft in here (like the Perm*Access stuff), so this stuff
was ripe for a spring cleaning. Unfortunately, I wasn't able to divide this patch
up nicely. Sorry for the big diff. :-(

In a nutshell, this patch changes things so that Policy::check() just becomes
a predicate that says whether the access is allowed or not. There's the remote
possibility that one of the underlying JSAPI calls in a ::check() implementation
might throw, so callers to ::check() should check JS_IsExceptionPending
afterwards (this doesn't catch OOM, but we can just continue along until the
next OOM-triggering operation and throw there).

Aside from exceptional cases, callers should call Policy::deny if they want to
report the failure. Policy::deny returns success value that should be returned
to the wrapper's consumer.
2012-11-02 13:27:59 +01:00
Bobby Holley
7c2fa965c3 Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 13:27:59 +01:00
Vicamo Yang
e6e6deb486 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Andrew McCreight
0c7c1a6f53 Bug 806433 - Make mReleaseRunnable a ref ptr. r=smaug 2012-10-30 20:01:31 -07:00
Tony Young
6fe370dd2f Bug 806643 - Negate doubles by flipping signed bit. r=sstangl 2012-10-30 14:59:06 -07:00
Rafael Ávila de Espíndola
20b2756a12 Bug 803707 - Don't assume pointers are 64 bits. r=Waldo.
Use reinterpret_cast.
2012-10-30 17:38:13 -04:00
Jonas Sicking
05fe127cc1 Bug 806587: Restore getCodebasePrincipal since extensions use it. r=mounir 2012-10-30 22:24:41 +01:00
William Lachance
b4ca3c3b45 Bug 799863 (1/3) - Make sure remote xpcshell tests can find mozdevice;r=gbrown
---
 config/makefiles/xpcshell.mk        |    1 +
 js/src/config/makefiles/xpcshell.mk |    1 +
 testing/testsuite-targets.mk        |    1 +
 3 files changed, 3 insertions(+)
2012-10-16 16:28:49 -04:00
Boris Zbarsky
90dce3227b Bug 801819. Remove nsIDOMCSS2Properties and the classinfo bits for CSS declarations. r=peterv,dbaron 2012-10-30 17:14:06 -04:00
Nicolas B. Pierron
15741e1d9c Bug 804064 - TableSwitchV, unbox integers values before branching. r=h4writer 2012-10-30 13:51:43 -07:00
Terrence Cole
e78fa7d5a1 Bug 805080 - Remove unused CESU8 support from SpiderMonkey; r=luke
We have many CESU8 paths in SpiderMonkey which are completely unused and
untested. We have many more "UTF-8" paths which are really mislabled CESU8 paths
and visa-versa. This patch attempts to disentable all of the various encoding
options in SpiderMonkey.
2012-10-29 13:55:17 -07:00
Ehsan Akhgari
89f1026cd3 Backed out 2 changesets (bug 805883, bug 787703) because of Windows PGO bustage on non-profiling builds
Backed out changeset 792a91b91020 (bug 805883)
Backed out changeset e1c7f5195704 (bug 787703)

--HG--
extra : rebase_source : 725029fbf5e34ae198bd9f4cde53593e8f373392
2012-10-30 16:17:29 -04:00
Bobby Holley
325938f110 Bug 804630 - Tests for exposing prototype properties on a derived object. r=mrbkap 2012-10-30 18:29:11 +01:00
Kyle Huey
7457de64ad Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
a7bb0ec116 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
3bc1160788 Bug 798491: Followup bustage fix. 2012-10-30 08:42:47 -07:00
Kyle Huey
dd0cfd935a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Phil Ringnalda
334260b774 Back out 4770ab40cdb6 (bug 804064) for bustage 2012-10-29 22:59:21 -07:00