Bill McCloskey
3868c9ddea
Backout 2ee20348ae59 (bug 747066) for Win64 crashes
2012-11-20 10:45:43 -08:00
Benjamin Peterson
f96fb190ef
Bug 795104 - Sources with a custom charset can't be lazily loaded. r=bz
2012-11-20 11:30:03 -06:00
Boris Zbarsky
46a77679c5
Bug 813423. A bit more inlining for stuff that should really be inline. r=peterv
2012-11-20 11:36:06 -05:00
Boris Zbarsky
47c856187a
Bug 813419. Add a non-null-checking version of xpc_UnmarkGrayObject. r=mccr8
2012-11-20 11:36:06 -05:00
Ehsan Akhgari
69c983597a
Backed out 6 changesets (bug 814821, bug 815158, bug 814195) for test failures
...
Backed out changeset 0c2011091748 (bug 815158)
Backed out changeset 9d70b4460508 (bug 814195)
Backed out changeset bf8746658a72 (bug 814821)
Backed out changeset e73366b088d7 (bug 814821)
Backed out changeset 49fc6d535c41 (bug 814821)
Backed out changeset 987aea26a43a (bug 814821)
2012-11-27 16:30:39 -05:00
Peter Van der Beken
d376ba5130
Fix for bug 814195 (Replace Element quickstubs with new binding methods). r=bz.
...
--HG--
extra : rebase_source : 349ceea8412f4133e1b9de4e2859d7663da27fa5
2012-11-22 12:09:43 +01:00
Peter Van der Beken
a1c40fa0ac
Fix for bug 814821 (Dromaeo dom-traverse regression from bug 812333) - part 4: inline xpc_qsUnwrapObj. r=bz.
...
--HG--
extra : rebase_source : 8506cc86db7ebfe8832ed5696aeb45c79364af1f
2012-11-27 10:20:05 +01:00
Peter Van der Beken
77aa58865d
Fix for bug 814821 (Dromaeo dom-traverse regression from bug 812333) - part 3: reorder castNativeFromWrapper. r=bz.
...
--HG--
extra : rebase_source : ad4c96a240140f56b1b451df3b57a4d5c47ee3ee
2012-11-27 10:20:05 +01:00
Nicolas B. Pierron
a0f4f2a053
Bug 810062 - Toggle JSOPTIONs before the compartment creation. r=bhackett
2012-11-19 18:07:20 -08:00
Bill McCloskey
f2265f897b
Bug 747066 - Inline xpc_UnmarkGray (r=terrence)
2012-11-19 10:59:01 -08:00
Nicholas Nethercote
fa52b57f84
Bug 789398 - Rework the type inference memory reporters. r=bhackett.
...
--HG--
extra : rebase_source : 945c35907d0d4a62b904664da7b5f2b35a182034
2012-11-18 14:40:01 -08:00
Jim Mathies
1892c79026
Bug 810810 - Add support for 'APluginsDL' to the xpcshell directory service provider and return the GRE folder when queried. r=bsmedberg, glandium
2012-11-17 14:35:16 -06:00
Jonathan Griffin
67543c33b9
Backed out a94288026ea5 (Bug 811784) for turning all b2g emulator tests red
2012-11-16 18:30:22 -08:00
Kyle Huey
040cbf0f95
Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap
...
--HG--
extra : rebase_source : 6da8a33c512b2e5758094f4a2108e5c342c7c28c
2012-11-16 08:54:58 -08:00
Ed Morley
353ea03fab
Backout 4bc502c08da4 (bug 811784) for xpcshell failures
2012-11-16 18:16:33 +00:00
Kyle Huey
9bcf4c9be1
Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap
2012-11-16 08:54:58 -08:00
Kannan Vijayan
ef9c9830cc
Bug 803730 - Mochitest for bug.
2012-11-15 22:57:18 -05:00
Bobby Holley
29ae85a79e
Bug 809674 - Fail at call time when invoking an XPCWrappedJS method with [implicit_jscontext] or [optional_argc]. r=mrbkap
...
I think this is the path of least resistance here.
2012-11-15 10:16:36 -08:00
Peter Van der Beken
fa62dbbc16
Fix for bug 811895 (Fix WN Xray special methods so they can take new DOM binding objects). r=bz.
...
--HG--
extra : rebase_source : 4b4ade0c3cddee9241e94f2e20216cee73a8e284
2012-09-26 16:17:51 +02:00
Benoit Jacob
58175ef06b
Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 2: handmade fixups - r=mccr8
2012-11-15 02:32:40 -05:00
Benoit Jacob
f4c1a03e74
Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug
2012-11-15 02:32:39 -05:00
Boris Zbarsky
fa61227956
Bug 811449 part 8. Get rid of nsGenericElement. r=peterv
2012-11-14 14:10:08 -08:00
Peter Van der Beken
218b158687
Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
...
--HG--
extra : rebase_source : 842b9397d2b050f880c44d3366bcc838e6615fd5
2012-11-11 00:30:15 +01:00
Ben Turner
3a4dc012ab
Bug 809661 - Need a speedy way to construct a thread list for SMS messages. r=sicking
2012-11-14 11:49:56 -08:00
Bobby Holley
56d2c9b612
Bug 569506 - Tearoff tests. r=mrbkap
2012-11-14 10:15:13 -08:00
Bobby Holley
a75f5ca4d9
Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
...
If callers want to throw, it's now their responsibility.
2012-11-14 09:56:26 -08:00
Bobby Holley
5fe101ddca
Bug 800915 - Reimplement PUNCTURE consumers in terms of isSafeToUnwrap() and remove PUNCTURE API. r=mrbkap
2012-11-14 09:56:25 -08:00
Bobby Holley
583cb7273a
Bug 800915 - Add infrastructure to flag security wrappers as unsafe to unwrap. r=mrbkap
2012-11-14 09:56:25 -08:00
Bobby Holley
1bc19ac093
Bug 800915 - Clarify and refine the semantics of SecurityWrapper so that it is used if and only if unwrapping is unsafe. r=mrbkap
...
The naming scheme for Xray typedefs is the concatenation of the tuple:
({SC,}, {Security,Permissive}, Xray, {XPCWN,DOM}). This is admittedly a bit
much, but I think it's still better than explicitly doing the "typdef Foo Xray"
everywhere. Moreover, once the new DOM bindings are done, the last component
in the tuple will go away.
2012-11-14 09:56:25 -08:00
Ed Morley
c7eb022388
Backout 54c4f2ff78e3 (bug 807075) for Windows compilation errors
2012-11-14 16:45:28 +00:00
Peter Van der Beken
ee9050291e
Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
...
--HG--
extra : rebase_source : 9afce481cd0a5c8a1014c8c9b0aad7d6665aaa82
2012-11-11 00:30:15 +01:00
Gregor Wagner
1c428080a1
Backout f2c60518351d Bug 809661
2012-11-13 14:44:18 -08:00
Ben Turner
827cb19e8c
Bug 809661 - Need a speedy way to construct a thread list for SMS messages. r=sicking
2012-11-13 13:01:26 -08:00
Kyle Huey
9efde1e3a0
Bug 810987: When sharing a global, don't import properties onto the global, import them onto the appropriate 'this' object. r=mrbkap
...
--HG--
extra : rebase_source : c3a92d4197831fa3061bf3f01b7cc610cc89e867
2012-11-13 11:13:27 -08:00
Kyle Huey
1eb5f304df
Backout Bug 810987.
2012-11-13 10:27:37 -08:00
Kyle Huey
b490fd3695
Backed out changeset 62886fd1aaa4
2012-11-13 10:25:24 -08:00
Kyle Huey
d4d9b2dcd8
Bug 810987: Followup bustage fix.
2012-11-13 10:24:08 -08:00
Kyle Huey
1854d5c345
Bug 810987: When sharing a global, don't import properties onto the global, import them onto the appropriate 'this' object. r=mrbkap
2012-11-13 08:57:44 -08:00
Ed Morley
1e33323cc9
Backout bcb591d32bd6 (bug 809674) on suspicion of breaking B2G marionette-webapi
2012-11-13 13:48:21 +00:00
Ryan VanderMeulen
6dd149a122
Backed out de9fff3a523, c567df2244f5, 8e3d976d5dc5, and c7499faaec23 (bug 800915) for bustage.
...
--HG--
extra : rebase_source : c823063bfa31d59d32b3402bd4b458b84b703cd5
2012-11-12 21:43:39 -05:00
Bobby Holley
a575c96c5e
Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
...
If callers want to throw, it's now their responsibility.
2012-11-12 17:35:32 -08:00
Bobby Holley
943664eddf
Bug 800915 - Reimplement PUNCTURE consumers in terms of isSafeToUnwrap() and remove PUNCTURE API. r=mrbkap
2012-11-12 17:35:32 -08:00
Bobby Holley
7627d68c2a
Bug 800915 - Add infrastructure to flag security wrappers as unsafe to unwrap. r=mrbkap
2012-11-12 17:35:32 -08:00
Bobby Holley
6c6f3210d3
Bug 800915 - Clarify and refine the semantics of SecurityWrapper so that it is used if and only if unwrapping is unsafe. r=mrbkap
...
The naming scheme for Xray typedefs is the concatenation of the tuple:
({SC,}, {Security,Permissive}, Xray, {XPCWN,DOM}). This is admittedly a bit
much, but I think it's still better than explicitly doing the "typdef Foo Xray"
everywhere. Moreover, once the new DOM bindings are done, the last component
in the tuple will go away.
2012-11-12 17:35:31 -08:00
Bobby Holley
4a55654f1d
Bug 809674 - Fail at call time when invoking an XPCWrappedJS method with [implicit_jscontext] or [optional_argc]. r=mrbkap
...
I think this is the path of least resistance here.
2012-11-12 16:17:24 -08:00
Bobby Holley
d28553ba1e
Bug 810743 - First check for pending exceptions, _then_ examine the invoke result. r=mrbkap
2012-11-12 16:17:24 -08:00
Bill McCloskey
1ca35e1751
Bug 810560 - Followup (r=luke)
2012-11-12 15:17:01 -08:00
Bill McCloskey
28df0f4893
Bug 810560 - Fix scheduledForDestruction assertion (r=luke)
...
--HG--
extra : rebase_source : 6c25ad6b505e818d66f1caaea907c55355f7559a
2012-11-12 14:57:53 -08:00
Peter Van der Beken
451ff8f738
Fix for bug 804950 (New DOM binding APIs for Element). r=bz.
...
--HG--
extra : rebase_source : a8691ead07dfa8ecca812396047627dc15474d83
2012-10-16 13:51:00 +02:00
Terrence Cole
d3648d3506
Bug 805080 - Move more API users to CompileOptions; r=luke
...
There is no reason to have special methods for specific sets of CompileOptions
when the JS::Compile interface is so easy to use. Other API methods can be
moved internal or removed entirely with this change.
--HG--
extra : rebase_source : f48fb221ebe02c0137e521ea605953532808825d
2012-11-06 17:36:47 -08:00
Peter Van der Beken
1e5f78238f
Fix for bug 807330 (Make xpc_qsUnwrapThis/xpc_qsUnwrapArg deal with new DOM bindings). r=jst.
...
--HG--
extra : rebase_source : 3553f82516bfaa0764185f94e2eef616d9cd696d
2012-09-26 16:17:46 +02:00
Bill McCloskey
a31392133c
Bug 803376 - Allow wrappers to be reused (r=bholley)
2012-09-11 17:14:24 -07:00
Boris Zbarsky
80ce9e7dce
Bug 807226 part 0.5. More undefs to stop Windows headers from messing with our GetClassName. r=peterv
2012-11-09 07:59:41 -08:00
Boris Zbarsky
ffdef1ff6b
Bug 779048 part 0.5. Don't require a JSContext argument for nsJSUtils::GetStaticScriptGlobal. r=bholley
2012-11-09 07:43:57 -08:00
Fernando Jiménez
ab6877282c
Bug 809218 - Expose atob and btoa functions in xpcshell; r=mrbkap
2012-11-08 13:45:41 -08:00
Bobby Holley
dae0b41b61
Bug 809547 - Tests. r=bz
2012-11-07 22:40:48 -08:00
Benoit Jacob
76c68d3d90
Bug 809715 - Use MFBT's IsBaseOf to simplify QS_IS_NODE - r=ehsan
2012-11-07 21:33:31 -05:00
Bobby Holley
65525139b8
Bug 805807 - Filter setters. r=mrbkap
2012-11-07 15:45:50 -08:00
Bobby Holley
6482c110be
Bug 802557 - Mochitests. r=bz
2012-11-07 15:43:09 -08:00
Bobby Holley
2147e93e72
Bug 806751 - Pile more garbage into GetWrappedNativeOfJSObject. r=mrbkap
...
--HG--
extra : rebase_source : 9d290c7058dd4a1984aff94ef84376913947189e
2012-11-07 14:12:14 -08:00
Nathan Froyd
57e1984f1b
Backout a9cfcf4b62d9 (bug 803730), a5e214d4f8b0 (bug 803730), for intermittent oranges in newly added tests
2012-11-07 14:58:29 -05:00
Kannan Vijayan
34d532839a
Bug 803730 - Add mochitest for bug.
2012-11-07 13:03:31 -05:00
Bobby Holley
b9f313371c
Bug 809318 - Fix flakey tests. r=philor
2012-11-07 09:39:32 -08:00
Bobby Holley
b03878d5cf
Bug 808457 - Add Telemetry for Components.lookupMethod and Components.interfaces. r=mrbkap
2012-11-07 08:28:35 -08:00
Bobby Holley
b7a80f0b32
Bug 808611 - Move valueOf to nsIDOMLocation. r=mrbkap
2012-11-07 08:27:23 -08:00
Bobby Holley
2d5f3aaee1
Bug 808730 - Implement the 'IfFound' parent of ReparentWrapperIfFound. r=mrbkap
...
This is a pretty dumb bug, but we never actually hit this codepath at the moment.
We currently end up in wrapper by either explicitly calling
ReparentWrappedNativeIfFound (in nsNodeUtils and in nsHTMLDocument), or by moving
existing wrappers during orphan fixup. The former always passes a wrapper-cached
object, and the latter guarantees that we always have a wrapper. So we'd never
hit the "no wrapper cache, no wrapper" case in the current code.
2012-11-06 17:56:49 -08:00
Andrea Marchesini
c5757607e2
Bug 781425 - Part 1: Enconding and dictionary. r=mounir, sr=sicking
2012-11-06 18:23:13 -05:00
Bobby Holley
3606ad5e6b
Bug 807179 - Add a constructor for JSPropertyDescriptor. r=luke
2012-11-05 17:49:44 -08:00
Bobby Holley
4d2a0ba749
Bug 800864 - Add some more tests. r=bz
2012-11-05 17:15:53 -08:00
Bobby Holley
8c976f0b41
Bug 793969 - Tests. r=mrbkap
2012-11-05 17:10:34 -08:00
Boris Zbarsky
5865858536
Bug 807548. Enumerating an Xray should not see the 'constructor' property on DOM prototypes unless we're told to include non-enumerable properties. r=peterv
2012-11-05 11:58:03 -05:00
Ehsan Akhgari
a782ddd2a1
Merge mozilla-central into mozilla-inbound
2012-11-04 11:09:45 -05:00
Ms2ger
67f936b45b
Bug 801991 - Remove the ability to generate custom quickstubs; r=peterv
2012-11-04 09:00:06 +01: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
Bobby Holley
f923e7af7f
Bug 731471 - Crashtesty-mochitest. r=me
2012-11-04 07:41:01 -08:00
Peter Van der Beken
ba4378de1d
Test for bug 798264.
2012-10-12 12:48:25 +02: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
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
Nicholas Nethercote
7c4faece03
Bug 806283 - Split up and add native iterators to "object/misc" memory reports. r=jorendorff.
...
--HG--
extra : rebase_source : 867e178d0c921de9e144fb274e1c0d77c8845b81
2012-11-01 16:51:04 -07: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
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
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
Jonas Sicking
05fe127cc1
Bug 806587: Restore getCodebasePrincipal since extensions use it. r=mounir
2012-10-30 22:24:41 +01: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
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
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
Jacek Szpot
bea8356b2c
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Peter Van der Beken
99782186da
Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript). r=bz.
...
Switch from using the interface objects from the Xrays compartment to wrapping
interface objects and interface prototype objects in Xrays. Make dom binding
Xrays deal with both instance objects and interface and interface prototype
objects.
2012-10-09 20:50:27 +02:00
Bobby Holley
b9ab242827
Bug 803068 - Merge DirectWrapper and Wrapper. r=ejpbruel
...
--HG--
extra : rebase_source : a2b98a9585c6f7761747cfaf55684e6eeed91344
2012-10-29 16:52:53 +01:00
Bobby Holley
b709b3dc7f
Bug 803068 - Manually grab the BaseProxyHandler derived traps in SandboxProxyHandler. r=ejpbruel
...
Let's just bite the bullet and do this here. It will let us get rid of
IndirectProxyHandler, which has really overcomplicated our proxy hierarchy.
--HG--
extra : rebase_source : 7e81529936bc256d672e40537eb6abca6374e52c
2012-10-29 16:52:53 +01:00
Bobby Holley
b8b176e756
Bug 797206 - Remove GetPrincipalFromContext. r=bz
2012-10-29 15:55:36 +01:00
Peter Van der Beken
da84553f1f
Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript) - rename ProtoOrIfaceArray. r=bz.
...
--HG--
extra : rebase_source : c426270fc1ebee818629bd94dfc8d11af59bfc00
2012-10-09 20:50:27 +02:00
Peter Van der Beken
9194dae35e
Fix for bug 804992 (Enable objects with new DOM bindings to be parent of other DOM objects). r=bz.
...
--HG--
extra : rebase_source : f07cade82dad0216d94e68dd0c0f495977abeb31
2012-09-12 22:29:30 +02:00