Commit Graph
241 Commits
Author SHA1 Message Date
Boris Zbarsky 932df2c9fb Bug 1400139 part 1. Add infrastructure for marking WebIDL interface members as non-enumerable. r=qdot
MozReview-Commit-ID: 9F0ZNverS63
2017-09-18 21:24:37 -04:00
Boris Zbarsky e4fe254553 Bug 1237503. Add support for [Cached] and [StoreInSlot] things on DOM proxies. r=qdot
The only difference between proxies and non-proxies is that proxies only support
up to MAX_FIXED_SLOTS slots all told (reserved plus private slot).  SpiderMonkey
already has static asserts to make sure we don't ask for too many reserved slots
on a proxy.
2017-05-19 09:24:30 -04:00
John Dai a3f1880eb3 Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen. r=bz
MozReview-Commit-ID: F1mxKzlru9s
2017-03-08 17:11:48 +08:00
Boris Zbarsky cd5fd78cdc Bug 1330699 part 10. Rename the MozMap C++ type to "record" and give it a template parameter for the key type. r=qdot
Also renames all the test functions to mention "Record" instead of "MozMap".
2017-02-15 00:01:35 -05:00
Boris Zbarsky ede63f4d95 Bug 1330699 part 9. Rename "MozMap" to "record" in our IDL parser and IDL files. r=qdot
The key type is unused so far.
2017-02-15 00:00:17 -05:00
Boris Zbarsky c1c247e94f Bug 1330699 part 4. Add more codegen tests for MozMap in dictionary r=qdot 2017-02-15 00:00:03 -05:00
Boris Zbarsky 2fcfa342dd Bug 1330699 part 2. Change the MozMap API and data storage to more what we want record<> to look like. r=qdot,smaug 2017-02-15 00:00:00 -05:00
Boris Zbarsky ca06316e7a Bug 1333480. Disallow indexed getters on interfaces without an integer-typed 'length' attribute. r=qdot 2017-01-24 16:11:33 -05:00
Iris Hsiao 9ae5342269 Backed out changeset f9ae7da00387 (bug 1333480) for bustage
CLOSED TREE
2017-01-25 10:44:16 +08:00
Boris Zbarsky dc963a4f48 Bug 1333480. Disallow indexed getters on interfaces without an integer-typed 'length' attribute. r=qdot 2017-01-24 16:11:33 -05:00
Wes Kocher e50e67b2be Backed out changeset b8b06fdb30ce (bug 1333480) for build bustage a=backout
MozReview-Commit-ID: 7wCiW0N8tby
2017-01-24 13:57:26 -08:00
Boris Zbarsky bdf7f2aa48 Bug 1333480. Disallow indexed getters on interfaces without an integer-typed 'length' attribute. r=qdot 2017-01-24 16:11:33 -05:00
Boris Zbarsky ebee8306f5 Bug 1330536 part 6. Add tests for code generation for CanOOM members. r=smaug 2017-01-17 23:52:14 -05:00
Boris Zbarsky c3dfe1c1f9 Bug 1330698. Support string default values for unions containing USVString. r=qdot 2017-01-13 10:41:12 -05:00
Boris Zbarsky 5db221ca80 Bug 1324178. Actually enforce the various checks the IDL spec says to do for arguments of constructors and named constructors. r=baku 2016-12-19 15:38:42 -08:00
Boris Zbarsky 9e2f4f54ee Bug 1323274. Disallow nullable Promise types. r=qdot 2016-12-16 14:06:54 -05:00
Edgar Chen f573936589 Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements; r=bz,wchen
MozReview-Commit-ID: 6egmavfTmFT
2016-11-17 23:31:50 +08:00
Sebastian Hengst 7a7aca4272 Backed out changeset f2a5fc3e8c4e (bug 1274159) 2016-12-14 13:27:22 +01:00
Edgar Chen b22063fb71 Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements; r=bz,wchen
MozReview-Commit-ID: 6egmavfTmFT
2016-11-17 23:31:50 +08:00
Boris Zbarsky 2f9aa2cb6b Bug 1316619. Add a [NeedsCallerType] WebIDL annotation. r=bholley 2016-11-11 16:09:05 -05:00
Boris Zbarsky 6c42ab471e Bug 1021289 part 2. Remove support for indexed deleters, since they're gone from the spec. r=peterv 2016-11-04 12:41:26 -04:00
Boris Zbarsky 65a99191a7 Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.

The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits.  Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Boris Zbarsky 5f748b55d9 Bug 1297756 part 2. Allow specifying a default value for a union containing an enum. r=mystor 2016-08-30 12:55:17 -04:00
Michael Layzell 95c9f675db Bug 1292293 - Part 1: Update the WebIDL Parser to allow default values for ByteString, r=bz 2016-08-05 17:46:54 -04:00
Alexandre Lissy e4fd2dab03 Bug 1286530 - Clean AvailableIn, CheckAnyPermissions and CheckAllPermissions from WebIDL r=bz,fabrice
MozReview-Commit-ID: 6EQfBM09xUE
2016-04-21 15:48:59 +02:00
Boris Zbarsky 2d77606870 Bug 1277401 part 5. Change dictionary codegen to output Func stuff as needed. r=peterv 2016-06-07 10:34:54 -04:00
Andrea Marchesini 53b92f42e3 Bug 989619 - patch 1 - Codegen should allow static methods with a reserved C++ keywords as the name, r=peterv 2016-06-04 09:31:44 +02:00
Boris Zbarsky 5b01d01a44 Bug 1270601 part 3. Add a way to annotate and IDL namespace as needing a new plain object as its prototype, because using Object.prototype as the prototype of 'console' is not web-compatible. r=peterv 2016-06-02 10:34:39 -04:00
Boris Zbarsky ed65a86f35 Bug 1270601 part 2. Add codegen support for IDL namespaces. r=peterv 2016-06-02 10:34:39 -04:00
Boris Zbarsky c6e914171d Bug 1274049. Make sure we actually codegen our various test callbacks in bindings codegen tests. r=peterv 2016-05-19 13:48:11 -04:00
Jonathan Watt 117c57ae56 Bug 1177957, part 4 - Tests for the [SecureContext] WebIDL extended attribute. r=bz
MozReview-Commit-ID: IodQqQ3rAfI
2016-05-16 10:04:38 +01:00
Boris Zbarsky 1892742f92 Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust 2015-11-25 15:48:09 -05:00
Phil Ringnalda b118ae5885 Back out 13 changesets (bug 1170760) for Gu bustage in homescreen/test/unit/apps_test.js
CLOSED TREE

Backed out changeset 5d84599a8846 (bug 1170760)
Backed out changeset 6104fe33d5f5 (bug 1170760)
Backed out changeset 1dfb229da01d (bug 1170760)
Backed out changeset f380faddfdd8 (bug 1170760)
Backed out changeset 541831dc6b57 (bug 1170760)
Backed out changeset 6a5b7dfab882 (bug 1170760)
Backed out changeset ee514a256922 (bug 1170760)
Backed out changeset 3c2c1acc34ee (bug 1170760)
Backed out changeset dc2a7f5dc5d6 (bug 1170760)
Backed out changeset b312a08fbab5 (bug 1170760)
Backed out changeset cb6aba9b8497 (bug 1170760)
Backed out changeset 39e4f5b1ba40 (bug 1170760)
Backed out changeset 7d79cce3630a (bug 1170760)
2015-11-25 21:02:55 -08:00
Boris Zbarsky ca22a3dc8b Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust 2015-11-25 15:48:09 -05:00
Martin Thomson 3874e61273 Bug 1155923 - Add Deprecated attribute to interfaces, r=peterv 2015-09-28 11:25:04 -07:00
Carsten "Tomcat" Book 37b5dd7e69 Backed out 3 changesets (bug 1155923) for causing test failures in promises-call.html
Backed out changeset 321a932e01a7 (bug 1155923)
Backed out changeset 6ac38acd6ab2 (bug 1155923)
Backed out changeset 2981db92416a (bug 1155923)
2015-09-28 14:02:41 +02:00
Martin Thomson 90db71495c Bug 1155923 - Add Deprecated attribute to interfaces. r=peterv 2015-09-24 16:31:47 -07:00
Boris Zbarsky 6770c5ecaf Bug 983301 part 1. Handle JS-to-native conversion for Promise values via calling Promise::Resolve on whatever value was passed in (except if the type is nullable and the passed-in value is null or undefined). r=peterv 2015-07-31 13:30:55 -04:00
Boris Zbarsky 33dd132fbf Bug 1176236. Make typed array arguments work for constructors of JS-implemented interfaces. r=peterv 2015-07-01 14:15:20 -04:00
Boris Zbarsky 978f557416 Bug 913053. Split up IDLTypedef and IDLTypedefType, and likewise for IDLCallback vs IDLCallbackType, so it's clearer whether we're operating on types or objects represented by those types. r=khuey 2015-05-13 22:19:22 -04:00
Boris Zbarsky a3b3b9f0cc Bug 1129239. Don't require 'optional' keyword on trailing dictionary arguments if the dictionary has a required member. r=smaug 2015-04-17 12:13:25 -04:00
Paul Adenot 953a7ae4d3 Bug 1148496 - Allow to set an interface member as [Deprecated] in WebIDL. r=bz,smaug 2015-04-14 17:03:49 +02:00
Boris Zbarsky c7c3794cdd Bug 1134112 part 2. When doing dictionary init, if we have a non-optional union member just go ahead and uninit it before we try initing it. That way even if it's already been initialized (e.g. because we default-initialized at some point) things will still work correctly. r=peterv 2015-02-19 14:36:35 -05:00
Boris Zbarsky fef51fbae2 Bug 1134112 part 1. When doing fast-init of a Web IDL dictionary, do fast-init of its dictionary members and its ancestors too. r=peterv 2015-02-19 14:36:26 -05:00
Boris Zbarsky b74185b06d Bug 1130364. Fix the handling of nestingLevel to actuall increment it more than once. r=peterv 2015-02-09 11:42:27 -05:00
Boris Zbarsky 950e48d12c Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv 2015-01-15 17:39:01 -05:00
Boris Zbarsky 01c700ec1b Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv 2015-01-15 17:39:01 -05:00
Andrea Marchesini b5a05079a9 Bug 1077393 - Rename ScalarValueString to USVString. r=smaug 2014-11-20 12:58:00 +01:00
Peter Van der Beken 91b7ab2dba Bug 1068740 - Consider putting union types in the binding files where they're used. r=bz. 2014-10-01 20:43:26 +02:00
Boris Zbarsky 27094e52d5 Bug 1030192 part 2. Codegen changes to handle cases when a sequence is actually overloaded with a dictionary. r=khuey 2014-09-24 09:11:30 -04:00