Commit Graph

940 Commits

Author SHA1 Message Date
Masayuki Nakano
a8e21aa06f Bug 912956 part.1 Rename all event stuff in mozilla::widget to mozilla::* r=roc 2013-09-14 11:39:41 +09:00
Dan Gohman
8b7074b6dc Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Dan Gohman
81fa3b1f3f Bug 910823 - Factor out the code for casting from a JSClass* to an nsXBLJSClass* into a helper function. r=waldo 2013-09-11 05:49:04 -07:00
Kyle Huey
abebd382da Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Bobby Holley
686a940c6e Bug 912322 - Fix tests. r=bz
The crashtest changes are untested (aside from the fact that they don't crash).
2013-09-06 09:12:56 -07:00
Nicholas Nethercote
6ed33677cf 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
Robert O'Callahan
33cdb42706 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Phil Ringnalda
82a82c7965 Back out e46601eb7279:533dc9ea3301 (bug 912322) for Android reftest bustage 2013-09-04 21:49:16 -07:00
Bobby Holley
4f18e183bb Bug 912322 - Fix tests. r=bz
The crashtest changes are untested (aside from the fact that they don't crash).
2013-09-04 19:05:51 -07:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Andrew McCreight
4723c7c5e3 Bug 883920 - use templates for {Hold,Drop}JSObjects. r=peterv 2013-08-16 13:10:17 -07:00
Nicholas Nethercote
191ed08f6a Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke.
--HG--
extra : rebase_source : 008ef689989f93b46627b8be8608bdbc544ca3a2
2013-08-27 19:59:14 -07:00
Trevor Saunders
d4ba8df0bc bug 846185 - don't call into js when creating accessibles r=surkov, smaug 2013-07-19 00:13:35 -04:00
Eric Faust
b0a393a8c3 Bug 909340 - Follow up: Fix compartmental tp failures on a CLOSED TREE. (r=bz over IRC) 2013-08-28 20:18:13 -07:00
Masatoshi Kimura
125e65e2d5 Bug 909340 - Make sure the interface object for XULElement is created before the prototype object so that it is hidden from content. r=bz 2013-08-29 07:48:42 +09:00
Brian O'Keefe
4f68eb9b02 Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Nicholas Nethercote
3f5d413d90 Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Masayuki Nakano
2677b28871 Bug 909335 Don't pass key events to nsINativeKeyBindings if key event is already consumed by WalkHandlersInternal() r=smaug 2013-08-28 13:04:00 +09:00
Masayuki Nakano
d7ec8e6508 Bug 907612 part.2 Get rid of nsNativeKeyEvent r=roc+gps, sr=jst 2013-08-24 16:24:32 +09:00
Boris Zbarsky
f9dfbe132d Bug 908576 part 7. Move the various DOMProxyHandler classes into the binding implementation files. r=smaug 2013-08-23 22:42:42 -04:00
Boris Zbarsky
7da23c2946 Bug 908530 part 2. Fix all the places that are bootlegging things (esp nsIURI) via xpcpublic.h. r=khuey 2013-08-23 22:42:40 -04:00
Ryan VanderMeulen
7726245c4e Merge inbound to m-c. 2013-08-22 15:42:18 -04:00
Ms2ger
8bfa279bb1 Merge m-c to inbound 2013-08-22 10:38:48 +02:00
Ms2ger
87ae95251c Merge PGO-green changeset from inbound to m-c. 2013-08-22 10:31:44 +02:00
Ms2ger
4922ccbc0a Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger
2d7391b50d Bug 883284 - Part b: Move LIBXUL_LIBRARY into moz.build (a-c); r=joey 2013-08-22 08:55:59 +02:00
Ms2ger
4d968c40e1 Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Ms2ger
4122e2ac15 Bug 905230 - Use LinkedList for nsXBLJSClass; r=mrbkap 2013-08-22 08:34:44 +02:00
Ms2ger
dd5239111f Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir 2013-08-22 08:30:55 +02:00
Ehsan Akhgari
1e7ca5d13f Bug 904695 - #include fewer headers in nsContentUtils.h; r=jst 2013-08-21 15:28:26 -04:00
Martijn Wargers
ff171ea537 Bug 907648 - test_bug379959.html and test_bug369814.html should use SpecialPowers. r=jmaher 2013-08-21 18:11:26 +02:00
Gavin Sharp
aca0172974 Bug 907430: XBL constructors/destructors should have names, r=bz
--HG--
extra : transplant_source : G%E8%B6%A4%9D%E3%A2%F8C%81%1Dc%3E%FC%CD%13%5Ea%8A%E0
2013-08-21 16:45:52 -07:00
Nicholas Nethercote
42ccf38dcd 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
Terrence Cole
24ea5a25b4 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
684f16b450 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
c3d1f48325 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
df8525f77d Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Mounir Lamouri
4367dd37c1 Bug 651124 - Remove GetChildAt() usage in nsBindingManager. r=mrbkap 2013-08-12 15:00:44 +01:00
Blake Kaplan
5c3a529f78 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
11678aa48c Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug 2013-08-12 12:09:14 +01:00
Trevor Saunders
e59057dee7 bug 659722 - remove _IMPL_NS_LAYOUT r=bz 2013-03-16 00:31:38 -04:00
Bobby Holley
bad3903f40 Bug 902718 - Fold EnsureScriptEnvironment into GetCompilationGlobal. r=bz 2013-08-09 09:25:15 -07:00
Bobby Holley
c3b6213d2c Bug 902718 - Stop using nsIScriptContext for XBL compilation. r=bz,mccr8 2013-08-09 09:25:14 -07:00
Bobby Holley
d8e09dd669 Bug 902718 - Remove nsIScriptGlobalObjectOwner from XBL. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
2fd804060b Bug 902718 - Stop using nsIScriptGlobalObjectOwner to grab the compilation global. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
c63baf2891 Bug 902718 - Use the SafeJSContext for prototype member compilation. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
89498daf86 Bug 902718 - Use the SafeJSContext for XBL serialization and deserialization. r=bz 2013-08-09 09:25:13 -07:00
Bobby Holley
e1eb45e3e1 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
0c75150387 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
dec22ba18c Bug 902718 - Stop taking an nsIScriptContext in XBL serialization routines. r=bz 2013-08-09 09:25:13 -07:00
Bobby Holley
cde56ff019 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
3f88a39464 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
b756f6b258 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
25d70fdd97 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
f3dfffe24b Bug 898926 - xbl:children elements are insertion points if they're inactive. r=sicking 2013-08-06 17:31:30 -07:00
Nicholas Nethercote
ba723f1034 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
694e4a5be0 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
93c50cb189 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
82b71516c9 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
f7c06c0933 Bug 897322 - Allow callers to manually fire OnNewGlobalObject when bootstrapping is complete. r=luke 2013-08-01 18:38:47 -07:00
Bobby Holley
3b5f7c3277 Bug 885388 - Make compilation scopes invisible to the debugger. r=mrbkap 2013-08-01 18:38:46 -07:00
Mike Hommey
d01b5df996 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
0b021a6fa2 Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Bobby Holley
51bb849f7a 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
9dbd7cffb9 Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke 2013-07-29 16:45:26 -07:00
Jon Coppeard
8278efd42a 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
8c89deb65b Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f 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
1463e7df5b Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz 2013-07-26 10:00:38 +01:00
William Chen
0d79ba91bc Bug 895805 - Ensure nsBindingManager hashtable is initialized before use. r=mrbkap 2013-07-25 22:58:39 -07:00
Jon Coppeard
477e4df5c5 Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz 2013-07-25 13:57:00 +01:00
Ms2ger
88a17639b3 Bug 896385 - Use nsInterfaceHashtable for nsXBLPrototypeBinding::mInterfaceTable; r=mrbkap 2013-07-24 09:39:56 +02:00
Jon Coppeard
3155328d9e Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz 2013-07-23 10:58:28 +01:00
Jon Coppeard
da4b383f2b 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
ee626e75ca 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
c045da868b 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
9e883ad8f5 Bug 796061 - Part 2: Remove mInsertionParentTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:06 -07:00
William Chen
ca763cf5e3 Bug 796061 - Part 1: Remove mBindingTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:03 -07:00
Blake Kaplan
c55ad9cb94 Bug 888787 - Restore old XBL behavior when a child of the bound element didn't match any of the <children/> in the binding. r=sicking 2013-07-11 17:05:54 -04:00
Mike Hommey
ffd522d5c2 Bug 892904 - Remove useless includes of config.mk. r=gps 2013-07-15 18:48:40 +09:00
Trevor Saunders
82e5558b37 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
Boris Zbarsky
60d5133416 Bug 890193. Make the XML prettyprinter actually drop its binding when it unhooks, and remove the now-dead concept of "style binding" in the process. r=mrbkap 2013-07-11 11:58:28 -04:00
J. Ryan Stinnett
8dd81455a4 Bug 282097 - Part 9: Ensure editor commands are enabled. r=enndeakin 2013-07-10 09:13:53 -05:00
J. Ryan Stinnett
a9d3b48bc1 Bug 282097 - Part 5: Remove platform bindings for Cocoa. r=neil 2013-07-10 09:10:18 -05:00
Tim Taubert
65cc5f15e6 Bug 891806 - part 2 - replace 'yield;' with 'yield undefined;' in content/; r=smaug 2013-07-10 23:52:14 +02:00
Ryan VanderMeulen
aaee3cf638 Merge m-c to inbound. 2013-07-10 09:45:16 -04:00
Ms2ger
db26bfced0 Bug 213324 - Remove getter_AddRefs(T*); r=ehsan 2013-07-10 11:56:21 +02:00
Blake Kaplan
ea4da60962 Bug 891088 - Rename nsXBLChildrenElement -> mozilla::dom::XBLChildrenElement. r=peterv
--HG--
rename : content/xbl/src/nsXBLChildrenElement.cpp => content/xbl/src/XBLChildrenElement.cpp
rename : content/xbl/src/nsXBLChildrenElement.h => content/xbl/src/XBLChildrenElement.h
2013-07-01 15:09:37 -07:00
Kyle Huey
22ba9194a9 Bug 891088: Fix whitespace. r=me 2013-07-09 07:29:25 -07:00
Kyle Huey
49b422d01c Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff 2013-07-09 07:28:15 -07:00
Bobby Holley
4ed4784c75 Bug 880917 - Remove AutoVersionChecker. r=luke
Looks like cdleary added this back in bug 595691, as an equivalence to some
even-older-and-more-overly-cautious XBL code that was saving and restoring
the version across XBL calls. It doesn't seem like this should be an issue
anymore, and it's just a debugging aid to boot. Let's kill it.
2013-06-29 09:11:18 -06:00
Bobby Holley
f5f7bf3be5 Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-29 09:11:17 -06:00
Blake Kaplan
55ee93f1af Bug 653881 - Rework XBL insertion points and clean up related code to more closely follow the Web Components model. Instead of maintaining a hashtable of insertion points in bindings (and removing insertions points from the tree) leave the insertion points in the tree as explicit placeholders and teach all other relevant code how to walk the explicit children of elements via two iterators (ExplicitChildIterator and FlattenedChildIterator). Note that this patch does not maintain 100% compatibility with the previous code: there are bug fixes and behavior changes included. For example, by having explicit insertion points in the bindings, it is now easier to handle dynamic changes to the bound element correctly (as well as, eventually, handling dynamic changes to the binding correctly). Patch originally by sicking. r=bzbarsky
--HG--
extra : rebase_source : 6926ae8ea57b20f4067b16bd3d7bd85bda854756
2013-05-01 15:50:08 -07:00
Ms2ger
ff63d2149b Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug 2013-06-23 09:15:42 +02:00
Gabor Krizsanits
756a8f8c8c Bug 864335 - Remove GetScriptGlobalObject. r=mrbkap 2013-06-21 16:25:20 +02:00
Jon Coppeard
4b40ce1453 Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz 2013-06-21 14:12:46 +01:00
Bobby Holley
2fa8b1cfb0 Bug 883450 - Miscellaneous requests. r=gabor 2013-06-20 11:05:34 -07:00
Terrence Cole
a1b85dbc2a Bug 884410 - Handlify the JS_ResolveStandardClass interface; r=jonco
--HG--
extra : rebase_source : 3ba45931aad97fb7cbca517ae9bccb974d42e57a
2013-06-13 17:10:00 -07:00
Jon Coppeard
c56ed4c7b6 Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz 2013-06-19 11:32:27 +01:00
Jon Coppeard
31b2a9deca Bug 884283 - GC: Rename RootMethods to GCMethods r=terrence 2013-06-19 11:32:26 +01:00