Nikhil Marathe
7b139fafd1
Bug 939332 - Implement Promise.all, Promise.cast, Promise.race. r=bz
...
--HG--
extra : rebase_source : 72c1a87a6352005765442ea8903cfa16da8608fd
extra : amend_source : 71b6af7c8446cd501bc337d50a345f24814f20db
2013-11-19 13:53:00 -08:00
Bobby Holley
688bba41bf
Bug 939166 - Be more direct in GetStaticScriptGlobal. r=bz
...
This can all collapse because of the following facts:
* Ever since we introduced SandboxPrivate, we never actually use a Window
as an SOP for a sandbox.
* nsGlobalWindow is actually the only thing that implements nsIScriptGlobalObject.
2013-11-20 08:48:00 -08:00
Tom Schuster
f052cdba92
Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz
2013-11-16 13:31:36 +01:00
Ms2ger
29adada2a2
Backout changesets ded0d64f6786:03f041d03f24 and 30cbd1abde1a (bug 935696, bug 933834 and bug 939194) for build bustage.
2013-11-17 16:39:25 +01:00
Tom Schuster
a12aa024e6
Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz
2013-11-16 13:31:36 +01:00
Bobby Holley
d071bd541c
Bug 840488 - Refactor Gecko to provide a more direct API to ask whether script is allowed for a given global. r=bz
2013-11-12 16:43:31 -08:00
Ms2ger
786aa40195
No bug - Fix some style issues in DOM code.
2013-11-11 09:04:41 +01:00
Eddy Bruel
874a5f30e3
Bug 880330 - Refactor dom to use the new options API (2/2); r=khuey
2013-10-28 12:51:05 +01:00
Tom Schuster
ce701cf26f
Bug 930782 - Handlify JS_WrapValue. r=terrence
2013-10-26 18:19:05 +02:00
Jon Coppeard
60622be6ee
Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug
2013-09-20 10:22:59 +01:00
Jon Coppeard
dffe7f475b
Bug 917798 - Handlify JS exception APIs r=terrence r=bz
2013-09-19 08:54:01 +01:00
Brian Hackett
98b76dd0aa
Bug 906371 - Use off thread JS parsing when loading async scripts, r=bz,billm.
2013-09-11 17:42:09 -06:00
Dan Gohman
586b9aee99
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -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
1e72ccd895
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-09-04 14:06:57 -07:00
Bobby Holley
df08f737c1
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-09-04 14:06:55 -07: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
Ryan VanderMeulen
252154d12a
Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
...
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Bobby Holley
41d0a60a21
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
f4dd8b2c3e
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-08-27 15:21:38 -07:00
Gabor Krizsanits
1e25746b3e
Bug 877673 - Part 1: AutoDontReportUncaught. r=bholley
2013-08-19 11:46:24 +02:00
Ehsan Akhgari
c0a07f27fe
Bug 905353 - Minimize the #includes in dom/base; r=jst
...
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
Ms2ger
6ec28362b3
Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar
2013-08-14 08:56:21 +02:00
Bobby Holley
f42ad67212
Bug 901362 - Give EvaluateString consumers the option to propagate exceptions instead of reporting. r=gabor
2013-08-08 16:51:35 -07:00
Bobby Holley
ce71a42cc1
Bug 901362 - Refactor nsJSUtils::EvaluateString to take an EvaluateOptions structure. r=gabor
2013-08-08 16:51:35 -07:00
Bobby Holley
e976c1230d
Bug 901162 - Hoist EvaluateString into nsJSUtils. r=bz
2013-08-08 16:51:34 -07:00
Nicholas Nethercote
849635b8f1
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
aa5919539d
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
Bobby Holley
99246966e4
Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
...
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Bobby Holley
9f3d1e24f0
Bug 899245 - Rename js::GetDefaultGlobalForContext to js::DefaultObjectForContextOrNull. r=luke
...
This is more correct, since the object very often is not a global.
2013-07-29 16:45:25 -07:00
Bobby Holley
1dceda6384
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
Daniel Holbert
9ef09558c4
Bug 853607: Replace spammy NS_ENSURE_TRUE with explicit null-check-and-return, in nsJSUtils::GetStaticScriptGlobal(). r=bz
2013-03-21 18:50:44 -07:00
Bobby Holley
5de758ce91
Bug 832041 - Remove nsJSContext::CompileEventHandler and move consumers to nsJSUtils::CompileFunction. r=bz
2013-01-23 07:12:50 +01:00
Bobby Holley
981f7eda15
Bug 824864 - Fix Ms2ger nits. r=me
2013-01-16 18:50:27 -08:00
Bobby Holley
652eb13ea3
Bug 824864 - Hoist the guts of CompileFunction into nsJSUtils. r=bz
2013-01-16 18:50:25 -08:00
Boris Zbarsky
b01e12f509
Bug 779048 part 1. Implement a parent class for C++ reflections of callback functions in WebIDL. r=bholley,smaug
2012-11-09 07:43:57 -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
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Olli Pettay
6e882d2abe
Bug 773803 - Remove nsIScriptObjectOwner, r=bz
...
--HG--
rename : dom/base/nsIScriptObjectOwner.h => dom/base/nsIScriptEventHandlerOwner.h
2012-07-14 01:23:59 +03:00
David Zbarsky
cd3c58ee76
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Boris Zbarsky
224115946f
Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
...
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom. General files not specific to an interface are also exported into
mozilla/dom.
In terms of namespaces, most things now live in mozilla::dom. Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).
IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum. We then typedef
EnumFooValues::valuelist to EnumFoo. That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.
The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.
The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
David Anderson
38bfcb0aba
Remove simple JS_FrameIterator use from content, DOM, and caps (bug 744617, r=mrbkap).
...
--HG--
extra : rebase_source : 003a5285b549845d47c9298606d737620db5bb3d
2012-04-16 12:30:00 -07:00
Peter Van der Beken
09128a75d3
Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug.
...
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Mark Capella
08d7239a5d
Bug 734023 - Remove language arguments from nsIScriptGlobalObject methods, r=jst, f=ms2ger
2012-03-23 18:13:29 +01:00
Igor Bukanov
748c9f34a7
bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
...
--HG--
extra : rebase_source : b78519db2ff008eb5143676d2db47935f0e89f45
2012-02-05 21:07:23 +01:00
Igor Bukanov
38fe4ed717
backout merge for bug 724310. r=irc
2012-02-09 21:28:22 +01:00
Igor Bukanov
e4e3433d0c
bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
...
--HG--
extra : rebase_source : c461dfc0e0e0462ab262cc01c2a771d3bb0971cc
2012-02-05 21:07:23 +01:00
Igor Bukanov
3163d5e91e
bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke
2012-02-04 01:54:57 +01:00