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

1716 Коммитов

Автор SHA1 Сообщение Дата
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
Ryan VanderMeulen e8016b0826 Merge m-c to inbound. 2013-10-14 14:43:11 -04:00
Jan-Ivar Bruaroey f077322b14 Bug 917328: Second, convert PeerConnectionImpl and PeerConnectionObserver to webidl. r=bz, rjesup 2013-10-14 12:53:56 -04:00
Boris Zbarsky 5e0f2169f4 Bug 925495 part 1. Move DOMString out to a separate header. r=smaug 2013-10-11 12:28:23 -04:00
Ryan VanderMeulen dbc95f00f4 Backed out changesets 46029c9fbfe4 and 6114164c3d1b (bug 925495) for OSX (at least) crashes. 2013-10-11 13:38:28 -04: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 0b96fd507b Bug 882541 part 1. Don't require all arguments after an optional argument to be optional. r=khuey 2013-10-11 12:28:23 -04:00
Boris Zbarsky a78b0cc424 Bug 925495 part 1. Move DOMString out to a separate header. r=smaug 2013-10-11 12:28:23 -04:00
Ryan VanderMeulen c430ecd99d Merge m-c to inbound.
CLOSED TREE
2013-10-09 15:34:02 -04:00
Boris Zbarsky 0630264884 Bug 817194 followup to work around emergent namespace+template MSVC bugginess: it was seeing mozilla::dom::detail in TypeTraits.h because it looks at namespaces at template _instantiation_, not declaration. Or something. Leading, of course, to a CLOSED TREE. 2013-10-09 14:12:17 -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
Vicamo Yang 62e008f3e1 Bug 922531: remove dummy entries from dom/bindings/Bindings.conf. r=Ms2ger 2013-10-09 14:32:45 +08:00
Reuben Morais f707258233 Backed out 2 changesets (bug 899574) for breaking Gaia tests
--HG--
rename : dom/tests/mochitest/notification/desktop-notification/create_notification.html => dom/tests/mochitest/notification/create_notification.html
rename : dom/tests/mochitest/notification/desktop-notification/notification_common.js => dom/tests/mochitest/notification/notification_common.js
rename : dom/tests/mochitest/notification/desktop-notification/test_basic_notification.html => dom/tests/mochitest/notification/test_basic_notification.html
rename : dom/tests/mochitest/notification/desktop-notification/test_basic_notification_click.html => dom/tests/mochitest/notification/test_basic_notification_click.html
rename : dom/tests/mochitest/notification/desktop-notification/test_leak_windowClose.html => dom/tests/mochitest/notification/test_leak_windowClose.html
rename : dom/tests/mochitest/notification/desktop-notification/test_notification_tag.html => dom/tests/mochitest/notification/test_notification_tag.html
rename : dom/tests/mochitest/notification/desktop-notification/test_system_principal.xul => dom/tests/mochitest/notification/test_system_principal.xul
2013-10-07 14:41:13 -04:00
Michael Henretty 46d59dbe62 Bug 899574 - Part 2, add Notification.get() with notification storage. r=bent
--HG--
rename : dom/tests/mochitest/notification/create_notification.html => dom/tests/mochitest/notification/desktop-notification/create_notification.html
rename : dom/tests/mochitest/notification/notification_common.js => dom/tests/mochitest/notification/desktop-notification/notification_common.js
rename : dom/tests/mochitest/notification/test_basic_notification.html => dom/tests/mochitest/notification/desktop-notification/test_basic_notification.html
rename : dom/tests/mochitest/notification/test_basic_notification_click.html => dom/tests/mochitest/notification/desktop-notification/test_basic_notification_click.html
rename : dom/tests/mochitest/notification/test_leak_windowClose.html => dom/tests/mochitest/notification/desktop-notification/test_leak_windowClose.html
rename : dom/tests/mochitest/notification/test_notification_tag.html => dom/tests/mochitest/notification/desktop-notification/test_notification_tag.html
rename : dom/tests/mochitest/notification/test_system_principal.xul => dom/tests/mochitest/notification/desktop-notification/test_system_principal.xul
2013-10-02 18:27:53 -07:00
Bobby Holley 197eaa4082 Bug 921448 - Remove FunctionProxyObjects. r=ejpbruel
\o/
2013-10-04 13:29:34 +02: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 4c35b806f8 Merge m-c to inbound. 2013-10-03 11:09:17 +02:00
Ms2ger f4153f40d4 Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02: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
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
Ben Turner 866302e69b Bug 643325 - Implement SharedWorker. r=khuey.
--HG--
extra : transplant_source : %D6%8C%9Ajc%3C%F0%0E%DB%C6%7E2%AA%97%B8%AA%B2%7EY%B6
2013-06-05 07:04:23 -07:00
Robert O'Callahan 20613a55bc Bug 916520. Rename nsClientRect(List) to mozilla::dom::DOMRect(List). r=khuey
--HG--
rename : content/html/content/src/nsClientRect.cpp => content/base/src/DOMRect.cpp
rename : content/html/content/src/nsClientRect.h => content/base/src/DOMRect.h
rename : dom/webidl/ClientRect.webidl => dom/webidl/DOMRect.webidl
rename : dom/webidl/ClientRectList.webidl => dom/webidl/DOMRectList.webidl
extra : rebase_source : ebe27ef21b38f7df5065f37b971508b740c8cf3c
2013-09-20 22:21:03 +12:00
Ryan VanderMeulen 18fe7ab8b2 Backed out changesets 6d72b823b67f and acdff324d588 (bug 907077) for ASAN debug jit-test failures. 2013-10-01 16:18:39 -04:00
Andy Wingo 28a193c95f Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden
--HG--
extra : rebase_source : 93c5b9d6a28a42468d9ca9ac7da3b4e1b6d92820
2013-10-01 06:25:00 +02:00
Andrew McCreight e50d55ac19 Bug 920840 - Crash when JS-implemented WebIDL's init method returns a value other than undefined. r=bz 2013-09-26 16:46:42 -07: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
Wesley Chalmers bdf4fdd08d Bug 891537. WebIDL now includes 2**53 and -2**53 as valid values for long long (and for unsigned long long, in the case of 2**53). r=bzbarsky 2013-09-30 10:37:28 -04:00
Boris Zbarsky 1838da77e2 Bug 921553. Fix some binding rooting hazards that have popped up. r=peterv 2013-09-30 10:29:10 -04: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
Kyle Huey cb84165118 Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz 2013-09-30 12:15:37 +08:00
Kyle Huey 12f83a26b2 Back out bug 919457 for build bustage. r=me 2013-09-30 10:41:23 +08:00
Kyle Huey c16e95e7e4 Backed out changeset db16370f7cce 2013-09-30 10:39:33 +08:00
Kyle Huey 234d283612 Bug 919457: Followup to fix bustage. r=me 2013-09-30 10:11:20 +08:00
Kyle Huey 42dfe0a70f Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz 2013-09-30 09:37:26 +08:00
Jan Varga 01428648b0 Bug 832883 - Move IDBKeyRange to WebIDL and define indexedDB/IDBKeyRange in all the spots. r=khuey,bent (initial work done by Ms2ger) 2013-09-28 13:25:46 +02:00
Olli Pettay 3b5f032268 Bug 637248, Make Event.isTrusted Unforgeable, r=bz
--HG--
extra : rebase_source : 3edd919c6dac839d6082c1c73de88f9ba2d22146
2013-09-28 13:27:29 +03:00
Ryan VanderMeulen 0c0c37197f Backed out changeset 6d0b41d53c32 (bug 920840) for B2G mochitest-3 timeouts.
CLOSED TREE
2013-09-27 18:00:59 -04:00
Andrew McCreight dda25a1f89 Bug 920840 - Crash when JS-implemented WebIDL's init method returns a value other than undefined. r=bz 2013-09-26 16:46:42 -07:00
Gregory Szorc d03c8a0359 Bug 921070 - Remove precompile tier; r=glandium
It made sense at the time. We now have inverted tiers and will soon have
derecursified building. This doesn't make sense any more.
2013-09-26 16:05:10 -07:00
Nathan Froyd 34fa38c350 Bug 907789 - part 3 - build dom/bindings/ in "unified" mode; r=gps 2013-09-23 13:17:41 -04:00
Andy Wingo c535958dc3 Bug 920433 - Improve API support for self-hosted functions. r=till, r=bz 2013-09-26 10:11:38 -04:00
Boris Zbarsky df07b87d70 Bug 920730. Output the WebIDL .deps files in a consistent order. r=glandium 2013-09-26 00:05:00 -04:00
Boris Zbarsky eff308009e Bug 918011 part 4. Support dictionaries in unions. r=smaug 2013-09-26 00:05:00 -04:00
Boris Zbarsky 27c2ab7119 Bug 918011 part 3. Get rid of isInOwningUnion: it's equivalent to another isMember value. 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 a22f746363 Bug 918011 part 1. Move RootedDictionary into its own header. r=smaug
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/RootedDictionary.h
2013-09-26 00:04:59 -04:00
Boris Zbarsky db4d6d4736 Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky c80929513e Bug 919603 part 1. Introduce support for the [Global] extended attribute. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky 356992b3e5 Bug 920125. getOwnPropertyDescriptor on Xrays for DOM interface and prototype objects should actually work. r=peterv 2013-09-25 14:38:30 -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 d7f8928b36 Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky 3f8499abae Bug 919603 part 1. Introduce support for the [Global] extended attribute. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky e451470386 Bug 920125. getOwnPropertyDescriptor on Xrays for DOM interface and prototype objects should actually work. r=peterv 2013-09-25 14:38:30 -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
Peter Van der Beken d0b24c7ccf Bug 920196 - Make QueryInterface opt-in for WebIDL interfaces. r=bz.
--HG--
extra : rebase_source : 4cf7f9dc90f234dd663da05f27c0dc9484c7c0e1
2013-09-24 21:37:53 +02:00
Boris Zbarsky e587f2bc79 Bug 920209. Use nsAutoString in DOMString, to reduce allocations. r=smaug 2013-09-24 22:56:18 -04:00
Jan Varga 43d3cafd1b Bug 919268 - Add codegen for worker-only WebIDL callbacks. r=bz 2013-09-24 21:32:01 +02:00
Dan Gohman 4d985209ed Bug 918023 - SpiderMonkey: Const-qualify various static variables. r=njn 2013-09-24 08:21:22 -07:00
Ryan VanderMeulen fe96ecc1e3 Backed out changeset 2c3d1c9241d7 (bug 918023) for Windows debug TestEndian failures.
CLOSED TREE
2013-09-24 14:09:15 -04:00
Dan Gohman 69a7a0d34e Bug 918023 - SpiderMonkey: Const-qualify various static variables. r=njn 2013-09-24 08:21:22 -07:00
Boris Zbarsky 283a0900a5 Bug 919705. Don't ever claim that jsImplemented things are single-operation interfaces. r=mccr8 2013-09-23 23:11:45 -04:00
Boris Zbarsky 2e9b983c1d Bug 862627 part 2. Rip out some now-dead codegen code. r=smaug 2013-09-23 20:25:17 -04:00
Boris Zbarsky 48946a9621 Bug 862627 part 1. Switch EventListener to WebIDL codegen. r=smaug 2013-09-23 20:25:17 -04:00
Ehsan Akhgari 7233ba7103 Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg 2013-09-23 13:25:00 -04:00
Rick Eyre 8162fa0132 Bug 917945 - Part 1: Expose TextTrackRegion* as VTTRegion*. r=rillian, r=bz
--HG--
rename : dom/webidl/TextTrackRegion.webidl => dom/webidl/VTTRegion.webidl
rename : dom/webidl/TextTrackRegionList.webidl => dom/webidl/VTTRegionList.webidl
2013-09-20 14:42:35 -04:00
Kyle Huey b7e9e474ac Bug 914014: Use WrapObject to wrap nsIExceptions rather than manual XPConnect gunk. r=bz 2013-09-23 11:35:09 +08:00
Boris Zbarsky 1397956620 Bug 918450. Back out the fix for bug 911333, since trace hooks are in fact used in workers. r=khuey 2013-09-20 11:15:39 -04:00
Peter Van der Beken ff630d2e58 Bug 912955 - Remove some implicitJSContext annotations. r=bz.
--HG--
extra : rebase_source : 406dd7104924cb6767b2a6cbb0d05afae493ba52
2013-08-23 11:22:29 +02:00
Boris Zbarsky 7132b087bf Bug 917958 part 2. Simplify our various typeNeedsCx stuff, now that it's the same on workers and mainthread. r=smaug 2013-09-20 01:07:10 -04:00
Boris Zbarsky af9b6c1e3a Bug 917958 part 1. Stop using JSObject* to represent WebIDL callback functions in workers. r=smaug 2013-09-20 01:07:03 -04:00
Boris Zbarsky b81107f18b Bug 917539. Move the JSCompartment argument to the end of the list for JS-implemented WebIDL, so C++ callers can call into it sanely too. r=peterv 2013-09-20 01:07:03 -04:00
Benoit Jacob 229d2760cd Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan 2013-09-19 09:54:42 -04:00
Jon Coppeard 607c80c4e2 Bug 917295 - GC: Handlify public date APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Jon Coppeard 692778cddf Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Wes Kocher 0b90687d1e Backed out changeset 040522aacba4 (bug 913847) 2013-09-18 17:18:56 -07:00
Benoit Jacob b7afc93adc Bug 913852 - BindingUtils.h doesn't need to include <algorithm> - r=bz 2013-09-18 18:50:32 -04:00
Benoit Jacob 5526ea7b69 Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan 2013-09-18 18:50:32 -04:00
Vendelin Ruzicka 1a5e17abdb Bug 917410: Add specializations of Optional for 'any' and 'object' types for callbacks in workers to bindings code. r=bz 2013-09-18 06:47:08 +02:00
Terrence Cole 7217929024 Bug 916993 - Handlify the public JSString APIs; r=bz,jonco
--HG--
extra : rebase_source : 35c5d7832d794ce37be622db3140309d2605c212
2013-09-16 18:33:40 -07: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
Ehsan Akhgari aac4264f95 Bug 915524 - Implement AudioBuffer.copyFromChannel and AudioBuffer.copyToChannel; r=roc 2013-09-17 07:30:32 -04:00
Olli Pettay e9b8288fc3 Bug 915622, make generated events to have same dependencies as generated bindings, r=khuey
--HG--
extra : rebase_source : c285e140e66bbea365d0b8a2ad13fd87828f8ac7
2013-09-16 13:06:15 +03:00
Randell Jesup edd0e485ab Bug 882145: reland changesets bc4ee7cbd7bd and cf373e408a6b r=bz 2013-09-16 02:34:57 -04:00
Ryan VanderMeulen 45c4ca50e7 Backed out changesets bc4ee7cbd7bd and cf373e408a6b (bug 882145) for causing bug 916609. r=jsmith 2013-09-15 18:19:42 -04:00
Jan-Ivar Bruaroey 3ab140206b Bug 882145: gUM constraints converted to webidl + gUMDevices() takes constraints. r=bz r=jesup 2013-09-14 00:48:39 -04:00
Boris Zbarsky 2319781bd9 Bug 915368. Give dictionaries copy constructors and assignment operators when it's safe. r=khuey 2013-09-13 13:21:59 -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
Boris Zbarsky 3cf69f3a05 Bug 915100. Make sure to actually include the headers we need in UnionTypes.h. r=khuey 2013-09-11 23:19:07 -04:00
Ryan VanderMeulen 10c13ed83a Merge m-c to inbound. 2013-09-11 22:20:33 -04:00
Ryan VanderMeulen a352effd6a Merge b2g-inbound to m-c. 2013-09-11 20:58:14 -04:00
Vicamo Yang e62aba3732 Bug 910568 - WebTelephony: move DOM classes to namespace mozilla::dom. r=khuey 2013-09-12 05:47:14 +02:00