Boris Zbarsky
4061bda4b1
Bug 963388. Add support for nullable dictionary return values in callbacks and js-implemented bindings. r=peterv
2014-02-05 13:38:16 -05:00
Boris Zbarsky
d5d6e0f8f3
Bug 963321 part 2. Add codegen support for [Cached] dictionary attributes. r=khuey
2014-02-05 13:38:16 -05:00
Boris Zbarsky
3c296f449e
Bug 966665. Don't DCE DOM method calls and getters that can throw exceptions. r=jandem
2014-02-03 11:04:06 -05:00
Boris Zbarsky
c99d5b8e9e
Bug 957929. Pass undefined, not null, as the this value to callbacks if no other value is provided. r=peterv
2014-01-13 15:08:57 -05:00
Boris Zbarsky
0bc28e81b8
Bug 952365. Add a TreatNonObjectAsNull annotation for WebIDL callback functions and use it for event handlers, since web sites depend on assigning non-callable objects to them in some cases. r=peterv
2014-01-13 15:08:56 -05:00
Boris Zbarsky
cca591c20a
Bug 936056. Be consistent about the thisobj we pass to getters. r=jorendorff
2013-12-02 19:08:07 -05:00
Boris Zbarsky
c388b489bd
Bug 937461. Make cloneNode/importNode "deep" arg default to false, since the spec changed on us. r=sicking
2013-12-20 14:28:17 -05:00
Boris Zbarsky
3fa148f89a
Bug 952073. Fix codegen to actually work correctly for the case of a nullable union dictionary member with no default value. r=dzbarsky
...
This fix just makes us take the normal Optional codepath for this case, since there is no weirdness here.
2013-12-19 23:30:38 -05:00
Boris Zbarsky
83bca7fa22
Bug 949501. Make nullable unions that are isMember stop claiming to have a holder. r=dzbarsky
2013-12-18 11:20:43 -05:00
Boris Zbarsky
ea8d385a26
Bug 949682 part 1. Add a [Frozen] annotation on WebIDL attributes that have sequence types. r=peterv
2013-12-16 13:06:35 -05:00
Boris Zbarsky
3073fb27e4
Bug 947351. [Constant] things don't need a way to clear a cached value, since they're not supposed to change. r=peterv
2013-12-06 13:49:44 -05:00
Boris Zbarsky
d6a7344f02
Bug 946909. For a [Cached] or [StoreInSlot] attribute with a setter, clear the cache on set. r=peterv
2013-12-05 16:31:04 -05:00
Boris Zbarsky
919ba9e509
Bug 946898. Make sure to not accidentally store COWs in the slot for [Cached] properties. r=peterv
2013-12-05 16:07:33 -05:00
Gregory Szorc
c2b654599f
Bug 950370 - Capture WebIDL example interfaces in moz.build; r=glandium
...
Previously, the set of WebIDL example interfaces to build was hardcoded
in the mozwebidlcodegen Python package. Unfortunately, the example
interfaces in that set were dependent on test-only bindings files,
resulting in build failures when tests were disabled (because those
test-only bindings were defined in a test directory).
In this patch, we now declare example interfaces in moz.build files
so the set of example interfaces lives next to the set of defined
bindings files. The example interfaces are defined in a test moz.build
file - in the same file declaring the bindings files that contain the
interfaces - so the example interfaces only get picked up if the
corresponding bindings are defined.
We could probably switch WebIDL moz.build variables to use lists with
flags. That would be good followup fodder. For now, let's fix the build.
--HG--
extra : rebase_source : 00070a6d560625bc84ab9b10d6848ea037f8f5ed
extra : amend_source : 0890ecef444ba58533fcfaa333773d78deafd7f3
2013-12-15 11:43:47 -08:00
Gregory Szorc
b47eeb6ab3
Bug 928195 - Part 4: Rewrite WebIDL build system integration; r=bz, r=glandium
...
WebIDL build system integration has been rewritten from the ground up.
Changes:
* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
favor of mozwebidl.py.
* Static .webidl files are now processed directly in their original location
and aren't copied to the object directory.
* Generated events <stem>.cpp files are now compiled into the unified
sources. Previously, only the <stem>Binding.cpp files were compiled
into unified sources.
* Exported .h files are now generated directly into their final location.
Previously, they were generated into the local directory then
installed in their final location.
* The list of globalgen-generated files now lives in Python and isn't
duplicated in 3 places.
* The make dependencies are much simpler as a result of using a single
command to perform all code generation. The auto-generated .pp file from
code generation sets up all dependencies necessary to reinvoke code
generation and Python takes care of dependency management.
--HG--
extra : rebase_source : e4918878274b22a412329c7cb18cc7138daf5dc6
2013-12-12 16:26:38 +09:00
Boris Zbarsky
f5f63077e2
Bug 949271. Fix callback and JS-implemented codegen for sequence-of-union and variadic-union arguments. r=smaug
2013-12-12 16:11:56 -05:00
Boris Zbarsky
21df6dd5cf
Bug 945788. Add support for dictionary return values to example codegen and js-implemented codegen. r=smaug
2013-12-05 11:39:50 -05:00
Boris Zbarsky
7cea1234f6
Bug 942631 part 5. Add C++ API for clearing the cached value of a [Cached] property or regetting a [StoreInSlot] property. r=peterv
2013-12-04 08:02:18 -05:00
Boris Zbarsky
be8f33b2af
Bug 942631 part 4. Allow WebIDL attributes to return a sequence if it's cached. r=peterv
2013-12-04 08:02:18 -05:00
Boris Zbarsky
da56c38e0b
Bug 942631 part 1. Add support for a [Cached] WebIDL annotation. r=peterv
2013-12-04 08:02:17 -05:00
Gregory Szorc
d39381a161
Backed out 4 changesets (c0e8f2c0465f::608c663f691f) (bug 928195) for landing prematurely
...
--HG--
extra : rebase_source : fa42534ef50a0373738349f17b2ca57510bdd6ac
2013-11-19 10:16:51 -08:00
Gregory Szorc
90980a53e9
Bug 928195 - Part 6: Rewrite WebIDL build system integration
...
WebIDL build system integration has been rewritten from the ground up.
Changes:
* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
favor of mozwebidl.py.
* Static .webidl files are now processed directly in their original location
and aren't copied to the object directory.
* Generated events <stem>.cpp files are now compiled into the unified
sources. Previously, only the <stem>Binding.cpp files were compiled
into unified sources.
* Exported .h files are now generated directly into their final location.
Previously, they were generated into the local directory then
installed in their final location.
* The list of globalgen-generated files now lives in Python and isn't
duplicated in 3 places.
* The make dependencies are much simpler as a result of using a single
command to perform all code generation. The auto-generated .pp file from
code generation sets up all dependencies necessary to reinvoke code
generation and Python takes care of dependency management.
--HG--
extra : rebase_source : bde37d7aab3bd224ca8611f3ba4aaf6311e2faab
2013-11-14 09:52:49 -08:00
Gregory Szorc
58ddbab782
Bug 928195 - Part 2: Provide a mach command to run WebIDL parser tests; r=bz
...
--HG--
extra : rebase_source : ff200d7a77532dae9e022d03cccc624ea1f77c63
2013-11-14 14:34:50 -08:00
Mike Hommey
e80e877ab7
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
Ms2ger
4fe918bb7b
Bug 931459 - Move LOCAL_INCLUDES to moz.build in dom/; r=mshal
2013-11-11 09:04:11 +01:00
Kyle Huey
e034802efa
Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz
2013-11-05 22:16:24 +08:00
Boris Zbarsky
20b04d6057
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Boris Zbarsky
98d74fb3cb
Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
...
The major changes are as follows:
1) The new algorithm no longer adjusts "argcount" based on the
interaction of trailing undefined and [TreatUndefinedAs=Missing]
arguments. We never implemented this; just asserted that we didn't
have to deal with this situation.
2) If the distinguishing argument is undefined and there is an
overload that has an optional argument at the distinguishing
argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
9253bde16b
Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
...
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
97c2bf7f74
Bug 929512. Fix null default values for non-nullable unions containing a nullable type. r=dzbarsky, r=smaug pending
2013-10-28 00:33:15 -04:00
Jan-Ivar Bruaroey
f158da18a1
Bug 929530 - Remove peerConnection functionality deprecated w/warnings since 24 r=jesup,jib
2013-10-27 10:36:34 -04:00
Trevor Saunders
f1399b6633
[PATCH] bug 922566 - kill dom-config.mk
...
From 6681eaa8bb47ddb4756fd71738771c4c437101c0 Mon Sep 17 00:00:00 2001
---
content/media/webspeech/recognition/Makefile.in | 1 -
content/media/webspeech/recognition/moz.build | 5 +-
content/media/webspeech/synth/Makefile.in | 1 -
content/media/webspeech/synth/pico/Makefile.in | 3 --
dom/alarm/Makefile.in | 2 -
dom/apps/src/Makefile.in | 1 -
dom/base/Makefile.in | 2 -
dom/base/moz.build | 26 ++++++++++-
dom/battery/Makefile.in | 1 -
dom/bindings/Makefile.in | 3 --
dom/bindings/moz.build | 17 ++++++-
dom/bindings/test/Makefile.in | 5 +-
dom/bluetooth/Makefile.in | 2 -
dom/bluetooth/moz.build | 7 ++-
dom/browser-element/Makefile.in | 3 --
dom/browser-element/moz.build | 6 ++-
dom/camera/Makefile.in | 1 -
dom/camera/moz.build | 5 +-
dom/devicestorage/Makefile.in | 1 -
dom/dom-config.mk | 61 -------------------------
dom/encoding/Makefile.in | 1 -
dom/fmradio/Makefile.in | 2 -
dom/fmradio/ipc/Makefile.in | 1 -
dom/fmradio/ipc/moz.build | 5 +-
dom/fmradio/moz.build | 5 +-
dom/icc/src/Makefile.in | 4 --
dom/media/Makefile.in | 3 --
dom/media/moz.build | 6 ++-
dom/mobilemessage/src/Makefile.in | 1 -
dom/mobilemessage/src/moz.build | 5 +-
dom/network/src/Makefile.in | 2 -
dom/plugins/base/Makefile.in | 1 -
dom/plugins/base/moz.build | 8 +++-
dom/power/Makefile.in | 1 -
dom/quota/Makefile.in | 1 -
dom/system/gonk/Makefile.in | 2 -
dom/telephony/Makefile.in | 1 -
dom/time/Makefile.in | 1 -
dom/wifi/Makefile.in | 5 --
39 files changed, 85 insertions(+), 123 deletions(-)
delete mode 100644 dom/dom-config.mk
delete mode 100644 dom/wifi/Makefile.in
2013-10-23 17:20:55 -04:00
Peter Van der Beken
70d1256549
Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
...
--HG--
extra : rebase_source : 80791f28acbf8e2cc21946b0d62bb8555b53fc99
2013-09-30 18:32:22 +02:00
Ed Morley
ef2d7c5fe8
Backed out changeset 64a19bc0e198 (bug 922159) for compilation failures on a CLOSED TREE
2013-10-23 15:51:48 +01:00
Peter Van der Beken
538eed5d23
Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
...
--HG--
extra : rebase_source : 2c09c54f42a111d27b0d57346ca7d80f440eca09
2013-09-30 18:32:22 +02:00
Trevor Saunders
c29760731a
Backed out changeset 99b17c404db2 and e40a964458f8 for landing stuff that shouldn't have and then backing out stuff that should have stayed on a CLOSED TREE
...
--HG--
extra : amend_source : 54312955270ea4098a3add3cd0708866de2e40bb
2013-10-21 18:58:14 -04:00
Trevor Saunders
67e6559698
bug 922566 - kill dom-config.mk r=gps
2013-10-11 12:02:41 -04:00
Ryan VanderMeulen
9abde8f9b2
Backed out 2 changesets (bug 915757, bug 919885) for frequent Android Armv6 mochitest-8 crashes.
...
Backed out changeset 04610078280c (bug 915757)
Backed out changeset db9190b3ce60 (bug 919885)
2013-10-14 14:38:54 -04:00
Ed Morley
c850e0a16b
Merge latest green inbound changeset and mozilla-central
2013-10-14 17:39:02 +01:00
Ed Morley
b0477b5369
Backed out changeset d8636e485e85 (bug 882541)
2013-10-14 17:30:49 +01:00
Ed Morley
3a77b8b1b1
Backed out changeset 61092280cb2a (bug 882541)
2013-10-14 17:30:46 +01:00
Ed Morley
0f6d579260
Backed out changeset ccf11ae08ba2 (bug 882541)
2013-10-14 17:30:43 +01:00
Kyle Huey
30ab732153
Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz
2013-10-14 19:58:05 +08:00
Phil Ringnalda
5c6d197b06
Backed out 2 changesets (bug 915757, bug 919885) for xpcshell bustage
...
Backed out changeset 5d17d90b838d (bug 915757)
Backed out changeset 91495d3a91c8 (bug 919885)
2013-10-13 21:59:58 -07:00
Kyle Huey
93bec3955c
Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz
2013-10-14 11:10:43 +08:00
Boris Zbarsky
ce891d2c00
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Boris Zbarsky
99d48a5894
Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
...
The major changes are as follows:
1) The new algorithm no longer adjusts "argcount" based on the
interaction of trailing undefined and [TreatUndefinedAs=Missing]
arguments. We never implemented this; just asserted that we didn't
have to deal with this situation.
2) If the distinguishing argument is undefined and there is an
overload that has an optional argument at the distinguishing
argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
57053bb972
Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
...
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
e9898392f2
Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey
2013-10-09 12:05:22 -04:00
Ed Morley
a4e9089af7
Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures
2013-10-09 17:48:13 +01:00
Boris Zbarsky
dab154c98a
Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey
2013-10-09 12:05:22 -04:00
Andy Wingo
53ce73ba77
Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden
2013-10-03 13:37:57 +01:00
Boris Zbarsky
6225c78b1a
Bug 923010. When rethrowing exceptions from JS-implemented components to content script, make sure to give them a useful filename and line number, pointing to the content script location that triggered the exception. r=peterv
2013-10-03 08:34:47 -04:00
Ms2ger
24a2e9c09e
Bug 912099 - Part a: Make sure CPP_SOURCES only points to existing files in most of the tree; r=mshal
2013-10-03 09:10:00 +02:00
Gregory Szorc
e6acf6270f
Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:01 +02:00
Gregory Szorc
1cff342d15
Bug 920223 - Part 1: Mass convert MOCHITEST_FILES to manifests; rs=Ms2ger
2013-09-30 09:51:57 +02:00
Ed Morley
18a411a55c
Backed out changeset 77bff106b704 (bug 920223)
2013-09-30 12:50:12 +01:00
Ed Morley
53a451894a
Backed out changeset 68b6b152f51a (bug 920223)
2013-09-30 12:50:09 +01:00
Gregory Szorc
0b4364c6f3
Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:01 +02:00
Gregory Szorc
6ed63cb064
Bug 920223 - Part 1: Mass convert MOCHITEST_FILES to manifests; rs=Ms2ger
2013-09-30 09:51:57 +02:00
Boris Zbarsky
eff308009e
Bug 918011 part 4. Support dictionaries in unions. r=smaug
2013-09-26 00:05:00 -04:00
Boris Zbarsky
9938e4eef7
Bug 918011 part 2. Preprocess some of our test WebIDL files so we can have debug-only tests. r=khuey
2013-09-26 00:05:00 -04:00
Boris Zbarsky
016b4b01e2
Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv
2013-09-25 14:38:29 -04:00
Ryan VanderMeulen
b2c316d8b2
Backed out 5 changesets (bug 905493, bug 920125, bug 919603) for mochitest orange on a CLOSED TREE.
...
Backed out changeset ccef656b2973 (bug 919603)
Backed out changeset 4b29ce0b2fff (bug 919603)
Backed out changeset b0a051ec55b7 (bug 919603)
Backed out changeset baa9a774aad1 (bug 920125)
Backed out changeset e03276bf4eaa (bug 905493)
2013-09-25 18:22:33 -04:00
Boris Zbarsky
59c5157dca
Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv
2013-09-25 14:38:29 -04:00
Boris Zbarsky
7f755053b4
Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky
2013-09-17 11:16:02 -04:00
Boris Zbarsky
7f0a897989
Bug 915419. Add support for "object" types in owning unions (so union return values and unions in dictionaries and sequences. r=dzbarsky, smaug
...
Adds RootedUnion and NullableRootedUnion structs that are used on the
stack for union return values when the union needs rooting. It also
adds a TraceUnion method on union return values, which is called by
(Nullable)RootedUnion or by dictionary tracing. TraceUnion traces
typed array and object members of unions (the only things unions can
contain so far that might need tracing). Union return values are
changed to store raw JSObject* or typed array structs instead of
Rooted versions of both; the tracing is now handled via TraceUnion.
The wrapping code for dictionary arguments to constructors is fixed to
actually work. This required adding GetAs* methods to union return
values that return references to the internal data.
The SetToObject method is adjusted to actually work for union return
value structs and not assume it's being generated for a
union-conversion struct, and we now generate SetToObject methods as
needed for union return values.
2013-09-12 22:34:16 -04:00
Nathan Froyd
92358c0024
Bug 912197 - part 5 - move WebIDL.mk over to moz.build; r=khuey
2013-09-05 11:20:26 -04:00
Boris Zbarsky
4bcfb1058f
Bug 912948 part 2. Add support for [Clamp] and [EnforceRange] on writable attributes. r=khuey
2013-09-09 22:10:45 -04:00
Boris Zbarsky
0ad10b4254
Bug 912948 part 1. Add support for [Clamp] and [EnforceRange] on dictionary members. r=khuey
2013-09-09 22:10:44 -04:00
David Zbarsky
65e4f98211
Bug 767926 - Implement unions as member types of sequences or dictionaries for WebIDL r=bz
2013-09-09 14:39:17 -04:00
Mike Hommey
f8bc7fa754
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Andrea Marchesini
4c65dc3395
Bug 887364 - URL API for main thread. r=ehsan
2013-09-04 13:07:21 -04:00
Boris Zbarsky
33a1e2b01c
Bug 910220 part 3. Always generate a defineProperty hook for DOM proxies. r=peterv
2013-08-31 00:21:31 -04:00
Boris Zbarsky
955c798f14
Bug 910220 part 2. Use the new API in codegen to only throw when needed. r=peterv
2013-08-31 00:21:28 -04:00
David Zbarsky
5c7becd069
Bug 903277. Support default values other than null for WebIDL unions. r=bzbarsky
2013-08-29 23:29:38 -04:00
Guillaume Abadie
d2ad89c8f4
Bug 645792 - Replace throwing an exception by returning null on HTMLCanvasElement::GetContext. r=bjacob
...
CLOSED TREE
2013-08-29 10:14:22 -04:00
Ryan VanderMeulen
fb903b97d8
Backed out changeset a58d895d8197 (bug 645792) for OSX leaks.
2013-08-29 13:46:10 -04:00
Guillaume Abadie
c8b76353f6
bug 645792 - replace throwing an exception by returning null on HTMLCanvasElement::GetContext - r=bjacob
2013-08-29 10:14:22 -04:00
Boris Zbarsky
9ca8e983b5
Bug 868799 part 3. Use RootedTypedArray in codegen. r=smaug
2013-08-29 00:30:05 -04:00
Brian O'Keefe
d118b95a0d
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04:00
Boris Zbarsky
31b30305a3
Bug 907548. URL.prototype should be undefined, since we don't implement the URL API. r=khuey
2013-08-22 09:46:26 -04:00
Ms2ger
4fb1aa6786
Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal
2013-08-22 08:56:00 +02:00
Ms2ger
40829a23d0
Bug 903778 - Move dom::Date into its own files; r=khuey
2013-08-22 08:30:38 +02:00
Boris Zbarsky
ba2cacb577
Bug 900898 part 4. Support typed arrays inside sequences and variadics. r=smaug
2013-08-05 13:40:02 -04:00
Boris Zbarsky
c053e819dc
Bug 900898 part 3. Support typed arrays inside dictionaries. r=smaug
2013-08-05 13:40:01 -04:00
Boris Zbarsky
bcd1523d40
Bug 900898 part 2. Move to using Nullable<TypedArray> to represent possibly-null TypedArray structs. r=smaug
2013-08-05 13:40:01 -04:00
Boris Zbarsky
884acf3a89
Bug 707564 part 4. Teach WebIDL Xrays about the GetOwnProperties methods on WebIDL objects that have NewResolve. r=smaug
2013-08-03 23:38:55 -04:00
Boris Zbarsky
c17ffa06b6
Bug 707564 part 3. Give WebIDL bindings with NewResolve hooks Enumerate hooks as well, so enumerating them correctly resolves all the properties. r=smaug
2013-08-03 23:38:54 -04:00
Ryan VanderMeulen
5079ebb23d
Merge m-c to inbound.
2013-07-30 15:41:57 -04:00
Mina Almasry
7d6b47172c
Bug 897185 - toJSON only deals with attributes whose types are serializable. r=bz
...
Now jsonifiers only include serializable attributes in their returned object, as
per spec.
2013-07-30 10:04:04 -04:00
Boris Zbarsky
449d9bef50
Bug 895728 part 4. Fix unions to work with the new boolean/numeric/string setup. r=khuey
2013-07-30 10:39:35 -07:00
Boris Zbarsky
658b16a671
Bug 895728 part 3. Fix overload resolution to work with the new boolean/numeric/string setup. r=khuey
2013-07-30 10:39:34 -07:00
David Zbarsky
d170a8f396
Bug 865998: Implement WebIDL union return values r=bz
2013-07-26 11:25:54 -07:00
Mina Almasry
27f9b1cdb1
Bug 760851 - Add jsonifier WebIDL declaration and add toJSON to performance.timing. r=bz
...
This patch adds a jsonifier declaration to WebIDL's. The declaration adds an autogenerated method toJSON() on the given webidl. This patch also adds jsonifier and toJSON() to PerformanceTiming.webidl, and performance.timing, respectively.
2013-07-26 12:00:49 -04:00
Boris Zbarsky
0314f249cd
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Masatoshi Kimura
43b4a56161
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
2013-07-17 20:26:23 +09:00
Ryan VanderMeulen
7c21303600
Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE.
2013-07-22 18:18:17 -04:00
Boris Zbarsky
cebee2f230
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Ed Morley
7f830b443a
Backed out changeset e12c6f7d6676 (bug 885107) on suspicion of causing bug 894952
2013-07-18 14:43:52 +01:00
Masatoshi Kimura
67b8678f7a
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
2013-07-17 20:26:23 +09:00
Trevor Saunders
f33ade0d68
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
577cd0be78
Bug 884373. Align WebIDL handling of default parameters with ES6. r=khuey
2013-06-26 10:59:46 -04:00
Boris Zbarsky
c23542725a
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
Ryan VanderMeulen
71c9853712
Backed out 3 changesets (bug 883358) for Android mochitest-3 failures on a CLOSED TREE.
...
Backed out changeset 84b35dd1879d (bug 883358)
Backed out changeset b5e6522257cb (bug 883358)
Backed out changeset 757a3f2e5de6 (bug 883358)
2013-06-17 19:51:12 -04:00
Boris Zbarsky
a4c9c172ca
Fix test fallout from bug 883358 so we can stop having a CLOSED TREE. No review.
2013-06-17 18:24:04 -04:00
Boris Zbarsky
4fea0995d3
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
James Kitchener
773d6fa5ec
Bug 796850 - Change XMLHttpRequest interface to support ByteString r=bz
2013-06-13 01:20:10 -04:00
James Kitchener
b71cfc0ec2
Bug 796850 - Implement Code Generation for Bytestring in WebIDL bindings r=bz
2013-06-13 01:18:35 -04:00
Boris Zbarsky
c9eca87821
Bug 829248. Implement basic support for [TreatUndefinedAs=Missing] in WebIDL. r=khuey
...
This does not add support for [TreatUndefinedAs=Missing] in overloaded
methods, since it's not clear what that should really look like.
This also does not require that [TreatUndefinedAs=Missing] on an
argument force it on all later arguments, since it's not clear that we
want that long-term.
2013-06-05 20:51:21 -04:00
Ehsan Akhgari
73f4fbc038
Bug 861371 - Allow Web IDL enums to have names starting with a digit; r=bzbarsky
...
--HG--
extra : rebase_source : 5ebf235e9408bdfdfd37504e2f79c65978ccf51d
2013-06-03 17:54:46 -04:00
Mike Shal
5169c0a913
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Boris Zbarsky
79a9f6baf6
Bug 874154. Make sure we don't end up with uninitialized JSObject* or JS::Value in dictionaries. r=ms2ger
2013-05-21 14:15:30 -04:00
Boris Zbarsky
96a893b56d
Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey
2013-05-09 13:05:33 -04:00
Reuben Morais
2a3b57fffc
Bug 873647 - Teach codegen how to wrap Dates in constructors. r=bz
...
--HG--
extra : rebase_source : f4267f15b7076aacb47fb94e4173a05dac8de255
2013-05-17 13:52:32 -07:00
Boris Zbarsky
cab8324d5a
Bug 868715 part 10. Create specializations of Optional for 'any' and 'object' types so that we can have those look like Optional<Handle<Value> > and Optional<Handle<JSObject*> > respectively. r=peterv,sfink
2013-05-16 12:36:56 -04:00
Boris Zbarsky
f4608593ae
Bug 868715 part 9. Add tracing to WebIDL dictionary return values. r=peterv
2013-05-16 12:36:56 -04:00
Boris Zbarsky
79374d2426
Bug 868715 part 7. Add tracing to dictionaries. r=peterv
2013-05-16 12:36:55 -04:00
Boris Zbarsky
ac6b11ed0d
Bug 868715 part 6. Add the ability to trace sequence arguments. r=peterv
2013-05-16 12:36:55 -04:00
Boris Zbarsky
68c0f91dfe
Bug 868715 part 4. Use on-stack Rooted<JSObject*> for 'object' arguments in WebIDL bindings. r=peterv
2013-05-16 12:36:55 -04:00
Boris Zbarsky
67281b9e8a
Bug 868715 part 3. Use on-stack Rooted<Value> for 'any' arguments in WebIDL bindings. r=peterv
2013-05-16 12:36:54 -04:00
Ryan VanderMeulen
9edc2f4aa0
Backed out 6 changesets (bug 868996, bug 867903, bug 869014, bug 870219, bug 861587) for PGO bustage.
...
CLOSED TREE
2013-05-09 17:11:59 -04:00
Boris Zbarsky
062268a773
Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey
2013-05-09 13:05:33 -04:00
Andrew McCreight
f9834a5efc
Bug 851178 - Add support for JS-implemented WebIDL constructors with arguments. r=bz
2013-05-02 18:00:50 -07:00
Boris Zbarsky
0545ed52a1
Bug 868448. Fix the successCode in dictionary to-js conversions to actually work right, and document the requirements on successCode better. r=smaug
2013-05-06 08:31:01 -04:00
Cameron McCormack
496feec5db
Bug 868805 - [LenientThis] attribute's setter should return undefined. r=bz
2013-05-06 12:36:38 +10:00
Boris Zbarsky
b0f0481c81
Bug 865785 part 2. Fix rooting issues in JS-implemented webidl. r=mccr8
2013-05-04 21:44:10 -04:00
Boris Zbarsky
155848b4d3
Bug 865969 part 2. Better rooting in bindings for 'any' arguments. r=smaug
2013-05-03 19:29:07 -04:00
Boris Zbarsky
6e1db48b4d
Bug 865969 part 1. Better rooting in bindings for 'object' arguments, as well as for worker interface arguments passed as JSObject*. r=smaug
2013-05-03 19:29:07 -04:00
Boris Zbarsky
95d647cc40
Add test for bug 560072.
2013-05-02 14:38:20 -04:00
Boris Zbarsky
6b5485ab22
Bug 742206 part 3. Implement type conversions for Date in WebIDL. r=smaug
2013-05-02 14:38:20 -04:00
Andrew McCreight
18efb67705
Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz
2013-04-30 13:30:25 -07:00
Boris Zbarsky
3cb984ef8b
Bug 766583 part 6. Stop declaring unions as const on the stack in bindings code. r=smaug
2013-04-25 19:03:07 -04:00
Boris Zbarsky
38276f8d99
Bug 766583 part 3. Stop declaring nullable things as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
eb318bbb88
Bug 766583 part 1. Stop declaring dictionaries as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
1ffcf1ad91
Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
...
There are several changes here:
1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
effectively allow doing a const_cast without knowing the actual type being
templated over. I needed this because I do not in fact know that type in
the relevant code. I'm open to suggestions for a better name for this
method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Boris Zbarsky
92c3c727a2
Bug 863898. Add support for dictionary arguments in JS-implemented WebIDL bindings. r=mccr8
2013-04-25 12:29:55 -04:00
Boris Zbarsky
b834439797
Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger
2013-04-25 12:29:54 -04:00
Andrew McCreight
14a0aa1894
Bug 863880 - Take a less ad hoc approach to forward declarations in bindings generation. r=bz
2013-04-25 08:42:43 -07:00
Boris Zbarsky
45135ea107
Bug 731746 part 3. Change JS-implemented webidl codegen to always invoke the parent constructor if there is a parent interface. r=mccr8
2013-04-24 22:44:28 -04:00
Boris Zbarsky
529764fe78
Bug 731746 part 2. Change JS-implemented webidl codegen to pass an nsPIDOMWindow, not an nsISupports, to the object constructor. r=mccr8
2013-04-24 22:44:27 -04:00
Boris Zbarsky
d7b1013b15
Bug 843264. Allow returning sequences of non-primitive types from callback methods. r=mccr8
2013-04-24 14:59:14 -04:00
Boris Zbarsky
2693eed75f
Bug 863386. Add support for nullable enum arguments and return values. r=mccr8
...
This incidentally fixes bug 843355
2013-04-19 23:04:19 -04:00
Peter Van der Beken
269a1f1f10
Bug 862092 - "Assertion failure: target->isNative() == obj->isNative()" adopting a <select>. r=bz.
...
--HG--
extra : rebase_source : 3eef5382c32927ac321db47003a974768cbdaf6e
2013-04-16 19:02:57 +02:00
Olli Pettay
e086f4c1c6
Bug 863094 - Infinity/-Infinity/NaN defaults for unrestricted types, r=bz
...
--HG--
extra : rebase_source : c2495008be9b084656222e6a0773c72d5224e9cc
2013-04-18 19:58:01 +03:00
Olli Pettay
238dddc9f6
Bug 862991 - If dictionary member needs cx, so should dictionary itself, r=bz
...
--HG--
extra : rebase_source : a495d79df021e896d3b7695a7d11da8d52559c28
2013-04-17 23:40:54 +03:00
Ryan VanderMeulen
78dad25bc3
Backed out changeset 409285b3f69c (bug 862092) for mochitest-2 failures on a CLOSED TREE.
2013-04-17 11:48:34 -04:00
Peter Van der Beken
0a02b10ae4
Bug 862092 - "Assertion failure: target->isNative() == obj->isNative()" adopting a <select>. r=bz.
...
--HG--
extra : rebase_source : 1905aa3aa956a599e9ce1de8866f7dc58feb73be
2013-04-16 19:02:57 +02:00
Kyle Huey
3876235aea
Bug 859894: Reland on this CLOSED TREE with a CLOBBER.
2013-04-09 15:39:44 -07:00
Kyle Huey
55b22ee953
Back out bug 859894 to open this CLOSED TREE.
2013-04-09 15:33:05 -07:00