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

530 Коммитов

Автор SHA1 Сообщение Дата
ziyunfei e1db0f779e Bug 1102219 - Part 4: Replace `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
Andrea Marchesini 789ad8312d Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan 2015-04-22 08:29:18 +02:00
Boris Zbarsky 806a236c64 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 a1ddbe8bcb 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 9aaa3c401c Bug 1153516. Stop using loose is() comparisons in test_dom_xrays.html. r=bholley 2015-04-13 19:36:44 -04:00
Jason Orendorff e55a1c46a2 Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv.
--HG--
extra : rebase_source : 6ed902dfed6a7678f813fc21a4affef798484f1a
extra : source : 06dbe25231c283191c1cc4fea66c1c76add2c91c
2015-03-26 06:13:18 -05:00
Wes Kocher 2f6554bf7c Backed out 20 changesets (bug 1138499, bug 1148750, bug 1149563, bug 1148652, bug 1123875, bug 1145636, bug 1147660, bug 1148568, bug 1142828) for talos other timeouts CLOSED TREE
Backed out changeset 3fc49391f7fe (bug 1148750)
Backed out changeset 75e867c1c39e (bug 1148750)
Backed out changeset 7f6a4e3976f0 (bug 1148750)
Backed out changeset 91d726011835 (bug 1149563)
Backed out changeset fc7c3cf0e526 (bug 1148652)
Backed out changeset 35a01c7e0f8d (bug 1148652)
Backed out changeset 3125cc5a7a65 (bug 1148652)
Backed out changeset a9f10724b83b (bug 1148568)
Backed out changeset 87132a806ab0 (bug 1147660)
Backed out changeset e6b410c7b847 (bug 1147660)
Backed out changeset c350fe54d9c0 (bug 1147660)
Backed out changeset e4b971996b94 (bug 1147660)
Backed out changeset f221db19fb75 (bug 1147660)
Backed out changeset c4599f0cff00 (bug 1142828)
Backed out changeset c7388a9c3935 (bug 1138499)
Backed out changeset 9b51b38317d6 (bug 1138499)
Backed out changeset ad243a3cd06f (bug 1138499)
Backed out changeset fafda276abd9 (bug 1138499)
Backed out changeset 0a00470fdc2a (bug 1145636)
Backed out changeset 06dbe25231c2 (bug 1123875)

--HG--
extra : amend_source : be3290b09642feacd7f517f1e354126b2e905998
2015-04-01 19:17:45 -07:00
Jason Orendorff 68464c731e Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv.
--HG--
extra : rebase_source : 3da66c3cd20099f907f58cdc0de2ce31e3bf95a8
2015-03-26 06:13:18 -05:00
Nick Fitzgerald 2edf06beb3 Bug 1038238 - Part 0: Make js/src/vm/SavedStacks.h use 1-based column numbers,
like js::ComputeStackString and other browsers do; r=jorendorff

https://bugzilla.mozilla.org/show_bug.cgi?id=1038238
2015-03-27 13:08:46 -07:00
Tom Schuster 2de182147c Bug 837630 - Stop hiding __proto__ from O.getOwnPropertyNames. r=Waldo,peterv,past 2015-03-19 17:42:15 +01:00
Boris Zbarsky d0ebde3bb7 Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp.  The rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Jonathan Griffin d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Paolo Amadini e5306bdeb5 Bug 1140472 - Set an async stack when invoking promise handlers. r=bz 2015-03-09 12:36:29 +00:00
Ehsan Akhgari 0857b0109c Bug 1050456 - Part 1: Prevent prerendered pages from showing the slow script dialog; r=bzbarsky 2015-03-04 01:30:47 -05:00
Boris Zbarsky 746d0e6061 Bug 1133760 part 2. Get rid of unforgeable holders; just store unforgeable properties for DOM proxies directly on the expando object. r=peterv 2015-02-26 09:40:07 -05:00
Boris Zbarsky 5c011f5e57 Bug 1134955. Be more careful with how we stringify property ids for error message reporting. r=jorendorff 2015-02-20 14:16:26 -05:00
Boris Zbarsky b864faa155 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 fc8317f7a4 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 ff62f8c4c5 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 3d347c5027 Bug 1127206. Don't try to do binding UnwrapArgImpl on worker threads. It can't do anything useful there. r=peterv 2015-01-30 13:54:43 -05:00
Tooru Fujisawa 22c2568415 Bug 1069416 - Part 7: Remove JS_HAS_SYMBOLS from dom. r=smaug 2015-01-28 13:06:38 +09:00
Ehsan Akhgari 3ccf064efa Bug 1069719 follow-up: Fix indentation
DONTBUILD
2015-01-26 11:23:49 -05:00
Ehsan Akhgari 866d758e54 Bug 1069719 - Abort the execution of scripts when a prerendered page calls an IDL blacklisted function; r=bzbarsky 2015-01-26 11:02:56 -05:00
Boris Zbarsky cbb271e250 Bug 1107443 part 2. Stop defining non-configurable properties on the window in dom and xpconnect JS files. r=peterv 2015-01-23 09:54:14 -05:00
Boris Zbarsky 0221e36996 Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv 2015-01-15 17:39:01 -05:00
Boris Zbarsky 01f8cea46f Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv 2015-01-15 17:39:01 -05:00
Wes Kocher 7777c308be Backed out 4 changesets (bug 1118978) for b2g build bustage on a CLOSED TREE
Backed out changeset e0ecb643aa2b (bug 1118978)
Backed out changeset bf31c6661b2c (bug 1118978)
Backed out changeset 5a4839c2fd53 (bug 1118978)
Backed out changeset 40b84c88ed16 (bug 1118978)
2015-01-15 15:52:41 -08:00
Boris Zbarsky 6a93d5c443 Bug 1107953 part 5. Add tests for promise rejections with content-side DOMExceptions, and fix the promise code so those tests actually pass. r=bholley 2015-01-15 17:39:02 -05:00
Boris Zbarsky 24431c3a52 Bug 1107953 part 3. Make Promise pass in their object compartment when calling their various callbacks. r=bholley
--HG--
rename : dom/bindings/test/test_exception_options_from_jsimplemented.html => dom/bindings/test/test_promise_rejections_from_jsimplemented.html
2015-01-15 17:39:02 -05:00
Boris Zbarsky 7d49fcea6d Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv 2015-01-15 17:39:01 -05:00
Boris Zbarsky b2b9e0773f Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv 2015-01-15 17:39:01 -05:00
Peter Van der Beken dc3a33aa88 Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
--HG--
extra : rebase_source : 54a1e408aec6c7485152f18693047b2992251aff
2015-01-08 22:56:42 +01:00
Ehsan Akhgari 4354953b4f Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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 MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Boris Zbarsky bad2ee9b82 Bug 1117167. Make the generated implementation classes for JS-implemented bindings store an nsIGlobalObject, not an nsPIDOMWindow, so we can use them in sandboxes. r=peterv 2015-01-08 11:57:19 -05:00
Boris Zbarsky 8fd98d4057 Bug 1107592 part 2. Allow chrome JS to directly throw content DOMExceptions that will propagate out to the web script. r=peterv 2015-01-02 17:08:33 -05:00
Boris Zbarsky 58dedbbec6 Bug 1117131. Output the JS hooks for our cache-clearing stuff for [Pure] properties on JS-implemented objects even if we have no interface object, since these live on instances. r=mccr8 2015-01-02 17:08:33 -05:00
Jan-Ivar Bruaroey f75be80939 Bug 1091898 - update test of exceptions from jsimplemented. r=jesup 2014-12-08 10:18:38 -06:00
Boris Zbarsky 76e076eb08 Bug 1092737 part 1. Update TextEncoder to various spec changes. r=emk 2014-11-21 14:58:45 -05:00
Andrea Marchesini 9d30f59efd Bug 1077393 - Rename ScalarValueString to USVString. r=smaug
--HG--
rename : dom/bindings/parser/tests/test_scalarvaluestring.py => dom/bindings/parser/tests/test_usvstring.py
rename : dom/bindings/test/test_scalarvaluestring.html => dom/bindings/test/test_usvstring.html
2014-11-20 12:58:00 +01:00
Jason Orendorff 2cacf236ed Bug 918828, part 1 - Change iteration code to call iterable[Symbol.iterator]() rather than iterable["@@iterator"](). r=Waldo with earlier review work by nbp.
--HG--
extra : rebase_source : 5780eed342b1780570650d140c7f14f966b7f1e1
2014-07-01 21:01:21 -05:00
Boris Zbarsky 96fe2231a2 Bug 1084001. Set the .name of DOM interface objects to the name of the interface. r=peterv 2014-10-25 00:50:28 -04:00
Peter Van der Beken d76c717d3c Bug 1068740 - Consider putting union types in the binding files where they're used. r=bz.
--HG--
extra : rebase_source : 7e0b1e2f60757b7758704dab3672ee829f3e4085
2014-10-01 20:43:26 +02:00
Jason Orendorff 3b9169d831 Bug 1079640 - Fix some tests that fail when ES6 symbols are disabled. r=bz. DONTBUILD.
--HG--
extra : rebase_source : 7544ce2f0b8e2e59050ed87d7aea757e4702c834
extra : amend_source : 00f15dbe7b3f700fe3f6debede75c3b9a272e504
2014-10-08 11:12:11 -05:00
Boris Zbarsky 2396718a16 Bug 1066432 followup. Remove bogus alerts from the test. 2014-09-30 22:14:27 -04:00
Boris Zbarsky 9804f71306 Bug 1066432. Update ForOfIterator to the changes in Web IDL's handling of sequences as iterables. We now commit to an iterable if we get a non-undefined value for the Symbol.iterator property, not just if we get a callable value. r=jorendorff 2014-09-30 21:26:28 -04:00
Peter Van der Beken 3d173cc6d6 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, add tests. r=bholley.
--HG--
extra : rebase_source : cab515c373bd87a0cfbf05041be246c112c224e2
2014-09-26 16:29:31 +02:00
Boris Zbarsky cc0da71edc 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
Boris Zbarsky 6c258577ab Bug 1071615. Make codegen fail when "A implements B" appears on a Web IDL file different from the file A is defined in. r=khuey 2014-09-24 09:11:29 -04:00
Boris Zbarsky 9b823d6509 Bug 958887 part 3. Fix codegen support for IDL attribute names and methods with dashes in them. r=peterv 2014-09-19 22:58:27 -04:00
Boris Zbarsky 895d364e1c Bug 958887 part 1. Add support for doing BinaryName annotations in IDL. r=peterv 2014-09-19 22:58:26 -04:00
Boris Zbarsky 41fde7f472 Bug 1066776. Make variadic dictionary arguments work. r=khuey 2014-09-19 00:02:33 -04:00
Boris Zbarsky 9fca2ef9de Bug 843272. Uncomment tests that should not be commented out. r=mccr8 2014-09-19 00:02:30 -04:00
Peter Van der Beken 14fafa0ab2 Bug 849567 - Automatically handle raw and already_AddRefed return values in Paris bindings and remove resultNotAddRefed, remove instances of non-refcounted sequence return type. r=bz.
--HG--
extra : rebase_source : 1388e0d6f971d52debb745a448a9a5524ceee25d
2014-08-28 00:43:55 +02:00
Boris Zbarsky 935648f51a Bug 1063889. Fix the handling of sequences of wrapper types in unions. r=khuey 2014-09-08 11:28:57 -04:00
Boris Zbarsky 3e0cc1e8d6 Back out bug 1063889 (rev 2f5df573f4a3) because windowsx.h defines GetFirstChild/GetNextSibling macros, so will make the world blow up if you include it anywhere near nsIDOMNode/nsINode. r=bustage 2014-09-08 12:25:17 -04:00
Boris Zbarsky 5f46861110 Bug 1063889. Fix the handling of sequences of wrapper types in unions. r=khuey 2014-09-08 11:28:57 -04:00
Boris Zbarsky d14c26daf5 Bug 1057541 part 3. Change codegen to support required dictionary members. r=khuey 2014-09-05 14:28:43 -04:00
Mike Hommey ed70c5f377 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Ehsan Akhgari 1b1d6ffebf Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Boris Zbarsky be14202b3d Bug 929609 part 2. Fix passing of typed arrays to JS-implemented WebIDL to actually work. r=peterv 2014-08-25 15:07:45 -04:00
Boris Zbarsky 30b87a2b87 Bug 929609 part 1. Rename "jsObjectsArePtr" to "typedArraysAreStructs" (and invert its meaning, of course), since that's what it's really used for nowadays. r=peterv 2013-09-30 10:30:06 -04:00
Peter Van der Beken 63152eee22 Bug 1041731 - Unforgeable Xrayed methods aren't getting cached on the holder. r=bholley.
--HG--
extra : rebase_source : 9e86ba2d864e6894cc10722ddaf83ded41d88e42
2014-08-22 11:25:07 +02:00
Andrew McCreight 91d1b64fd1 Bug 963382, part 2 - Add chrome JS function for clearing cache. r=bz 2014-08-21 13:56:11 -07:00
Roshan Vidyashankar 2d98c38825 Bug 1038993 - Add UnsafeInPrerendering extended attribute to WebIDL. r=peterv 2014-08-20 16:32:19 -07:00
Bobby Holley b54ea00f0b Bug 1036214 - Tests. r=bz
This whole test setup comes from bug 923904, so some of the things it's testing
need to be rejiggered (like the checkGlobal stuff).
2014-08-19 18:12:15 -07:00
Andrew McCreight e2153edd1d Bug 1048659 - Return the union we construct in a JS callback. r=peterv 2014-08-19 08:41:26 -07:00
Boris Zbarsky 3545a68bc5 Bug 1048437. Allow dictionary members with '-' in the name. r=khuey 2014-08-04 15:02:58 -04:00
Boris Zbarsky b1c1e22da4 Bug 1043690 part 2. Change the codegen for DOM proxies to ignore named props when looking up property descriptors on [[Set]]. r=efaust 2014-08-01 23:37:14 -04:00
Ben Kelly 8866034d70 Bug 1025183 P5 Add tests for ScalarValueString. r=bz 2014-08-01 16:23:48 -04:00
Ben Kelly 93f746a2f6 Revert bug 1025183 (revs 69373df15281, dd6d84edf08e, 728a5d18bcd9, 71babe0bc84b, c60f9054acf6) for bustage. r=me 2014-08-01 14:10:40 -04:00
Ben Kelly a38c3c73df Bug 1025183 P5 Add tests for ScalarValueString. r=bz 2014-08-01 13:57:00 -04:00
Boris Zbarsky fa2d6b3f15 Bug 1041646. Don't assume mStack is non-null in JSStackFrame, since people sometimes operate on them after unlinking. r=khuey 2014-07-26 01:41:18 -04:00
Andrea Marchesini 3d909148b5 Bug 660237 - implement nsIDOMStorage with a proxy, r=bzbarsky, r=mayhemer 2014-07-23 01:07:12 -04:00
Boris Zbarsky eafe8cdc8f Bug 1021066. Make named setters work even for non-overridebuiltins bindings over Xrays. r=bholley,jorendorff 2014-07-23 01:06:33 -04:00
Jan-Ivar Bruaroey 0cb75e0d47 Bug 1033833 - unbreak test_exceptions_from_jsimplemented.html. r=bz 2014-07-21 06:53:15 +02:00
Ms2ger 3b4a60ee80 Bug 1034204 - Implement unforgeable methods; r=bz 2014-07-04 15:02:10 +02:00
Ben Kelly 69fff9e05a Bug 1029812 Make webidl Sequence and MozMap distinguishable. r=bz 2014-06-25 10:25:09 -07:00
Boris Zbarsky e62870aedd Bug 1027667. Allow MozMap in unions. r=peterv 2014-06-23 16:03:58 -04:00
Boris Zbarsky ddcf724011 Bug 767924 part 4. Allow [] as a default value for sequences in unions. r=peterv 2014-06-23 16:03:58 -04:00
Boris Zbarsky 764c9e0b63 Bug 767924 part 3. Allow sequences in unions. r=peterv 2014-06-23 16:03:57 -04:00
Boris Zbarsky f8dc563a90 Bug 1026080 part 2. Add binding codegen support for [] as a default value for sequence arguments and dictionary entries. r=khuey 2014-06-23 16:03:57 -04:00
Nick Fitzgerald 98364a70c0 Bug 1000967 - Add source notes for |new| expression and function calls to improve source maps and debugging. r=ejpbruel 2014-06-20 13:09:00 -04:00
Ben Kelly 840e5ff4b5 Bug 1027256 P2 Add test case for ByteString union type. r=bz 2014-06-18 20:22:09 -04:00
Ben Kelly 85647df24b Bug 1025973 - Part 2: Do not pass JSContext to static webidl methods in non-worker case. r=bz 2014-06-16 12:52:00 -04:00
Boris Zbarsky dfe8c38082 Bug 1009675 part 3. Return WebIDL 'object' values as handles. r=peterv 2014-06-11 16:26:52 -04:00
Boris Zbarsky bc1e511e33 Bug 1009675 part 2. Return WebIDL 'any' values as handles. r=peterv 2014-06-11 16:26:52 -04:00
Boris Zbarsky c61e88da09 Bug 1007878 part 5. Implement callback codegen for MozMap. r=khuey 2014-05-23 17:32:39 -04:00
Boris Zbarsky e7ef8d309c Bug 1007878 part 4. Add C++-to-JS conversion for MozMap. r=khuey 2014-05-23 17:32:38 -04:00
Boris Zbarsky 02915bc252 Bug 1007878 part 3. Add JS-to-C++ conversion for MozMap. r=khuey 2014-05-23 17:32:38 -04:00
Bobby Holley 72ff075307 Bug 992958 - Fix test that depends on the order in which properties are enumerated. r=luke 2014-05-23 16:53:02 -07:00
Wes Kocher 5b516d6682 Backed out 5 changesets (bug 1007878) for b2g build bustage r=khuey
Backed out changeset ee3bb06075f7 (bug 1007878)
Backed out changeset ab3dd51be3cd (bug 1007878)
Backed out changeset aa53ba4e64b8 (bug 1007878)
Backed out changeset ff6fd8187ff3 (bug 1007878)
Backed out changeset d631378463ac (bug 1007878)
2014-05-23 15:10:51 -07:00
Boris Zbarsky f99ba38a95 Bug 1007878 part 5. Implement callback codegen for MozMap. r=khuey 2014-05-23 17:32:39 -04:00
Boris Zbarsky 8a365e4f4d Bug 1007878 part 4. Add C++-to-JS conversion for MozMap. r=khuey 2014-05-23 17:32:38 -04:00
Boris Zbarsky 932dc0b698 Bug 1007878 part 3. Add JS-to-C++ conversion for MozMap. r=khuey 2014-05-23 17:32:38 -04:00
Boris Zbarsky 9c3392475d Bug 843840 part 2. Add a way to ask DOM proxies for only their enumerable property names, and use that in the enumerate hook. r=peterv 2014-04-15 22:58:44 -04:00
Boris Zbarsky ad59a21b39 Bug 843840 part 1. Add a way to ask DOM proxies with a named getter whether a property is enumerable or not and use that information in getOwnPropertyDescriptor. r=peterv 2014-04-15 22:58:44 -04:00
Boris Zbarsky 79dab91ff6 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky 1da745b30f Bug 985536. Go back to allowing optional any with no default value in WebIDL, but treat it as having a default value of undefined. r=khuey 2014-04-03 23:32:11 -04:00
Mike Hommey cb1a0d7337 Bug 989522 - Remove LIBXUL_LIBRARY from the moz.build sandbox. r=mshal 2014-04-02 11:52:04 +09:00
Neil Rashbrook cf9b85f5a7 Bug 514280 Consistently declare and define IID accessors r=bsmedberg 2014-03-28 08:45:02 +00:00
Boris Zbarsky dfbb146c5c Bug 987110. Disallow dictionary members that would shadow Object.prototype properties. r=bholley 2014-03-25 22:48:46 -04:00
Boris Zbarsky f64c8624be Bug 983228. Add a sequence tracer for sequences of unions. r=baku 2014-03-14 14:51:22 -04:00
Boris Zbarsky 54faddbaf7 Bug 983264. Include callback headers in UnionTypes.h when a callback is used in a union. r=mccr8 2014-03-14 14:51:06 -04:00
Vaibhav Agarwal 64e20261db Bug 971132 - B2G mochitests should use the new manifest format; r=jmaher 2014-03-06 13:42:43 -05:00
Boris Zbarsky 720591b1f5 Bug 874787. Add support for legacycaller on proxy bindings. r=efaust,peterv 2014-03-05 22:48:03 -05:00
Boris Zbarsky 7ee245a69d Bug 970764. Remove support for non-optional "any" arguments values, since "any" needs to be able to include undefined anyway. Have "any" arguments and dictionary entries default to undefined unless the IDL explicitly says "= null". r=khuey 2014-02-19 10:13:38 -05:00
Ehsan Akhgari 9df66916f4 Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
Bobby Holley 4de0b7d455 Bug 968335 - Tests. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley 5b2f9328e7 Bug 923904 - Tests. r=mccr8
We land these before actually landing bug 923904, because we want to build the
tests for bug 968335 on top of the same infrastructure.
2014-02-14 22:36:43 -08:00
Phil Ringnalda 4d898ac6fc Back out 4fc776ee6852:6a0ebe4ddd01 (bug 968335) and e7d697004921 (bug 923904) for b2g emulator build bustage
CLOSED TREE
2014-02-14 18:35:30 -08:00
Bobby Holley 4ea924c950 Bug 968335 - Tests. r=bz 2014-02-14 16:13:38 -08:00
Bobby Holley 2ef77bb4c3 Bug 923904 - Tests. r=mccr8
We land these before actually landing bug 923904, because we want to build the
tests for bug 968335 on top of the same infrastructure.
2014-02-14 16:13:37 -08:00
Boris Zbarsky c0e5c60b65 Bug 965927. [StoreInSlot] and [Cached] getters should use the reflector as the scope obj when wrapping the return value. r=peterv 2014-02-06 21:08:29 -05:00
Boris Zbarsky 5f98263d40 Bug 958667 part 5. Hook up AvailableIn for interface members. r=peterv 2014-02-05 13:38:17 -05:00
Boris Zbarsky 4ecbf2387a Bug 958667 part 4. Hook up an AvailableIn extended attribute for interfaces. r=peterv 2014-02-05 13:38:17 -05:00
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