Commit Graph

2105 Commits

Author SHA1 Message Date
Kyle Huey
4775871523 Bug 975052. r=smaug 2014-02-26 11:00:40 -08:00
Luke Wagner
0b60875286 Bug 976763 - Change DescribeStack not to return JSScripts or JSFunctions (r=bz)
--HG--
extra : rebase_source : d9a784df61c00421c9a1e360f92ffc763bf49858
2014-02-25 09:43:14 -06:00
Boris Zbarsky
54b6eab72f Bug 962256 yet another part. Eliminate some unnecessary roots in HTMLDocumentBinding::DOMProxyHandler::get. r=bholley 2014-02-26 12:40:57 -05:00
Masayuki Nakano
1aa46ecaec Bug 975688 part.7 Rename nsDOMDataContainerEvent to mozilla::dom::DataContainerEvent r=smaug
--HG--
rename : dom/events/nsDOMDataContainerEvent.cpp => dom/events/DataContainerEvent.cpp
rename : dom/events/nsDOMDataContainerEvent.h => dom/events/DataContainerEvent.h
2014-02-26 14:23:57 +09:00
Masayuki Nakano
ecd0285da8 Bug 975688 part.6 Rename nsDOMCompositionEvent to mozilla::dom::CompositionEvent r=smaug
--HG--
rename : dom/events/nsDOMCompositionEvent.cpp => dom/events/CompositionEvent.cpp
rename : dom/events/nsDOMCompositionEvent.h => dom/events/CompositionEvent.h
2014-02-26 14:23:57 +09:00
Masayuki Nakano
44a8f70f42 Bug 975688 part.5 Rename nsDOMCommandEvent to mozilla::dom::CommandEvent r=smaug
--HG--
rename : dom/events/nsDOMCommandEvent.cpp => dom/events/CommandEvent.cpp
rename : dom/events/nsDOMCommandEvent.h => dom/events/CommandEvent.h
2014-02-26 14:23:57 +09:00
Masayuki Nakano
08c75d14ce Bug 975688 part.4 Rename nsDOMClipboardEvent to mozilla::dom::ClipboardEvent r=smaug
--HG--
rename : dom/events/nsDOMClipboardEvent.cpp => dom/events/ClipboardEvent.cpp
rename : dom/events/nsDOMClipboardEvent.h => dom/events/ClipboardEvent.h
2014-02-26 14:23:56 +09:00
Masayuki Nakano
03db3ba123 Bug 975688 part.3 Rename nsDOMBeforeUnloadEvent to mozilla::dom::BeforeUnloadEvent r=smaug
--HG--
rename : dom/events/nsDOMBeforeUnloadEvent.cpp => dom/events/BeforeUnloadEvent.cpp
rename : dom/events/nsDOMBeforeUnloadEvent.h => dom/events/BeforeUnloadEvent.h
2014-02-26 14:23:56 +09:00
Masayuki Nakano
64ccb1e296 Bug 975688 part.2 Rename nsDOMAnimationEvent to mozilla::dom::AnimationEvent r=smaug
--HG--
rename : dom/events/nsDOMAnimationEvent.cpp => dom/events/AnimationEvent.cpp
rename : dom/events/nsDOMAnimationEvent.h => dom/events/AnimationEvent.h
2014-02-26 14:23:56 +09:00
Masayuki Nakano
a4dd828377 Bug 975688 part.1 Rename DOMWheelEvent to WheelEvent r=smaug
--HG--
rename : dom/events/DOMWheelEvent.cpp => dom/events/WheelEvent.cpp
rename : dom/events/DOMWheelEvent.h => dom/events/WheelEvent.h
2014-02-26 14:23:55 +09:00
Olli Pettay
21f0e5d1ed Bug 976302 - MutationRecord should use mozilla::dom::DOMString, r=bz
--HG--
extra : rebase_source : 20188f6025d24c4ee109aefaa2642fb586147223
2014-02-26 02:45:08 +02:00
Boris Zbarsky
c2283f49a9 Back out revision c35458a437cc (bug 976305) for breaking DataStore tests. r=orange 2014-02-25 18:52:21 -05:00
Boris Zbarsky
760d08fda8 Bug 976305. Use the callee, not the irrelevant this value, to figure out the GlobalObject for a static WebIDL method. r=bholley 2014-02-25 17:26:16 -05:00
Kyle Huey
566ed0b282 Bug 974120: Add helpers for using Promse::MaybeResolve/MaybeReject from C++. r=bz
Using JSAPI is tedious and error-prone.  It's much better to handle that once in the Promise code and allow callers to pass C++ objects.
2014-02-25 13:34:55 -08:00
Boris Zbarsky
cf34412533 Bug 972312 part 1. Generate virtual As*Event functions on WebIDL events so that we can easily go from an nsDOMEvent to the relevant event subtype. r=smaug 2014-02-23 00:01:12 -05:00
Bobby Holley
6aafbb79d5 Bug 973780 - Remove Xray expando slot from new-binding objects. r=bz 2014-02-21 11:35:49 -08:00
Luke Wagner
4eed36705e Bug 797126 - Remove tinyid/shortid/userid (r=terrence)
--HG--
extra : rebase_source : d3cee5e71ca02708e91419b209b5914ce9fd2f9f
2014-02-21 10:24:26 -06:00
Phil Ringnalda
a196f2815f Back out 0f5f58d5d410:8db4d719f5f8 (bug 973780) for debug WinXP mochitest-3 assertions
CLOSED TREE
2014-02-20 20:46:50 -08:00
Bobby Holley
d1f7b89e33 Bug 973780 - Remove Xray expando slot from new-binding objects. r=bz 2014-02-20 18:24:10 -08:00
Boris Zbarsky
e15f10d52f Bug 973905. setTimeout/setInterval with a string first arg but more than two arguments should still work (and ignore the extra arguments). r=smaug 2014-02-19 10:13:38 -05:00
Boris Zbarsky
2166b04394 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
c79e8f4c6e Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
Phil Ringnalda
369e9f3db8 Merge b-i to m-c 2014-02-15 10:01:36 -08:00
Bobby Holley
263626e418 Bug 968335 - Tests. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley
c1aac455ec Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley
82bb2b3581 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
Mike Habicher
a28ebb99d1 Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus 2014-02-14 17:41:07 -05:00
Phil Ringnalda
d66d0a8ba2 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
11ba09a104 Bug 968335 - Tests. r=bz 2014-02-14 16:13:38 -08:00
Bobby Holley
87fced96fc Bug 968335 - Implement GetCallerPrincipalOverride. r=bz 2014-02-14 16:13:38 -08:00
Bobby Holley
0c61d3f804 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
Michael Shuen
5fc2830e48 Bug 934817 - Part 2.5: Remove 0-length string check in dom/bindings/BindingUtils.cpp. r=bz 2014-02-14 11:15:43 -05:00
Jeff Gilbert
4507e98ad6 Bug 823454 - Implement EXT_frag_depth for WebGL. - r=kamidphish 2014-02-13 15:00:12 -08:00
Jon Coppeard
8136579d75 Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz 2014-02-13 15:33:04 +00:00
Jeff Gilbert
f293d9048e Bug 912280 - Implement OES_texture_half_float_linear for WebGL. r=kamidphish 2014-02-13 09:53:53 -05:00
Boris Zbarsky
e929ede0ba Back out bug 952890, since the dependencies aren't fixed yet. 2014-02-14 10:50:19 -05:00
Boris Zbarsky
e56fd2f65b Bug 952890 part 2. Remove the IsArrayLike method, since it no longer matches any spec concept. r=peterv 2014-02-14 10:46:09 -05:00
Boris Zbarsky
28bfb81241 Bug 952890 part 1. Make WebIDL sequence JS to C++ conversions use for-of iteration, not length/index gets. r=peterv 2014-02-14 10:46:09 -05:00
Jon Coppeard
52381adba2 Bug 969812 - Convert JS_NewArrayObject to use HandleValueArray r=terrence r=bz 2014-02-12 10:50:46 +00:00
Jeff Gilbert
57f9c5bee8 Bug 968374 - Implement WEBGL_debug_shaders. r=bjacob 2014-02-11 17:37:06 -05:00
Nathan Froyd
3edbced6b9 Bug 970507 - mark generated DOMIfaceAndProtoJSClass instances as const; r=bz 2014-02-10 15:11:58 -05:00
Nathan Froyd
7f92d77d8b Bug 957175 - reduce relocations required by NamesOfInterfacesWithProtos; r=bz 2014-02-10 10:24:38 -05:00
Jon Coppeard
60baf94ae8 Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug 2014-02-11 10:59:16 +00:00
Nathan Froyd
b32b109033 Bug 969022 - remove s*_ids static constructors by explicitly tracking id initialization state; r=bz 2014-02-06 15:05:30 -05:00
Boris Zbarsky
9ba0ae8d76 Bug 956806 part 2. Share generic getters/setters/methods across all bindings. r=peterv 2014-02-07 15:56:14 -05:00
Boris Zbarsky
2292f3d2fe Bug 956806 part 1. Output a list of prototype names in PrototypeList.cpp. r=peterv 2014-02-07 15:50:23 -05:00
Ryan VanderMeulen
15a84a312d Backed out changeset 8d885b139d7d (bug 912280) for bustage. 2014-02-07 10:38:27 -05:00
Jeff Gilbert
40f251b54b Bug 912280 - Implement OES_texture_half_float_linear for WebGL. r=kamidphish 2014-02-07 10:21:49 -05:00
Boris Zbarsky
e698cf1909 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
0086cc6b41 Bug 968665. Get rid of MainThreadDictionaryBase and the dictionary bits in DummyBinding, since we now codegen a single version of dictionaries for both mainthread and workers. r=khuey 2014-02-06 21:08:28 -05:00
Ehsan Akhgari
17afb3cc47 Bug 968643 - Part 2: Remove the [PrefControlled] WebIDL annotation; r=bzbarsky 2014-02-06 13:28:35 -05:00
Boris Zbarsky
eeb237d028 Bug 964875 part 3. Define WebIDL quickstubs for ChromeWindow. r=peterv 2014-02-05 23:37:30 -05:00
Boris Zbarsky
a756bb64f1 Bug 964875 part 1. Add a WebIDL ChromeWindow interface for use in instanceof once Window is on WebIDL bindings. r=peterv 2014-02-05 23:36:57 -05:00
Boris Zbarsky
d725d76e5d Bug 967694. Don't generate Xray resolveOwnProperty/enumerateOwnProperties hooks on WebIDL Xrays for plugin-loading elements, because those elements really only want to have the hook called when they're being touched by script from the same website. r=bholley 2014-02-05 13:38:18 -05:00
Boris Zbarsky
8367dee14d Bug 965094. Reconcile the behavior of the JSObject* argument for Func on interfaces and on interface members. r=bholley 2014-02-05 13:38:18 -05:00
Boris Zbarsky
6f28d8d5e1 Bug 963380. Improve codegen for [Cached] and [StoreInSlot] attributes that have multiple wrapping paths to have less duplicated code. r=peterv 2014-02-05 13:38:17 -05:00
Boris Zbarsky
e7b1ebd5b3 Bug 958667 part 5. Hook up AvailableIn for interface members. r=peterv 2014-02-05 13:38:17 -05:00
Boris Zbarsky
d3c7b3b9dd Bug 958667 part 4. Hook up an AvailableIn extended attribute for interfaces. r=peterv 2014-02-05 13:38:17 -05:00
Boris Zbarsky
879fbfa3c5 Bug 958667 part 3. Add helper methods for testing whether things should be exposed in privilegd or certified apps. r=peterv 2014-02-05 13:38:17 -05:00
Boris Zbarsky
f18d0da850 Bug 958667 part 1. Make it possible to use multiple methods of disabling the visibility of a constructor at once, disabling it if any of them says it should be disabled. r=peterv 2014-02-05 13:38:16 -05:00
Boris Zbarsky
4d16883304 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
da001d4b79 Bug 963321 part 2. Add codegen support for [Cached] dictionary attributes. r=khuey 2014-02-05 13:38:16 -05:00
Boris Zbarsky
8ad668ddf4 Bug 963321 part 1. Add WebIDL parser support for having [Cached] dictionary attributes. r=khuey
We don't know at handleExtendedAttribute time what the identifier will
map to, so have to do the check that [Frozen] is not being misused
later.
2014-02-05 13:38:15 -05:00
Bill McCloskey
9fdb4bef1f Bug 962604 - Add ActorDestroy handling to CPOWs (r=mrbkap) 2014-02-05 08:39:59 -08:00
Bobby Holley
9e65275dc6 Bug 959013 - Create storage for declarative class bootstrapping information on js::Class. r=luke 2014-02-04 07:51:54 -08:00
Boris Zbarsky
264a2cc7b2 Bug 966665. Don't DCE DOM method calls and getters that can throw exceptions. r=jandem 2014-02-03 11:04:06 -05:00
Kyle Huey
f141384649 Bug 958011: Fix worker object cycle collection to not rely on the JSObject being finalized, which is a bogus assumption. r=bent,mccr8 2014-02-02 10:08:50 -08:00
Kyle Huey
13bc0f5963 Bug 966466: Rename thisObj to thisObjPtr so people will know what to pass in. r=bz 2014-02-02 10:08:46 -08:00
Jon Coppeard
50e1f34d5a Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Eric Faust
0c400f38e9 Bug 924720 - Followup: Remove js::IsProxyClass(clasp), and use clasp->isProxy() instead. (r=jwalden) 2014-02-01 00:30:44 -08:00
Eric Faust
9a5e3c40b9 Bug 947487 - Part 2: Generate and use js::Class structs for DOM proxies. (r=bz) 2014-02-01 00:29:52 -08:00
Eric Faust
abe21d7dd4 Bug 947487 - Part 1: Convert DOMJSClass::mBase from JSClass to js::Class. (r=bz) 2014-02-01 00:29:50 -08:00
Nathan Froyd
93c963cf39 Bug 965634 - move nsString construction out of mozilla::dom::Register for a codesize win; r=bz 2014-01-30 14:53:49 -05:00
Carsten "Tomcat" Book
2a6caad1f0 Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE 2014-01-31 12:11:23 +01:00
Jon Coppeard
858370c616 Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Masatoshi Kimura
b2599eeeaf Bug 964964 - Remove window.pkcs11. r=bz 2014-01-30 20:00:01 +09:00
Boris Zbarsky
337dd3b343 Bug 965477. Enter the compartment of obj in ClearCached*Value in the StoreInSlot case. r=bholley 2014-01-29 22:33:50 -08:00
Boris Zbarsky
1532d7d50b Bug 945416 part 6. Fix the resolve/enumerate hooks in WebIDL bindings in the [Global] case to handle standard classes. r=peterv 2014-01-29 22:33:33 -08:00
Boris Zbarsky
3ecc0d422f Bug 945416 part 3. Make GlobalResolve fill in a JSPropertyDescriptor that nsWindowSH::NewResolve then uses to actually define the property. r=bholley,peterv 2014-01-29 22:33:23 -08:00
Boris Zbarsky
2cc31b028d Bug 945416 part 2. When invoking a DoNewResolve hook on an Xray, make sure to first invoke it on the underlying object. r=bholley,peterv 2014-01-29 22:33:22 -08:00
Boris Zbarsky
e5abd9db16 Bug 963895. Add threadsafe versions of AutoJSContext/AutoSafeJSContext. r=bholley 2014-01-29 22:33:03 -08:00
Vladimir Vukicevic
a988bc2a34 b=738872, implement WebGL OES_texture_half_float; part 2 - core impl; r=jgilbert 2014-01-23 16:47:37 -05:00
Andrea Marchesini
318161305a Bug 964892 - WebIDL 'assert' method should be implemented as '_assert_'. r=bz 2014-01-29 08:16:57 -05:00
Ehsan Akhgari
275064aea3 Bug 964061 - Part 2: Remove nsIDOMCRMFObject; r=bzbarsky
--HG--
extra : rebase_source : 888e33d68bdcd6e03b56f75036ea00142831961d
2014-01-27 08:27:06 -08:00
Ehsan Akhgari
39c2869469 Bug 964061 - Part 1: Convert CRMFObject to WebIDL bindings; r=bzbarsky
--HG--
extra : rebase_source : 39a2b35df50cdd42624fb0e7a14383e8d40cea4b
2014-01-27 08:27:04 -08:00
Andrea Marchesini
994bd1f6f9 Bug 620935 - Make console object available in Web Workers, r=ehsan, r=bz 2014-01-26 12:35:17 +00:00
Andrea Marchesini
c19e1d8813 Bug 620935 - __noSuchMethod__ support for WebIDL r=bz 2014-01-26 12:35:10 +00:00
Jon Coppeard
cb8c659700 Bug 959787 - Handlify JS_Set* APIs r=terrence r=bz 2014-01-25 09:29:12 +00:00
Bobby Holley
094cd93292 Bug 957688 - Kill off checkAccess. r=mrbkap 2014-01-24 16:08:26 -08:00
Andrea Marchesini
6670254f5b Bug 963560 - Fix compilation error on VS2013 for method called 'assert', r=bz 2014-01-24 15:45:24 +00:00
Carsten "Tomcat" Book
8a8907d06b Backed out changeset 235d4c57787f (bug 620935) for m13 perma-orange on a CLOSED TREE 2014-01-24 15:14:43 +01:00
Carsten "Tomcat" Book
7dfe20e2c1 Backed out changeset 691a1d12372a (bug 620935) for m13 perma orange on a CLOSED TREE 2014-01-24 15:14:17 +01:00
Andrea Marchesini
abf4ee0f2e Bug 620935 - Make console object available in Web Workers, r=ehsan, r=bz 2014-01-24 08:55:59 +00:00
Andrea Marchesini
2e286affe6 Bug 620935 - __noSuchMethod__ support for WebIDL r=bz 2014-01-24 08:55:42 +00:00
Olli Pettay
58ac100785 Bug 963285 - CallSetup may set context options but not restore them , r=bz 2014-01-24 00:56:50 +02:00
Nikhil Marathe
bb153a3ce5 Bug 879245 - Implement thenables for Promises. r=bz
--HG--
extra : rebase_source : cde27792ae58b13c88367df7a99fc8981097eedd
2014-01-23 10:47:29 -08:00
Ryan VanderMeulen
cfa34a1a14 Backed out changesets fbc3bb6c002f and 3da2b2a2899b (bug 620935) for debug B2G mochitest-13 crashes. 2014-01-23 10:09:10 -05:00
Boris Zbarsky
9eb56076b1 Bug 958576 part 2. Move FakeDependentString to the binding_detail namespace. r=peterv
I took the opportunity to move away from the NonNull<nsAString> hack
we had for string arguments, since just passing in a
FakeDependentString works fine and callees are now less likely to
declare their arg as being of that type.

In the process of doing that, I ran into what looks like a substantive
bug in the "owning union with string default value" case: We were
doing mValue.mString.Value() without ever having constructed
mValue.mString!
2014-01-22 14:37:10 -05:00
Boris Zbarsky
dcfb519fa1 Bug 958576 part 1. Create a binding_detail namespace and move AutoSequence to it. r=peterv
Note that we can't name this namespace "detail", because then we'd
have both ::mozilla::detail and ::mozilla::dom::detail namespaces in
the tree and various template name lookups that look for "detail::Foo"
would get confused, and the code would not compile.  C++ strikes
again.
2014-01-22 14:37:10 -05:00
Andrea Marchesini
21fbd9fcfe Bug 620935 - Make console object available in Web Workers, r=ehsan, r=bz 2014-01-23 09:25:41 +00:00