Commit Graph

1725 Commits

Author SHA1 Message Date
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
6d473220dc Bug 883284 - Part b: Move LIBXUL_LIBRARY into moz.build (a-c); r=joey 2013-08-22 08:55:59 +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
Ms2ger
930728b3e2 Bug 905230 - Use LinkedList for nsXBLJSClass; r=mrbkap 2013-08-22 08:34:44 +02:00
Ms2ger
c6ed78509a Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir 2013-08-22 08:30:55 +02:00
Terrence Cole
0c6524464d Bug 906940 - Exactly root the IsAcceptableThis callback; r=jonco,smaug
--HG--
extra : rebase_source : 3b629611a07fc52a532a05c1b56e5aa40b6a67b6
2013-05-28 11:23:04 -07:00
Bobby Holley
b4dde9a0ba Bug 901106 - Remove nsIScriptRuntime. r=mrbkap
All this stuff is now for nsGlobalWindow's use only.
2013-08-19 16:24:28 -07:00
Nicholas Nethercote
dc49759de9 Bug 904962 (part 1) - Don't #include js/CharacterEncoding.h in jsapi.h. r=luke.
--HG--
extra : rebase_source : abe40ea3e55059dc6271d0f7c9f4d19ed9413186
2013-08-13 18:34:24 -07:00
Ms2ger
1a5ae526d9 Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Mounir Lamouri
24e5c663d2 Bug 651124 - Remove GetChildAt() usage in nsBindingManager. r=mrbkap 2013-08-12 15:00:44 +01:00
Blake Kaplan
912e909fe1 Bug 903912 - Remove the internals of the old parser since it's only used for about:blank. r=hsivonen
--HG--
extra : rebase_source : 620d34c12607f1e79ffed95e547d19e9c7a2359b
2013-08-12 11:28:41 -04:00
Jon Coppeard
e133b9b2a9 Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug 2013-08-12 12:09:14 +01:00
Trevor Saunders
99d8dc50c9 bug 659722 - remove _IMPL_NS_LAYOUT r=bz 2013-03-16 00:31:38 -04:00
Bobby Holley
15e9284f50 Bug 902718 - Fold EnsureScriptEnvironment into GetCompilationGlobal. r=bz 2013-08-09 09:25:15 -07:00
Bobby Holley
6f41e32ee4 Bug 902718 - Stop using nsIScriptContext for XBL compilation. r=bz,mccr8 2013-08-09 09:25:14 -07:00
Bobby Holley
a7b97b6bc2 Bug 902718 - Remove nsIScriptGlobalObjectOwner from XBL. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
d3581b6746 Bug 902718 - Stop using nsIScriptGlobalObjectOwner to grab the compilation global. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
b3571597aa Bug 902718 - Use the SafeJSContext for prototype member compilation. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
debc190cf4 Bug 902718 - Use the SafeJSContext for XBL serialization and deserialization. r=bz 2013-08-09 09:25:13 -07:00
Bobby Holley
cea5e59b82 Bug 902718 - Fix up nsXBLDocGlobalObject::GetGlobalJSObject() to force lazy global creation. r=bz
Currently we always pull the global off the nsIScriptContext, and trigger
a call to EnsureScriptEnvironment in the GetContext() call. So as we move away
from nsIScriptContext, let's make sure that GetGlobalJSObject continues to work
correctly.
2013-08-09 09:25:13 -07:00
Bobby Holley
0a32efbdf5 Bug 902718 - Rip out nsIScriptContext from the lion's share of XBL code. r=bz
This kind of has to be done all at once. The primary correctness concern here is
making sure that we continue to operate in the correct compartment. So the basic
strategy here is as follows.

For most anything that previously took a script context, we remove the parameter
entirely and assert that the stack-top cx is in the compartment of the
compilation scope. We then bubble this up through all the callers until we hit
a caller that finds the scx via some means other than its parameter list. At
these points, we push the scx, making it stack-top.

This puts us in a good position to switch wholesale to the SafeJSContext in
subsequent patches.
2013-08-09 09:25:13 -07:00
Bobby Holley
9f7ed59515 Bug 902718 - Stop taking an nsIScriptContext in XBL serialization routines. r=bz 2013-08-09 09:25:13 -07:00
Bobby Holley
b34c37010a Bug 902718 - Add a mechanism to assert that the stack-top cx is an XBL compilation scope. r=bz 2013-08-09 09:25:12 -07:00
Bobby Holley
96c5767c60 Bug 902718 - Defer XPCOM release from the XBL compilation scope finalizer. r=mccr8
Apparently the current setup is incidentally safe, but far from kosher.
2013-08-09 09:25:12 -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
8ce53f9ffd Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
--HG--
extra : rebase_source : 25f4de1bfae830b0af6407d260a70b787ab1dc9b
2013-08-06 23:59:54 -07:00
Blake Kaplan
c619ffae01 Bug 898926 - xbl:children elements are insertion points if they're inactive. r=sicking 2013-08-06 17:31:30 -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
Robert O'Callahan
67635e3f83 Bug 880854. When attaching XBL bindings to elements in a static document, sync-load the bindings document so that delayed changes to the shadow DOM don't mess up, for example, printing. r=mrbkap
--HG--
extra : rebase_source : 283ce66e7659b8ac9d8c5dc08d52b0f5a79452fb
2013-08-02 21:26:21 +12:00
Bobby Holley
6f87931f0a Bug 897322 - Allow callers to manually fire OnNewGlobalObject when bootstrapping is complete. r=luke 2013-08-01 18:38:47 -07:00
Bobby Holley
19a4343711 Bug 885388 - Make compilation scopes invisible to the debugger. r=mrbkap 2013-08-01 18:38:46 -07:00
Mike Hommey
2e729aa83d Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00
Tom Schuster
dc4bd05cb5 Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Bobby Holley
86193a45e2 Bug 898811 - Use the system error reporter for XBL compilation. r=mrbkap
The current XBL error reporter logs things to the console service, but not to
stderr. And in certain situations (especially if there's a parse error in
frontend XBL that leaves the browser in a half-baked state), it can be very
difficult to get to the error console.

So we should log to stderr too, which is exactly what the system error reporter
does.
2013-07-30 17:58:46 -07:00
Bobby Holley
43974de990 Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke 2013-07-29 16:45:26 -07:00
Jon Coppeard
20fb51afdd Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
ce93df92db Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
9709d43d76 Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Jon Coppeard
ebf3afbab4 Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz 2013-07-26 10:00:38 +01:00
William Chen
8a7d1fe132 Bug 895805 - Ensure nsBindingManager hashtable is initialized before use. r=mrbkap 2013-07-25 22:58:39 -07:00
Jon Coppeard
e6cd070d3d Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz 2013-07-25 13:57:00 +01:00
Ms2ger
45a72b59e3 Bug 896385 - Use nsInterfaceHashtable for nsXBLPrototypeBinding::mInterfaceTable; r=mrbkap 2013-07-24 09:39:56 +02:00
Jon Coppeard
ba4685ee98 Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz 2013-07-23 10:58:28 +01:00
Jon Coppeard
03004ec89e Bug 891966 - 1 - Don't allow construction of Handle<T> from Heap<T> r=bz 2013-07-23 10:58:27 +01:00
Blake Kaplan
2ac09437e4 Bug 895129 - Fix a typo in the original patch: we should be ignoring xul:observes. r=sicking 2013-07-17 16:20:37 -07:00
Bobby Holley
a745bb206b Bug 887334 - Enter a compartment between manual calls to JS_{Save,Restore}FrameChain. r=luke
The stuff in nsXBLProtoImplMethod is doing the same thing, so let's just have
it call into nsJSUtils.
2013-07-17 11:53:52 -07:00
William Chen
c7d379d25e Bug 796061 - Part 2: Remove mInsertionParentTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:06 -07:00
William Chen
a71d9ff782 Bug 796061 - Part 1: Remove mBindingTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:03 -07:00