Commit Graph

889 Commits

Author SHA1 Message Date
Dan Gohman
586b9aee99 Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Dan Gohman
5dcee75fad 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
a53f6f80b6 Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Bobby Holley
0fcc3886ab 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
95ce2b706f 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
8ca63f18ef 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
cf2028664c Back out e46601eb7279:533dc9ea3301 (bug 912322) for Android reftest bustage 2013-09-04 21:49:16 -07:00
Bobby Holley
e903e0f569 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
05b3f24e0e Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Andrew McCreight
3228f67147 Bug 883920 - use templates for {Hold,Drop}JSObjects. r=peterv 2013-08-16 13:10:17 -07:00
Nicholas Nethercote
d74157039d 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
ca11ae6bae bug 846185 - don't call into js when creating accessibles r=surkov, smaug 2013-07-19 00:13:35 -04:00
Eric Faust
e6e4afbe95 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
890ecab565 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
0ee041b9fd Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Nicholas Nethercote
b6d6b342af 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
135b566f7a 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
e16d8e4b0e Bug 907612 part.2 Get rid of nsNativeKeyEvent r=roc+gps, sr=jst 2013-08-24 16:24:32 +09:00
Boris Zbarsky
1955cb60db 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
18e33f4b17 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
1ef4f3befe Merge inbound to m-c. 2013-08-22 15:42:18 -04:00
Ms2ger
4af9d89266 Merge m-c to inbound 2013-08-22 10:38:48 +02:00
Ms2ger
dd3ed79f0d Merge PGO-green changeset from inbound to m-c. 2013-08-22 10:31:44 +02:00
Ms2ger
19f3e043e3 Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger
fa65b962f6 Bug 883284 - Part b: Move LIBXUL_LIBRARY into moz.build (a-c); r=joey 2013-08-22 08:55:59 +02:00
Ms2ger
66214743ad Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Ms2ger
97bb27fbf6 Bug 905230 - Use LinkedList for nsXBLJSClass; r=mrbkap 2013-08-22 08:34:44 +02:00
Ms2ger
badb581ba0 Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir 2013-08-22 08:30:55 +02:00
Ehsan Akhgari
2a87c95927 Bug 904695 - #include fewer headers in nsContentUtils.h; r=jst 2013-08-21 15:28:26 -04:00
Martijn Wargers
3d65d093d0 Bug 907648 - test_bug379959.html and test_bug369814.html should use SpecialPowers. r=jmaher 2013-08-21 18:11:26 +02:00
Gavin Sharp
8cf0a610cf 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
b89a8ac1c0 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
6ca3e8e594 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
4e0f1d69d4 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
a3ff92e03c 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
6ec28362b3 Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Mounir Lamouri
08c45c7f87 Bug 651124 - Remove GetChildAt() usage in nsBindingManager. r=mrbkap 2013-08-12 15:00:44 +01:00
Blake Kaplan
77068e156d 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
8d0a37229f Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug 2013-08-12 12:09:14 +01:00
Trevor Saunders
a8a12176ad bug 659722 - remove _IMPL_NS_LAYOUT r=bz 2013-03-16 00:31:38 -04:00
Bobby Holley
c609bc28f8 Bug 902718 - Fold EnsureScriptEnvironment into GetCompilationGlobal. r=bz 2013-08-09 09:25:15 -07:00
Bobby Holley
fd5cde0bec Bug 902718 - Stop using nsIScriptContext for XBL compilation. r=bz,mccr8 2013-08-09 09:25:14 -07:00
Bobby Holley
773a19df5d Bug 902718 - Remove nsIScriptGlobalObjectOwner from XBL. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
dead89695e Bug 902718 - Stop using nsIScriptGlobalObjectOwner to grab the compilation global. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
601b7c6981 Bug 902718 - Use the SafeJSContext for prototype member compilation. r=bz 2013-08-09 09:25:14 -07:00
Bobby Holley
1ec46ae8f9 Bug 902718 - Use the SafeJSContext for XBL serialization and deserialization. r=bz 2013-08-09 09:25:13 -07:00
Bobby Holley
2ae63c93c3 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
f5b4947a7e 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
2ec088ab64 Bug 902718 - Stop taking an nsIScriptContext in XBL serialization routines. r=bz 2013-08-09 09:25:13 -07:00
Bobby Holley
402cf54235 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