Граф коммитов

374 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 12bc4392d8 Bug 1360557. Fix the Web IDL parser to report more useful errors when extended attributes are used on constructs that don't allow them. r=qdot 2017-05-01 13:25:47 -04:00
John Dai 3fbf49822e Bug 1309147 - Part 1: Implement the support for CEReactions in WebIDL parser. r=bz
MozReview-Commit-ID: Dw0CMgzXKKy

--HG--
extra : rebase_source : 2254eae5076d4d51eff61d8ee1363075c3aeb13b
extra : histedit_source : 618b4e46eb6b5ac1791bd4f762a97373c6b8e2b3
2017-02-03 11:44:09 +08:00
Olli Pettay d7c9e40c86 Bug 1352746 - Rename ProbablyShortLivingObject to ProbablyShortLivingWrapper in webidl, r=qDot
--HG--
extra : rebase_source : 41c2aae34d1140881078aeb336e974394425b9c3
2017-04-11 00:01:29 +03:00
Boris Zbarsky a66c62ea91 Bug 1352996. Remove vestige of AvailableIn/CheckAnyPermissions/CheckAllPermissions from WebIDL.py. r=qdot
MozReview-Commit-ID: HsvhRefytXQ
2017-04-05 23:04:26 -04:00
kvark a38edf6b85 Bug 1348111 - Clarify the error message. r=smaug
--HG--
extra : rebase_source : dee38b43c0eb7470c2861e78c9d6bd1e653a2db7
2017-03-16 18:51:00 -04:00
Boris Zbarsky 46964f231f Bug 1330699 part 9. Rename "MozMap" to "record" in our IDL parser and IDL files. r=qdot
The key type is unused so far.

--HG--
rename : dom/bindings/parser/tests/test_mozmap.py => dom/bindings/parser/tests/test_record.py
2017-02-15 00:00:17 -05:00
Boris Zbarsky f096eee1f8 Bug 1330699 part 8. Split up PrimitiveOrStringType into PrimitiveType and StringType in the Web IDL parser. r=qdot 2017-02-15 00:00:07 -05:00
Boris Zbarsky c41dd5c904 Bug 1330699 part 6. Add some tests for distinguishability of unions. r=qdot 2017-02-15 00:00:05 -05:00
Boris Zbarsky c2ed802c58 Bug 1330699 part 5. Disallow mozmap-typed constants. r=qdot 2017-02-15 00:00:04 -05:00
Boris Zbarsky cb6b07df97 Remove bogus comments. Note that toJSON is no longer reserved in the spec as of <https://github.com/heycam/webidl/pull/293>. No bug, DONTBUILD. 2017-02-09 22:12:15 -05:00
Mike Shal 795f995ed4 Bug 1335796 - Move WebIDL parser tests out of 'make check'; r=dustin,Ms2ger
This test suite involves a bunch of python tests which don't require
configure or any generated binaries to run. We can split them out into a
Taskcluster linter type task to run directly on the source tree in
parallel with builds.

MozReview-Commit-ID: 9ux3rAuFXAY

--HG--
extra : rebase_source : 95378cd686644e34ea017c682d7384906b17d13a
2017-01-31 19:08:50 -05:00
Boris Zbarsky 9894e14428 Bug 1332713 part 2. Disallow [SameObject] Promise-typed attributes. r=qdot 2017-01-27 18:53:36 -05:00
Boris Zbarsky 94a230e52a Bug 1332713 part 1. Disallow Promise-typed attributes with setters. r=qdot 2017-01-27 18:53:36 -05:00
Boris Zbarsky 7547c36287 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 747c446db4 Backed out changeset f9ae7da00387 (bug 1333480) for bustage
CLOSED TREE
2017-01-25 10:44:16 +08:00
Boris Zbarsky 1586a2e95a 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 29f8528a73 Backed out changeset b8b06fdb30ce (bug 1333480) for build bustage a=backout
MozReview-Commit-ID: 7wCiW0N8tby

--HG--
extra : rebase_source : fa619c21ee25c58ab67336cc3c4a9d5692029e5c
2017-01-24 13:57:26 -08:00
Boris Zbarsky 20418bd1bf 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 b1b6ca681a Bug 1333117. We should ensure, at build-time, that partial interfaces are defined in the same file as the interface they extend, since our build system doesn't really support correct dep builds if they're placed in a different file. r=qdot 2017-01-24 16:11:30 -05:00
Boris Zbarsky 2973eff777 Bug 1330536 part 1. Add a CanOOM annotation, and the corresponding GetterCanOOM, SetterCanOOM annotations, to the IDL parser. These can be used in the cases when Throws/GetterThrows/SetterThrows can be used, to indicate that the only possible exception is NS_ERROR_OUT_OF_MEMORY. r=smaug 2017-01-17 23:52:13 -05:00
Boris Zbarsky 94a9f0d729 Bug 1323721 part 12. Create a separate IDLPromiseType; stop treating Promise as an interface altogether. r=qdot 2016-12-19 15:38:44 -08:00
Boris Zbarsky 6c78cc893a Bug 1323721 part 11. Make isInterface and isGeckoInterface test false for the isPromise() case. r=qdot 2016-12-19 15:38:44 -08:00
Boris Zbarsky 865e7c42eb Bug 1323721 part 5. Move Promise native-to-JS conversion out of the isGeckoInterface section. r=qdot 2016-12-19 15:38:43 -08:00
Boris Zbarsky 83b5a8468f 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 f74b8c3888 Bug 1323274. Disallow nullable Promise types. r=qdot 2016-12-16 14:06:54 -05:00
Edgar Chen 881cbd80bd 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 5e1b29b9c0 Backed out changeset f2a5fc3e8c4e (bug 1274159) 2016-12-14 13:27:22 +01:00
Edgar Chen da0139302c Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements; r=bz,wchen
MozReview-Commit-ID: 6egmavfTmFT

--HG--
extra : rebase_source : 07436a4b8dfc1960f0cc24b67b8cc5d1e2ffd5cd
2016-11-17 23:31:50 +08:00
Boris Zbarsky 099ef6f007 Bug 1315135. Remove the RegExp (and some Date) special casing from our dictionary conversions and Web IDL overload resolution. r=peterv 2016-11-23 22:57:29 -05:00
Boris Zbarsky 282d7c0569 Bug 1316619. Add a [NeedsCallerType] WebIDL annotation. r=bholley 2016-11-11 16:09:05 -05:00
Andrea Marchesini 8524257019 Bug 1290021 - Implement a prototype version of Houdini "Worklets Level 1" spec - part 2 - WorkletGlobalScope, r=smaug 2016-11-06 09:54:29 +01:00
Boris Zbarsky e1249e3f78 Bug 1021289 followup. Fix webidl parser tests to account for there being no more indexed deleters 2016-11-04 13:28:17 -04:00
Boris Zbarsky d5fd55b992 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 b4c8518aff Bug 1311362. Fix webidl member name collision checking with ancestor interfaces to not claim name collisions on totally unrelated names. r=qdot
Fixing this exposed the fact that the 'size' tests were passing quite accidentally, since we never added 'size' to the disallowed names sets.
2016-10-19 16:03:00 -04:00
Boris Zbarsky e158454b4e Bug 1309970. Add a way to return frozen arrays to chrome callers with a .contains defined on them, returning the same value as .includes. r=qdot 2016-10-13 22:14:26 -04:00
Boris Zbarsky 13a81b596c Bug 946906 part 7. Forbid using [Cached] or [StoreInSlot] with [NewObject]. r=bholley
This guarantees that an interface type returned from a [Cached] or [StoreInSlot]
getter must be wrappercached, because non-wrappercached things can only be
returned from [NewObject] getters or methods.
2016-10-10 18:16:26 -04:00
Boris Zbarsky 010d3de058 Bug 1307115. Improve error reporting on name collisions in webidl. r=qdot 2016-10-04 23:42:06 -04:00
Andrea Marchesini 47e3640d27 Bug 1297393 - Make passing of subject principals to webidl entry points explicit - part 1 - WebIDL [NeedsSubjectPrincipal], r=ehsan, r=peterv 2016-09-29 08:55:19 +02:00
Boris Zbarsky 37ce88ab1c Bug 1298410. Remove support for IDL arrays, since those are not a thing anymore. r=peterv 2016-09-01 21:31:23 -04:00
Boris Zbarsky 1e5fa72546 Bug 1297756 part 1. Improve the exception thrown when an invalid default value (right type but wrong value) is used for a union. r=mystor 2016-08-30 12:55:15 -04:00
Michael Layzell 164944c0c0 Bug 1292293 - Part 1: Update the WebIDL Parser to allow default values for ByteString, r=bz
--HG--
extra : rebase_source : 8d031a5a34e4bb75a3432e23e625370cbcea0dae
2016-08-05 17:46:54 -04:00
Edgar Chen 3c4e6a930e Bug 1286548 - SecureContext makes sense for interface with NoInterfaceObject, since it is also propagated to interface members; r=bz
MozReview-Commit-ID: K7Z3r2YRt7M

--HG--
extra : rebase_source : 5ebb9cd09de4a42690bac6cd04208f108da50731
2016-07-14 17:48:20 +08:00
Alexandre Lissy 6798f02654 Bug 1286530 - Clean AvailableIn, CheckAnyPermissions and CheckAllPermissions from WebIDL r=bz,fabrice
MozReview-Commit-ID: 6EQfBM09xUE

--HG--
rename : dom/contacts/tests/test_contacts_cache.xul => dom/contacts/tests/test_contacts_a_cache.xul
rename : dom/contacts/tests/test_contacts_shutdown.xul => dom/contacts/tests/test_contacts_a_shutdown.xul
rename : dom/contacts/tests/test_contacts_upgrade.xul => dom/contacts/tests/test_contacts_a_upgrade.xul
rename : dom/mobilemessage/tests/mochitest/mochitest.ini => dom/mobilemessage/tests/mochitest/chrome.ini
extra : rebase_source : 5f708f2a927fafff66626367ef07080785ba9f55
2016-04-21 15:48:59 +02:00
James Graham 5eb8c8dd4e Bug 1277039 - Fix output of |mach webidl-parser-test| to be less verbose by default, r=gps
MozReview-Commit-ID: AiMiksDzUdt

--HG--
extra : rebase_source : 3125cd305459a8080c3b266b07c199937bc36c5c
2016-06-06 17:52:24 +01:00
Boris Zbarsky 5b496a675c Bug 1277401 part 3. Add IDL parser support for [Func] on dictionary members. r=peterv 2016-06-07 10:34:54 -04:00
Cameron McCormack e3ca5e1f4a Bug 1141916 - Part 2: Support [ChromeOnly] on dictionary members. r=peterv 2016-06-02 12:14:24 -04:00
Cameron McCormack fe6930a402 Bug 1141916 - Part 1: Store extended attributes on IDLArguments. r=peterv 2016-06-02 12:10:56 -04:00
Boris Zbarsky 783e8cc098 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 98b4dca6e9 Bug 1270601 part 2. Add codegen support for IDL namespaces. r=peterv 2016-06-02 10:34:39 -04:00
Boris Zbarsky 7e52059153 Bug 1270601 part 1. Add Web IDL parser support for IDL namespace syntax. r=peterv 2016-06-02 10:34:39 -04:00