Boris Zbarsky
7e68ba84af
Bug 796983 part 1. Switch nullable primitives to using a const Nullable. r=jst
2012-10-17 17:01:55 -04:00
Benoit Jacob
d568e3410c
Bug 742781 - Implement WEBGL_debug_renderer_info extension - r=bz,jgilbert
2012-10-17 15:11:51 -04:00
Ehsan Akhgari
2c5f5e810e
Merge mozilla-central into mozilla-inbound
2012-10-16 20:43:47 -04:00
Olli Pettay
94fafd006f
Bug 797806 - Helper method to handle stringified JSON in C++, part2, r=khuey
2012-10-16 18:37:44 +03:00
Olli Pettay
725f23d5ee
Bug 797806 - Helper method to handle stringified JSON in C++, r=khuey
2012-10-16 17:52:10 +03:00
Boris Zbarsky
670a63e43a
Bug 800386. Fix getInterface from JS on XMLHttpRequest objects to actually work. r=khuey
2012-10-15 23:12:03 -04:00
Trevor Saunders
09edcbfe3e
Bug 742191 - Part d: Throw TypeErrors for Paris binding exceptions; r=bz
2012-10-16 14:06:10 -04:00
Ed Morley
25701792b7
Merge mozilla-central to mozilla-inbound
2012-10-15 16:09:10 +01:00
Ryan VanderMeulen
da830356a6
Merge inbound to m-c.
2012-10-14 16:39:23 -04:00
Ms2ger
95bc3a5347
Bug 793244 - Part b: Convert Screen to WebIDL; r=bz
2012-10-14 09:40:11 +02:00
Ms2ger
fe70fde7f8
Bug 798014 - Remove dead DefineConstructor definition; r=khuey
2012-10-14 09:39:05 +02:00
Ed Morley
8fc88262ba
Backout 3044539fec87 (bug 799465),2dbcd6d16b43 (bug 798264), f7019f73a5f0 (bug 711628), a484a3a904da, 7154061ddc00 & 7e7fc42021c1 (bug 799465) for burning
2012-10-12 14:45:38 +01:00
Peter Van der Beken
ff8e573925
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - allow non-nsISupports object to be parents, take care of review comment. r=bz.
...
--HG--
extra : rebase_source : 0e0373a0dfb0d3a3a3846c87529bde31f072866f
2012-10-12 14:52:32 +02:00
Peter Van der Beken
de52d9ea80
Fix for bug 798264 (Split property tables). r=bz.
...
--HG--
extra : rebase_source : 71456ae48d3d3e6014e8095837f7942cfe733a37
2012-10-09 20:50:05 +02:00
Peter Van der Beken
e737736f98
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - remove nsISupports from AudioContext. r=ehsan.
...
--HG--
extra : rebase_source : f37b849c020bd9e4bc72e16df71a0241fafb0829
2012-10-09 20:50:26 +02:00
Peter Van der Beken
fd7820cf79
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - allow non-nsISupports object to be parents. r=bz.
...
--HG--
extra : rebase_source : 00c805373f99213bee8b17b24fed3024b8ac4752
2012-10-09 20:50:26 +02:00
Peter Van der Beken
cd96494172
Fix for bug 798264 (Split property tables). r=bz.
...
--HG--
extra : rebase_source : fd96e8c0241411e7724fc950c3dce8d2b95d662d
2012-10-09 20:50:05 +02:00
Peter Van der Beken
12f507617a
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz.
...
--HG--
rename : dom/tests/mochitest/chrome/file_bug800817.xul => dom/tests/mochitest/chrome/file_bug799299.xul
rename : dom/tests/mochitest/chrome/test_bug800817.xul => dom/tests/mochitest/chrome/test_bug799299.xul
extra : rebase_source : bed68ffa15fe5933994c33fbd94ad2b597b5b1b9
2012-09-26 20:12:15 +02:00
Peter Van der Beken
67399d2474
Fix for bug 711628 (Implement PeerConnection.localStreams/remoteStreams). r=bz.
...
--HG--
extra : rebase_source : d7be35954ba69563ed26b2173c75fe9e74707847
2012-09-13 18:04:31 +02:00
Peter Van der Beken
1df4bdb1b6
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - remove nsISupports from AudioContext. r=ehsan.
...
--HG--
extra : rebase_source : 80c344181c26d41332fbf2780e80d0de559b5d84
2012-10-09 20:50:26 +02:00
Peter Van der Beken
7521f2f905
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - allow non-nsISupports object to be parents. r=bz.
...
--HG--
extra : rebase_source : 2a8b1d0d9fe23ea3b849ac384202de30161429a9
2012-10-09 20:50:26 +02:00
Peter Van der Beken
52e6c5623d
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz.
...
--HG--
extra : rebase_source : 42b0e6db4b418901f253d66e7323ba5a7cd83eea
2012-09-26 20:12:15 +02:00
Nicholas Cameron
404ba9b65d
Bug 734668; reviewer's changes. r=Ms2ger,roc
...
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
extra : rebase_source : 827a45dd8cc2bdc77e850e8b1d1e23e9f2f72f7d
2012-10-12 22:42:53 +13:00
Nicholas Cameron
2e1a97f864
Bug 734668; rename files and classes. r=roc
...
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.h => content/canvas/src/CanvasRenderingContext2D.h
extra : rebase_source : ded29b0c029bbcee232c4760c49539f465d40399
2012-10-12 22:42:52 +13:00
Nicholas Cameron
108187d686
Bug 734668; remove prefable; r=roc
...
--HG--
extra : rebase_source : b29e89a14c5a96eae71dadbee2eea6fd18b376f8
2012-10-12 22:42:51 +13:00
Peter Van der Beken
1735393652
Fix for bug 711628 (Implement PeerConnection.localStreams/remoteStreams). r=bz.
...
--HG--
extra : rebase_source : e21a429d85fc60a972752a2a7deb88a7cb648f3c
2012-09-13 18:04:31 +02:00
Boris Zbarsky
3e1f7e4e46
Bug 792890. Fix JS-wrapping of callback interfaces to just return the underlying JS object. r=peterv
...
There are several changes here:
1) When wrapping a callback interface object for JS, just extract the
underlying JSObject from inside it and hand that object out.
2) Flag callback interface descriptors as "not concrete" (only matters
for cases when they have constants on the interface object) and not
wrappercached (will catch bugs if someone tries to treat them as a
Gecko object).
3) Fix a preexisting bug in sequence wrapping where we'd try to
JS_DefineElement twice if we were wrapping a null value for a
sequence of nullable interface objects.
2012-10-10 15:57:57 -04:00
Boris Zbarsky
1ecbdb1149
Bug 792137. [TreatNonCallableAsNull] lives on the callback type now. r=peterv
2012-10-10 15:53:02 -04:00
Benoit Jacob
966189fec7
Bug 779611 - part 9: port WebGLActiveInfo to WebIDL bindings - r=bz
2012-10-09 14:39:49 -04:00
Ed Morley
5abdf356a2
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-10-06 20:30:35 +01:00
Ms2ger
2c2ac37f8d
No bug - Improve error message when declaring an interface both as WebIDL and external in Bindings.conf; r=bz
2012-10-06 09:23:25 +02:00
Bobby Holley
02fbd34534
Bug 761695 - Implement expando traps for ProxyXrayTraits DOMXrayTraits. r=peterv
...
For new DOM proxies, we could probably use the Xray expando machinery for the
regular expando object as well, and free up one of the reserved slots. That's
more than I want to bite off for the moment, though.
I also decided not to block on bug 760095 and just kick the problem of globals
with new binding down the road a little bit.
2012-10-05 18:59:23 +02:00
Benoit Jacob
7c88e5e534
Bug 779611 - reland parts 5-8 - port WebGLTexture, WebGLBuffer, WebGLFramebuffer, WebGLRenderbuffer, WebGLShader, WebGLProgram to WebIDL bindings - r=bz
2012-10-04 16:35:54 -04:00
Benoit Jacob
3c55b8bae9
back out 6f3714945438, 5732dca84958, bfb93cf89612, e697a832c60b for Mac build error
2012-10-04 15:06:31 -04:00
Benoit Jacob
75765490e7
Bug 779611 - part 8 - port WebGLShader and WebGLProgram to WebIDL bindings - r=bz
2012-10-04 14:45:35 -04:00
Benoit Jacob
3c8b827724
Bug 779611 - part 7 - port WebGLFramebuffer and WebGLRenderbuffer to WebIDL bindings - r=bz
2012-10-04 14:45:33 -04:00
Benoit Jacob
5fed8a3b08
Bug 779611 - part 6 - port WebGLBuffer to WebIDL bindings - r=bz
2012-10-04 14:45:32 -04:00
Benoit Jacob
f0b59e1bef
Bug 779611 - part 5 - port WebGLTexture to WebIDL bindings - r=bz
2012-10-04 14:45:25 -04:00
Benoit Jacob
3a142c6980
Bug 779611 - part 3 - port WebGL extensions to WebIDL bindings, refactor them - r=bz,jgilbert
2012-10-03 17:13:05 -04:00
Benoit Jacob
8a7f727099
Bug 779611 - part 1 - port WebGLShaderPrecisionFormat to WebIDL bindings - r=bz
2012-10-03 17:13:05 -04:00
Boris Zbarsky
bc0118a179
Bug 792980. Don't force consumers to list descriptors for interfaces that are using all teh defaults. r=peterv
...
The new setup is:
* Consequential interfaces with no explicit descriptor are still skipped.
* If no information is provided about an interface, an empty descriptor is
assumed.
* If a list is provided and the only entry is a worker descriptor, an empty
main-thread descriptor is assumed.
2012-10-01 08:56:31 -04:00
Boris Zbarsky
0c92627751
Bug 795751. Make CSS2Properties stuff work even with pref names that are not identifiers. r=dholbert
2012-10-01 08:45:12 -04:00
Boris Zbarsky
2279ce8914
Bug 793528. Worker bindings should default to looking for headers in mozilla/dom/workers/bindings/. r=khuey
2012-10-01 08:45:11 -04:00
Peter Van der Beken
2561b4b1e6
Fix for bug 791774 (Hook DOM lists up to the new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 873020edd9cd3defc932d77bd26b5d65ebf263cb
2012-06-13 17:18:30 +02:00
Peter Van der Beken
dadc1f518a
Fix for bug 794959 (Use the right cast in GetAs* functions of union types in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 051181aa319edd386679119846fd61c574957b54
2012-09-26 16:17:46 +02:00
Peter Van der Beken
931a931c83
Fix for bug 791347 (Support non-nsISupports refcounted natives and non-refcounted natives in new DOM bindings). r=bz/smaug.
...
--HG--
extra : rebase_source : cd6d98461d7fa3a07fa1361b4d840448122b6655
2012-09-19 15:02:37 +02:00
Kyle Huey
e5eb83ac5a
Bug 760331: Coalesce data for inline style across nodes. r=bz
...
This patch enables sharing of an nsAttrValue's MiscContainer between nodes for style rules. MiscContainers of type eCSSStyleRule are now refcounted (with some clever struct packing to ensure that the amount of memory allocated for MiscContainer remains unchanged on 32 and 64 bit). This infrastructure can be used to share most MiscContainer types in the future if we find advantages to sharing other types than just eCSSStyleRuley. A cache mapping strings to MiscContainers has been added to nsHTMLCSSStyleSheet. MiscContainers can be shared between nsAttrValues when one nsAttrValue is SetTo another nsAttrValue or when there is a cache hit in this cache. This patch also adds the ability to tell a style rule that it belongs to an nsHTMLCSSStyleSheet, with appropriate accessor functions to separate that from the existing case of belonging to an nsCSSStyleSheet.
The primary use case is to reduce memory use for pages that have lots of inline style attributes with the same value. This can happen easily with large pages that are automatically generated. An (admittedly pathological) testcase in Bug 686975 sees over 250 MB of memory savings with this change. Reusing the same MiscContainer for multiple nodes saves the overhead of maintaining separate copies of the string containing the serialized value of the style attribute and of creating separate style rules for each node. Eliminating duplicate style rules enables further savings in layout through style context sharing. The testcase sees the amount of memory used by style contexts go from over 250 MB to 10 KB.
Because the cache is based on the text value of the style attribute, it will not handle attributes that have different text values but are parsed into identical style rules. We also do not attempt to share MiscContainers when the node's base URI differs from the document URI. The effect of these limitations is expected to be low.
2012-09-30 09:40:24 -07:00
Masatoshi Kimura
4a9395eb5d
Bug 764234 - Implement StringEncoding API. r=dougt,smontagu
2012-09-28 11:19:18 +01:00
Terrence Cole
68f1a7379e
Bug 791322 - Move Rooted to js:: namespace; r=billm
...
These should not be part of the public API.
--HG--
extra : rebase_source : 00a69ee54f06e3f557cd9ec2f3b059df10aa32df
2012-09-24 18:08:22 -07:00
Bill McCloskey
2e75082f62
Bug 787856 - Convert JS_GetPrototype to support lazy protos (r=bhackett)
2012-09-03 16:42:17 -07:00
Bill McCloskey
88913893e5
Bug 787856 - Convert js::GetObjectProto to support lazy protos (r=bhackett)
2012-09-03 16:42:10 -07:00
Ehsan Akhgari
697bec41a5
Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug
...
This is the full implementation of the AudioBuffer object. There are
two ways to create these objects from an audio context and this patch
implements only one of them.
The construction of the AudioBuffer object is a two step process: the
object should be created with operator new first, and then
InitializeBuffers should be called on it. InitializeBuffers is
fallible, because it uses the JS API to create the underlying typed
arrays, but that's fine, since the length of the buffers comes from web
content, and we don't want to use infallible allocations for those
anyways.
We hold on to the JS objects from the C++ implementation, and trace
through all of those objects, so that a GC does not kill those object
without us knowing.
The buffer should be possible to manipulate from both C++ and JS, and
the C++ object probably needs to support a set of methods for the C++
callers at some point.
2012-09-25 17:58:50 -04:00
Ehsan Akhgari
0a35cb68cb
Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky
...
This is the bare minimum that one needs in order to get those interfaces
implemented. The work to make the simplest of Web Audio test cases
actually pass will be done in bug 792649.
2012-09-21 11:33:03 -04:00
Kyle Huey
c4cca57ccf
Bug 793025: Convert FileReaderSync to WebIDL bindings. r=bz
2012-09-20 19:47:47 -07:00
Ehsan Akhgari
bc04fdf9fc
Backout changeset 7d0776416955 (bug 792646) because of leaks
2012-09-20 19:47:07 -04:00
Ehsan Akhgari
a26464712e
Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky
...
This is the bare minimum that one needs in order to get those interfaces
implemented. The work to make the simplest of Web Audio test cases
actually pass will be done in bug 792649.
2012-09-20 18:05:38 -04:00
Ms2ger
10e373a3de
Bug 776239 - Unpref XHR bindings; r=bz
2012-09-20 09:55:37 +02:00
Ms2ger
e973046355
Bug 776243 - Unpref WebGL context bindings; r=peterv
2012-09-20 09:55:36 +02:00
Boris Zbarsky
0735897dff
Bug 790975. Support sequences as dictionary members in WebIDL. r=peterv
2012-09-18 23:24:27 -04:00
Ed Morley
bdf426c89c
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-09-17 20:19:57 +01:00
Ehsan Akhgari
9bb8766bf1
Bug 787574 follow-up: Forward declare JSContext as a struct
...
DONTBUILD
2012-09-17 15:16:13 -04:00
Peter Van der Beken
75f85b799b
Fix for bug 791345 (Support non-wrappercached objects in proxy-based bindings). r=bz.
...
--HG--
extra : rebase_source : 884073cf7dccc2e9d1fa1769b00d5ee581d22573
2012-09-17 11:44:59 +02:00
Peter Van der Beken
71b55b1f68
Fix for bug 788532 (Add the new DOM bindings API to DOM lists). r=bz.
...
--HG--
extra : rebase_source : 18e21a786b6a9cc2aeada52ba5ca3a2614cb596b
2012-09-05 22:49:53 +02:00
Boris Zbarsky
c0a96f3008
Bug 790273. Add support for [LenientThis] in WebIDL. r=peterv
2012-09-12 17:24:58 +01:00
Boris Zbarsky
df94b5400b
Bug 787554. Don't prefix WebIDL getters names with a Get if they look like simple member access on the C++ side. r=peterv
2012-09-11 20:08:24 +01:00
Boris Zbarsky
6a4003fd4a
Bug 789636. Make getInterface on XHR and QueryInterface on all WebIDL objects be [ChromeOnly]. r=peterv
2012-09-11 20:08:24 +01:00
Boris Zbarsky
48ddcad8e3
Bug 790123. Make sure to not lose a single trailing newline in stripTrailingWhitespace. r=mats
2012-09-11 18:37:22 +01:00
Peter Van der Beken
0aab5147fc
Fix for bug 768684 (Fix sequence<any> return type in WebIDL). r=bz.
...
--HG--
extra : rebase_source : acbd2ce77f62146e9bd7fc285a8042073ed95722
2012-06-13 17:15:05 +02:00
Andrea Marchesini
f95e99bcad
Bug 775368 - Porting Websockets to WebIDL, r=bz
...
--HG--
rename : content/base/src/nsWebSocket.cpp => content/base/src/WebSocket.cpp
rename : content/base/src/nsWebSocket.h => content/base/src/WebSocket.h
2012-09-10 09:48:14 -04:00
Ryan VanderMeulen
e6272f40cc
Merge the last PGO-green inbound changeset to m-c.
2012-09-07 23:51:19 -04:00
Ryan VanderMeulen
ff4293d31d
Merge the last PGO-green inbound changeset to m-c.
2012-09-07 19:48:15 -04:00
Ryan VanderMeulen
0bf9ce3a48
Merge the last PGO-green inbound changeset to m-c.
2012-09-06 20:37:59 -04:00
Jeff Walden
f05b76c8ef
Bug 789309 - Stop installing jsatom.h and jsatom.tbl. r=jorendorff
2012-09-06 17:51:50 -07:00
Ed Morley
c6d2c20860
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-09-06 10:19:16 +01:00
Ms2ger
6b6c1230f5
Bug 763367 - Add support for [EnforceRange] and [Clamp]; r=bz
2012-09-06 09:25:03 +02:00
Ms2ger
aefd975ea8
No bug - Move the bool specialization of PrimitiveConversionTraits from between the integer ones.
2012-09-06 09:20:29 +02:00
Ms2ger
921135d916
Bug 768793 - Remove DOMJSClass::mGetWrapperCacheVTableOffset; r=khuey
2012-09-06 09:14:49 +02:00
Ms2ger
454aa09861
Bug 788211 - Fix a few bugs in CGDOMJSProxyHandler_defineProperty; r=bz
2012-09-06 09:14:48 +02:00
Terrence Cole
31c3a732a8
Bug 787580 - Root all jsval at the API surface; r=sfink sr=dmandelin
...
--HG--
rename : layout/reftests/text-decoration/underline-select-2-ref.html => layout/reftests/text-decoration/underline-button-1-ref.html
rename : layout/reftests/text-decoration/underline-select-2.html => layout/reftests/text-decoration/underline-button-1.html
extra : rebase_source : 008f2bab76a005947a4c0bd10b6d9ea8531ea6d0
2012-09-04 16:40:12 -07:00
Boris Zbarsky
aecf172619
Bug 788369. Allow passing strings to the XHR constructor, since CoffeeScript seems to want to do it. r=peterv
2012-09-07 11:07:12 -04:00
Ehsan Akhgari
bbf6c4acc9
Bug 787574 - Add a script for creating stub implementations of Web IDL interfaces; r=bzbarsky
...
DONTBUILD since this is just a script, and NPOTB.
2012-09-06 13:53:43 -04:00
Nathan Froyd
c00a7f490e
Bug 774757 - don't generate static initializers with new bindings; r=bz
2012-08-29 17:16:23 -04:00
Boris Zbarsky
591d969173
Bug 742144. Implement support for typedefs in WebIDL. r=khuey
2012-09-06 10:23:51 -04:00
Boris Zbarsky
437a27a6d1
Bug 778044. Add a way to pref off Paris binding constructor objects. r=peterv
2012-09-05 13:37:28 -04:00
Boris Zbarsky
7459711346
Bug 788149. Don't use jsids in worker code in bindings, because those are runtime-specific and workers can run on multiple runtimes. r=peterv
2012-09-05 13:37:27 -04:00
Boris Zbarsky
f17771a580
Bug 778150 part 3. Default attributes to infallible. Allow annotation of fallible attributes in WebIDL. r=peterv
...
The valid annotations are [Throws], [GetterThrows], and [SetterThrows], which can all either take no value or
be set to MainThread or Workers if the throwing behavior is only happening on main thread or in workers
2012-09-05 09:21:33 -04:00
Boris Zbarsky
a17389cd6f
Bug 778150 part 2. Default methods to infallible. Allow annotation of fallible methods in WebIDL using [Throws]. r=peterv
...
[Throws] can either take no value, or can take MainThread or Workers if the
throwing behavior is only happening on main thread or in workers.
2012-09-05 09:21:33 -04:00
Boris Zbarsky
2b85439c92
Bug 778150 part 1. Remove the vestigial ability to specify infallibility stuff in the conf file. r=peterv
2012-09-05 09:21:33 -04:00
Eric Faust
497dfe5e4e
Bug 781387 - Codegen infallibility data for Paris bindings methods. (r=peterv)
2012-09-04 14:46:38 -04:00
Boris Zbarsky
a9228f3218
Bug 786105. Setting inline style properties to null should remove them, just like setting them to empty string does. r=peterv
2012-08-31 20:59:46 -04:00
Ehsan Akhgari
d0afe916e7
Bug 775302 - Stub out the implementation of mozAudioContext; r=bzbarsky,khuey
2012-08-31 16:59:37 -04:00
Daniel Holbert
a7a2a0d2a9
Bug 785981: Pass global #defines to the process that generates the Paris bindings CSS2Properties.webidl file. r=khuey
2012-08-28 11:14:53 -07:00
Boris Zbarsky
01c109f2d3
Bug 774970. Add the ability to generate code for dealing with an XPConnect 'this' object in some cases. r=peterv
2012-08-28 13:10:09 -04:00
Boris Zbarsky
71df3cf88f
Bug 779046. Have saner defaults for the nativeType of a WebIDL bindings. r=peterv
2012-08-28 13:10:09 -04:00
Boris Zbarsky
926bf57664
Bug 767930. Add support for typed array return values (as just JSObject*) in WebIDL bindings. r=peterv
2012-08-28 13:10:09 -04:00
Peter Van der Beken
e44f9e5a3d
Bug 753517 part 5. Enable the list IC for new DOM bindings too. r=bz.
2012-08-24 09:32:26 -07:00
Boris Zbarsky
31276eb444
Bug 753517 part 4. Set up auto-generation of CSS2Properties.webidl from nsCSSPropList.h and enable Paris bindings for CSSStyleDeclaration and CSS2Properties. r=khuey,peterv,dbaron
2012-08-23 21:08:09 -07:00
Boris Zbarsky
8b4fc28fc2
Bug 753517 part 3. Expose the API needed for Paris bindings on nsDOMCSSDeclaration and nsICSSDeclaration. r=dbaron,peterv
2012-08-23 21:08:08 -07:00
Ehsan Akhgari
869f171923
Bug 785459 follow-up: use the python 2.5 syntax
2012-08-24 16:47:45 -04:00
Ehsan Akhgari
0ab97da3c8
Bug 785472 - The Web IDL parser should not allow inheriting from an interface that is only forward declared; r=khuey
2012-08-24 15:23:21 -04:00
Ehsan Akhgari
b1634fb871
Backout changeset 1142882b6c0b (bug 785472) because it breaks the build
2012-08-24 16:22:42 -04:00
Ehsan Akhgari
28893c29cf
Bug 785472 - The Web IDL parser should not allow inheriting from an interface that is only forward declared; r=khuey
2012-08-24 15:23:21 -04:00
Ehsan Akhgari
aad48fec30
Bug 785459 - Enable the WebIDL parser to be used stand-alone for syntax checking; r=khuey
2012-08-24 14:51:45 -04:00
Peter Van der Beken
82dbb096f7
Fix for bug 742195 (Implement the extended attributes for null and undefined handling on strings in Paris bindings). r=bz.
2012-07-12 15:55:30 +02:00
Peter Van der Beken
deff3652d9
Fix for bug 785188 (Make Xrays work with newest DOM list bindings). r=mrbkap.
2012-06-06 21:52:26 +02:00
Luke Wagner
94264a0bc8
Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
...
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Peter Van der Beken
13f425b97c
Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
...
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02:00
Peter Van der Beken
dbe6f48445
Fix for bug 775543 (Passing a Worker object to console.log() results in a crash). r=bz.
...
--HG--
extra : rebase_source : 60ee731af1e77c21f466026a04c71eeb96b1ff7d
2012-08-22 18:16:14 -07:00
Ehsan Akhgari
0fd9123eac
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Bonnie Surender
e52cb8693b
Bug 781046. Make the Create() functions in TypedArray.h take a const data array, since they make a copy anyway. r=bzbarsky
2012-08-07 17:57:27 -07:00
Eric Faust
6b5acbfcaf
Bug 747287 - Followup: Add cast to fix build. (r=me)
2012-08-07 22:57:07 -07:00
Eric Faust
ba5cbc8591
Bug 773546 - Part 2: Centralize Paris binding accessor and method top halves. (r=peterv)
2012-08-07 22:26:20 -07:00
Eric Faust
3e8a5ebf81
Bug 781040 - Fault in methods and accessors with JSJitinfos on ResolveProperty. (r=bz,benjamin)
2012-08-07 22:26:19 -07:00
Eric Faust
96d7ea57ce
Bug 775289 - Remove generateNativeAccessors branching from Paris binding codegen. (r=peterv)
2012-08-07 22:26:19 -07:00
Eric Faust
a9e0d44101
Bug 773548 - Part 2: Pass the generated JSJitInfos into JSFunctionSpec. (r=peterv)
2012-08-07 22:26:19 -07:00
Eric Faust
17695b5079
Bug 775788 - Modify JSFunctionSpec to accept JSJitInfos. (r=luke)
2012-08-07 22:26:19 -07:00
Eric Faust
94f0940e41
Bug 773548 - Part 1: Modify Paris bindings to specialize methods. (r=peterv)
2012-08-07 22:26:19 -07:00
Boris Zbarsky
a00c8cb2bd
Bug 747287 - Part 3: Add callback interface to allow JIT to interrogate DOM. (r=peterv)
2012-08-07 22:26:18 -07:00
Eric Faust
513357911e
Bug 747287 - Part 2: Generate infalliblity data for further JIT optimization. (r=peterv)
2012-08-07 22:26:18 -07:00
Eric Faust
b451a97a53
Bug 747287 - Part 1: Generate JSJitInfos and specialized accessors for Paris bindings. (r=peterv)
2012-08-07 22:26:18 -07:00
Ms2ger
a45a0051cf
Bug 743573 - Fix a number of build warnings in dom/; r=mounir
2012-08-07 09:06:29 +02:00
Ms2ger
391eca3b71
Bug 776224 - CheckPref should always initialize its outparam; r=peterv
2012-08-04 09:44:00 +02:00
Ms2ger
e1e44bb6f1
Bug 774705 - Part b: Throw a TypeError when trying to construct an interface without a constructor; r=bz
2012-08-04 09:44:00 +02:00
Ms2ger
82d277e63b
Bug 773326 - Add test for previously inverted thread check in getJSToNativeConversionTemplate::onFailure; r=peterv
2012-08-04 09:43:57 +02:00
Ms2ger
d5a7d83516
Bug 780111 - Share code with new DOM bindings for primitive conversions in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:29:18 +02:00
Mike Hommey
6173fa297f
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Ed Morley
bba173e66e
Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE
2012-08-04 18:05:15 +01:00
Ms2ger
2529739530
Merge m-c to m-i.
2012-08-04 13:02:15 +02:00
Mike Hommey
4e998b1d36
Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE
2012-08-04 10:38:41 +02:00
Ms2ger
de54e5b696
Bug 776224 - CheckPref should always initialize its outparam; r=peterv
2012-08-04 09:44:00 +02:00
Ms2ger
5363dc0480
Bug 774705 - Part b: Throw a TypeError when trying to construct an interface without a constructor; r=bz
2012-08-04 09:44:00 +02:00
Ms2ger
da31a913e3
Bug 773326 - Add test for previously inverted thread check in getJSToNativeConversionTemplate::onFailure; r=peterv
2012-08-04 09:43:57 +02:00
Ms2ger
395040a131
Bug 780111 - Share code with new DOM bindings for primitive conversions in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:29:18 +02:00
Mike Hommey
17fb6cad2d
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 08:48:56 +02:00
William Chen
a7026edb01
Bug 779573 - Fix generated code for empty string as default dictionary member in WebIDL. r=khuey
2012-08-01 14:34:36 -04:00
Eric Faust
012112cde8
Bug 752223 - Implement JS_NumberValue(), replacing JS_NewNumberValue(). (r=luke)
2012-08-01 17:59:47 -07:00
Eric Faust
0a5b0eec6b
Bug 742188 - Implement ToInt64 and ToUint64 per the WebIDL standard. (r=jorendorff)
2012-08-03 15:15:04 -07:00
Nicholas Cameron
27a424af1c
Bug 776685; throw TypeError exceptions from Azure canvas bindings. r=bz
2012-07-26 14:31:26 +12:00
Eric Faust
a58ac0611e
Bug 749535 - Part 3: Remove JS_Is*Array() from Paris Binding argument unwrapping. (r=bz)
2012-07-31 20:45:22 -07:00
Eric Faust
4f1dd6602a
Bug 749535 - Part 2: Rewrite dom::TypedArray to use JS_UnwrapObjectAs*Array(). (r=bz)
2012-07-31 20:45:20 -07:00
Eric Faust
e8671110a6
Backout changesets 6e78bc0145ee, 97a1463cde9c, and 9097d0b3acc6 (Bug 749535) for
...
erroneous bug number (r=me).
2012-07-31 20:24:32 -07:00
Eric Faust
1f08362f9e
Bug 749535 - Part 3: Remove JS_Is*Array() from Paris Binding argument unwrapping. (r=bz)
2012-07-31 20:07:55 -07:00
Eric Faust
a7fa8d3129
Bug 747935 - Part 2: Rewrite dom::TypedArray to use JS_UnwrapObjectAs*Array(). (r=bz)
2012-07-31 20:06:35 -07:00
Boris Zbarsky
7ca7230acd
Bug 775852 followup: skip the test when WebGL is not around. No review.
2012-07-31 10:24:01 -04:00
Boris Zbarsky
fc2f5cd147
Bug 771636 part 3. Implement default values for WebIDL strings. r=peterv
2012-07-31 00:22:23 -04:00
Boris Zbarsky
f9ac7c28ba
Bug 771636 part 2. Implement default values for WebIDL enums. r=peterv
2012-07-31 00:22:23 -04:00
Boris Zbarsky
5186d5c397
Bug 771636 part 1. Rearrange default-value handling so we actually set C++ values directly instead of round-tripping through jsval. r=peterv
2012-07-31 00:22:22 -04:00
Ehsan Akhgari
b40b21d633
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian Hackett
ffc948bbbe
Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin
2012-07-30 05:19:09 -06:00
Boris Zbarsky
43ca50a784
Bug 777438. Make sure our C++ declarations are in the right order when a dictionary has a dictionary member. r=khuey
2012-07-27 00:09:10 -04:00
Boris Zbarsky
1aab881a5b
Bug 775844. Make sure to examine constructor signatures when looking for union types. r=peterv
2012-07-27 00:09:10 -04:00
Boris Zbarsky
a64bcb8bb8
Bug 777415. Disallow GetterInfallible/SetterInfallible annotations where they don't make sense. r=khuey
2012-07-27 00:09:10 -04:00
Boris Zbarsky
0349f66760
Bug 775845. Fail codegen for variadic arguments until we add support for them. r=peterv
2012-07-27 00:09:09 -04:00
Boris Zbarsky
a6578c446a
Bug 775852. Actually follow the WebIDL spec for creating JS representations of sequences. r=khuey
2012-07-27 00:09:09 -04:00
Boris Zbarsky
d794ed88da
Bug 777627. Make sure we can't accidentally turn off mochitests for a directory by reordering the Makefile.in. r=khuey
2012-07-26 12:38:03 -04:00
Eric Faust
6b01b23e1f
Bug 749536 - Implement JS::ToBoolean to fastpath Value to Boolean unwrappings. (r=luke)
2012-07-24 22:59:55 -07:00
Benjamin Peterson
d1064385b3
Bug 761723 - Save script sources to implement Function.prototype.toString. r=jorendorff,njn,jimb,jst,Ms2ger
...
--HG--
extra : rebase_source : de1b55647780a30f98fe84d29ee3cb4a437a3ece
2012-07-20 20:17:38 +02:00
Jason Orendorff
7e92dcab82
Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky.
2012-07-03 16:34:56 -05:00
Boris Zbarsky
776d424e3d
Fix dom binding test makefile to actually work right. r=khuey, no bug
2012-07-19 14:48:59 -04:00
Boris Zbarsky
3268be0569
Bug 764456 part 5. Actually look at hasConcreteDescendant in hasInterfacePrototypeObject() so that we can avoid codegen for [NoInterfaceObject] interfaces hat are only implemented via "implements". r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
229fdff391
Bug 764456 part 4. Make sure consequential interface used as arguments are non-castable. r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
768e966647
Bug 764456 part 3. Clean up meaning of 'castable' and use thereof a bit. r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
7a00a8420c
Bug 764456 part 2. Add some tests for callback interfaces. r=peterv
2012-07-19 14:48:58 -04:00
Peter Van der Beken
d5f4fcc033
Fix for bug 774775 (XRayWrapper does not handle new bindings constants) - refactor code. r=bz.
...
--HG--
extra : rebase_source : 317d5942dde4427384320cb334f794f7fef37a2e
2012-07-18 13:52:07 +02:00
Peter Van der Beken
63b03ad0ef
Fix for bug 774775 (XRayWrapper does not handle new bindings constants). r=bz.
...
--HG--
extra : rebase_source : fef985d0417c394ae5997b4450c7076005bdf870
2012-07-17 22:54:25 +02:00
Ed Morley
ab4a6323cd
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-18 13:32:24 +01:00
Ms2ger
2be7de56d2
Bug 765464 - Part c: Throw some TypeErrors; r=khuey
2012-07-18 12:36:08 +02:00
Ehsan Akhgari
8483016620
Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky
2012-07-16 21:42:18 -04:00
Boris Zbarsky
2be6401141
Bug 773519 followup to make this code deal with silly string consumers too. No review.
2012-07-17 13:20:40 -04:00
Boris Zbarsky
92f87e5c2f
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
fa17d85d47
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
8e925299c6
Bug 768537 part 1. Update parser support for dictionaries to spec changes. r=jlebar
...
There are several parts here:
1) Enforce the requirement that dictionary arguments not followed by a required argument are optional.
2) Make dictionaries no longer be distinguishable from nullable types.
3) Disallow dictionaries or unions containing dictionaries inside a nullable type.
4) Force optional dictionaries to have a default value of null so that codegen doesn't have to worry about dealing with
optional arguments that have no default value in the IDL but need to be treated as if they were null.
2012-07-17 12:18:53 -04:00
Ed Morley
8a2ea81bc5
Backout 9deb8edb5070 (bug 773519), ea5a243a60f1 & 0cad1e553bea (bug 768537) for compilation failures
2012-07-17 17:48:11 +01:00
Boris Zbarsky
27e9cc02ef
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
c93c708107
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
56133baee1
Bug 768537 part 1. Update parser support for dictionaries to spec changes. r=jlebar
...
There are several parts here:
1) Enforce the requirement that dictionary arguments not followed by a required argument are optional.
2) Make dictionaries no longer be distinguishable from nullable types.
3) Disallow dictionaries or unions containing dictionaries inside a nullable type.
4) Force optional dictionaries to have a default value of null so that codegen doesn't have to worry about dealing with
optional arguments that have no default value in the IDL but need to be treated as if they were null.
2012-07-17 12:18:53 -04:00
Peter Van der Beken
e2daa1df74
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
...
--HG--
extra : rebase_source : 26d0508b8a11d75164ae4b27af8c64e8845166f9
2012-07-16 16:52:59 +02:00
Ed Morley
489adf7c8d
Backout 29104ecddc3a (bug 769464) for crashtest assertions
2012-07-16 18:49:14 +01:00
Peter Van der Beken
0d3a0c3732
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
...
--HG--
extra : rebase_source : 1bdf15c06e0e1e89a877a0f74300bf212de5b60e
2012-07-16 16:52:59 +02:00
Peter Van der Beken
00a583bb63
Fix for bug 762280 (Use nsContentUtils::PreserveWrapper for preserving expandos). r=bz.
...
--HG--
extra : rebase_source : cd426b3c3b987d8e39196e1dd1e468bc87e87f53
2012-07-16 16:52:53 +02:00
Boris Zbarsky
43d3bd71ac
Bug 757164. Move infallibility annotations into webidl. r=peterv
...
In this new setup, there are three new extended attributes: Infallible,
GetterInfallible, SetterInfallible. The first one applies to both methods and
attributes, while the last two apply only to attributes. Each one can be
either set with no value specified (in which case it applies both on main
thread and in workers) or can be set to MainThread or Workers to limit where it
applies.
If Infallible is set on an attribute, then GetterInfallible and
SetterInfallible will be ignored. So if you want to specify, for example, an
attribute that's infallible on the main thread and has an infallible getter in
workers, the right way to do that is [GetterInfallible,
SetterInfallible=MainThread].
2012-07-13 19:29:14 -04:00
Eric Faust
8cc5a05403
Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett)
2012-07-11 20:55:19 -07:00
Ed Morley
b42ebe8a76
Backout 6bbf3f22bb5d (bug 753158), 38a703b244c2 (bug 753145), c9a5dfa1b07d (bug 767750), cd782fd66995 & 6cf7aa93994c (bug 765956), 0253f34f6bc2 & 41d5c8529748 (bug 771039),94f6bf99a4aa (bug 766447),fad7d06d7dd5 (bug 772303) for winxp pgo-only jsreftest failures (caused by fad7d06d7dd5) and the rest for conflicts, on a CLOSED TREE
2012-07-12 13:04:51 +01:00
Eric Faust
c9728904d1
Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett)
2012-07-11 20:55:19 -07:00
Nathan Froyd
a7eb97f896
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Boris Zbarsky
425f8c73e4
Bug 767352. Keep track of a method's overloads in a list of IDLMethodOverload objects. r=jlebar
2012-07-06 12:21:24 -04:00
Ehsan Akhgari
16fb5a22f8
Backout changeset 4313740f1adc (bug 725907 part 3) under the suspicion of breaking Linux32 mochitest-chrome without framepointers
2012-07-04 19:25:56 -04:00
Jason Orendorff
61def7a5da
Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky.
...
--HG--
extra : rebase_source : 0820d3654318f217b8836a086234736d3aba3819
2012-07-03 16:34:56 -05:00
Siddharth Agarwal
a0067def86
Bug 770189 - dom/bindings/parser/runtests.py invocations need to be un-native-commandified. r=khuey
2012-07-03 02:02:42 +05:30
Boris Zbarsky
7d734037c4
Bug 768190. Don't allow [TreatNullAs] or [TreatUndefinedAs] on dictionary members. r=jlebar
2012-06-30 01:53:32 -04:00
Boris Zbarsky
7f6400efa5
Bug 767546. Make the WebIDLError constructor take a list of locations. r=jlebar
2012-06-30 01:53:28 -04:00
Peter Van der Beken
2d6a797659
Fix for bug 762652 (Add the new DOM bindings API to CanvasRenderingContext2D). r=bz.
2012-06-13 17:14:15 +02:00
Matt Brubeck
ae0a175ce7
Back out 438c192e561b and d6f341e77b68 (bug 762652, bug 762654) on suspicion of breaking Windows PGO tests
2012-06-27 16:24:53 -07:00
Peter Van der Beken
74a0543703
Fix for bug 762652 (Add the new DOM bindings API to CanvasRenderingContext2D). r=bz.
...
--HG--
extra : rebase_source : 8e7a2722aa1fb089baa6c1aa8604dcd0e91c1ff2
2012-06-13 17:14:15 +02:00
Peter Van der Beken
ac35c66b60
Fix for bug 768533 (Make mozilla::dom::Uint8ClampedArray::Create call JS_NewUint8ClampedArray). r=bz.
...
--HG--
extra : rebase_source : baaf7494f64a91a9315a6e1bed3f75239f8eab81
2012-06-27 11:24:46 +02:00
Peter Van der Beken
e18ac6a285
Fix for bug 768050 (Make TypedArray::Create take a wrapper cache and create JS objects in the compartment of the cache's wrapper). r=bz.
...
--HG--
extra : rebase_source : 3ec03b33913e14a113bf9283566a68fe3be5fe02
2012-06-25 18:37:46 +02:00
Boris Zbarsky
7bb590846a
Bug 766796 followup to deal with lack of WebGL on Mac OS 10.5. No review.
2012-06-26 01:09:31 -04:00
Boris Zbarsky
ae835cd014
Bug 766796. Make IDL conversions to 64-bit ints treat NaN and Infinity as 0 instead of whatever the compiler decides to do in that undefined-behavior case. r=peterv
2012-06-25 23:37:47 -04:00
Boris Zbarsky
6ced091cef
Bug 768085. Speed up WebIDL tests and make them more usable by pickling the datastructures Yacc produces for the grammar and shutting up the logging it does in the debug mode we force it into. r=khuey
2012-06-25 23:35:42 -04:00
Peter Van der Beken
7efab19797
Fix for bug 756258 (Support union types in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 5352801a4eb5085f73a5b6e78aa238c5c9d44179
2012-05-18 23:25:47 +02:00
Peter Van der Beken
1e00518240
Fix for bug 765467 (Fix special operations in the WebIDL parser). r=khuey.
...
--HG--
extra : rebase_source : 4186629224c5e822473de1931604970106c721a6
2012-05-22 12:02:21 +02:00
Boris Zbarsky
db7164a75c
Bug 766853 followup to address review comment. No review other than the other review.
2012-06-22 16:21:44 -04:00
Boris Zbarsky
0282bec6ea
Bug 766449. Use the fully namespaced class name to determine the default header name for bindings. r=peterv
2012-06-22 16:18:51 -04:00
Boris Zbarsky
c1cd32f316
Bug 766853. The two sides of an implements statement must both be non-callback interfaces. r=jlebar
2012-06-22 16:18:51 -04:00
Boris Zbarsky
bb2335a09e
Bug 766844. Non-callback interfaces must not inherit from callback interfaces. r=jlebar
2012-06-22 16:18:51 -04:00
Boris Zbarsky
3e7e99e0c5
Bug 742152. Move distinguishing index determination and verification of type-identity of preceding arguments out of codegen and into the WebIDL parser. r=jlebar
2012-06-22 16:18:50 -04:00
Boris Zbarsky
c5731be201
Bug 742213. isDistinguishableFrom should correctly check whether two interfaces can be implemented on the same object. r=jlebar
2012-06-22 16:18:50 -04:00
Boris Zbarsky
7da04fee8b
Bug 764456 part 1. Flag consequential interfaces in the WebIDL data model. r=khuey
2012-06-22 16:18:50 -04:00
Boris Zbarsky
d991f38a07
Bug 763724. Detect cycles in the interface inheritance and implementation graph. r=jlebar
2012-06-21 12:29:11 -04:00
Boris Zbarsky
22dc1c73f5
Bug 764698. Fix isDistinguishableFrom for dictionaries to work right. r=peterv
2012-06-21 12:29:11 -04:00
Boris Zbarsky
7e17893240
Add a test for enum inside dictionary. No bug, no review.
2012-06-21 12:29:11 -04:00
Ed Morley
4992a5b7b4
Merge mozilla-central to mozilla-inbound
2012-06-21 08:38:39 +01:00
Ms2ger
7199ac064a
Bug 766615 - Fix nullable WebIDL dictionaries; r=bz
2012-06-21 09:21:53 +02:00
Bobby Holley
4c113368e0
Bug 765168 - Remove js context parameter from XHR.send call chain. r=smaug
2012-06-20 12:18:39 +02:00
Boris Zbarsky
1a57def9ed
Bug 763911. Add support for interface members of dictionaries. r=khuey
2012-06-19 12:09:37 -04:00
Boris Zbarsky
32972789c0
Bug 764420. Fix ArrayBufferView unwrapping to allow DataViews. r=khuey
2012-06-19 12:08:39 -04:00
Peter Van der Beken
6a7e8ec5a9
Fix for bug 762651 (Add wrappercache to CanvasRenderingContext2D). r=bz.
2012-06-04 21:41:51 +02:00
Bill McCloskey
d6dbf66c3f
Bug 765034 - Fix unusual DOM proto array case (r=bz)
2012-06-18 17:04:38 -07:00
Boris Zbarsky
74559f9cee
Bug 746570. Get rid of bogus uses of rstrip() that are leaving random trailing spaces in the middle of our string. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
86ff83d74b
Bug 764104. Avoid collisions with C++ reserved words by using initial-caps for WebIDL enum values. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
a20f0507aa
Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob
2012-06-15 16:25:51 -04:00
Boris Zbarsky
5e2f09ce01
Bug 750297 part 1. Add support for objects that do not have a wrapper cache in WebIDL bindings. r=peterv
2012-06-15 16:25:50 -04:00
Peter Van der Beken
bb67cfb710
Fix for bug 760131 (Quickstub argument unwrapping fails for security-wrapped list proxy and paris binding objects). r=bz.
...
--HG--
extra : rebase_source : 945d58f3b73f25f05528e6c6d69745215cb4793a
2012-06-01 18:24:52 +02:00
Benoit Jacob
9b17fd0210
Bug 763604 - Use typename for type parameters of template template parameters in BindingUtil.h - r=bz
2012-06-12 17:19:52 -04:00
Boris Zbarsky
2162d8e5fc
Bug 742153 part 4. Allow strings inside sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Boris Zbarsky
cc973eeeb9
Bug 742153 part 3. Implement codegen for dictionary arguments. r=peterv
...
Another implementation option would be to put all the dictionaries in a single
file and have a static global set of ids which works across all dictionaries
and is initialized once at startup or so. That would also handle cross-file
dictionary inheritance better.
One problem that remains is the fake descriptor business. At the moment this
does not allow interface types inside dictionaries. We could probably work
around this by either refactoring code to make it possible to get the declType
independently of the actual conversion template (whether because it lives in a
separate function or because the conversion template generator knows to just
return an empty string when the fake descriptor provirder is passed) or by
figuring out a way to pass an actual descriptor provider to dictionary codegen.
2012-06-12 10:22:05 -04:00
Boris Zbarsky
e23075af03
Bug 742153 part 2. Rename isSequenceMember to isMember, since it will apply to both sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Boris Zbarsky
b38a6f1231
Bug 742153 part 1. Add support for dictionaries in the WebIDL parser. r=khuey
2012-06-12 10:22:05 -04:00
Bobby Holley
50c7e8bc6b
Bug 763341 - Handle wrappers in new dom binding QI. r=bz
...
The |ok| parent check goes away because it's ill-conceived. All it's really checking is that proxies are parented to the global, and it's impossible to port to SpecialPowers, because SpecialPowers will think that the proxy is parented to the SpecialPowers global. I don't think this check is very important, so I removed it.
2012-06-12 15:44:21 +02:00
Ed Morley
11c73f1659
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-06-12 10:36:42 +01:00
Kyle Huey
5c863e56f1
Bug 763573: Don't export PrimitiveConversions.h. r=bz
2012-06-11 13:04:34 -07:00
Ryan VanderMeulen
891e38e528
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Kyle Huey
17efd870cb
Bug 763212: Don't try to use native commands here. r=me
2012-06-10 16:03:23 -07:00
Boris Zbarsky
9921d8eb44
Bug 761772. Add support for 'implements' in WebIDL. r=khuey
2012-06-11 18:21:35 -04:00
Boris Zbarsky
bc4e7c1e12
Bug 761707 followup. Restore an assert that should not have gone away. r=ms2ger
2012-06-08 17:42:51 -04:00
Boris Zbarsky
c124f95e06
Bug 761882. Run the WebIDL parser tests during make check. r=khuey
2012-06-08 17:41:16 -04:00
Philipp von Weitershausen
9d771da697
Bug 692677 - Relax same-origin XHR restrictions for privileged applications. r=sicking
...
--HG--
extra : rebase_source : 9e8e8cf2e03b6f3d148503d92630ee898bf835bb
2012-06-07 11:28:33 -07:00
Boris Zbarsky
b4e6056558
Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
1cf783e451
Bug 761707 part 1. Rip out the various infrastructure for allowing different slot indices on different DOMJSClass instances. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
bdb4852e6b
Bug 742151. Fix the error reporting in the WebIDL parser to list correct line numbers. r=khuey
...
There are two changes here. One is to pass tracking=True to our parser. This makes it properly track positions
of all productions, not just of lexer tokens. The second is to properly count up our newlines in the lex data,
since the lexer seems to report the line number of the start of the lex data, which is always 1 in our case.
2012-06-04 21:30:03 -04:00
Boris Zbarsky
3fe02376e3
Bug 760749. Make interface type constructor args work in WebIDL bindings. r=khuey
2012-06-04 21:30:00 -04:00
Peter Van der Beken
c2751f6c3e
Fix for bug 743666 (Add back deprecated XHR.onuploadprogress). r=bzbarsky
2012-06-04 21:29:56 -04:00
Boris Zbarsky
233217b89f
Add a simple codegen test for constructors. No review, no bug, DONTBUILD
2012-06-01 21:26:20 -04:00
Boris Zbarsky
3f887fdbe1
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Boris Zbarsky
fddc56821d
Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too.
2012-05-31 16:20:49 -04:00
Boris Zbarsky
c46a9a1068
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Peter Van der Beken
8839249ab0
Fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : f676440e468c23e6c1e9458f6d75a615b9a6b8d7
2012-05-21 23:29:58 +02:00
Peter Van der Beken
5f147ab73e
Fix for bug 759278 (Support binarynames for attributes too in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 352a4d33db77dd80915700db335799bb8c19ac72
2012-05-18 23:25:47 +02:00