Boris Zbarsky
fc656d4547
Bug 928336. Make defining unforgeable properties on objects faster by just copying them from an unforgeable holder object. r=peterv
2015-03-03 21:01:58 -05:00
Boris Zbarsky
07c24c9a4b
Bug 1136896. Speed up fill() and dedent() by memoizing some of the work they currently end up doing on each call. r=jorendorff
2015-03-03 07:12:00 -05:00
Ben Kelly
e0b9075c14
Bug 940273 - Part 4 - Initial implementation of Service Worker Cache. r=ehsan,baku,janv
2015-03-02 14:20:00 +01:00
Josh Matthews
71fc1b8529
Bug 1137250 - Fix incorrect initialization of Request object. r=bz
2015-02-26 15:40:00 -05:00
Jan de Mooij
c588ad661c
Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
2015-02-27 16:08:15 +01:00
Boris Zbarsky
29c02a7c07
Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
768e9d1720
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Wes Kocher
bc62dd3b33
Backed out 4 changesets (bug 1136925) for potentially busting m-e10s-dt on a CLOSED TREE
...
Backed out changeset 331761aaae22 (bug 1136925)
Backed out changeset 2faa0e91fe23 (bug 1136925)
Backed out changeset a00f2530c911 (bug 1136925)
Backed out changeset d5e658bc0792 (bug 1136925)
2015-02-26 23:17:34 -08:00
Boris Zbarsky
e8c2fb81d9
Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
3799a3dc0f
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
0123e1e87e
Bug 1133746. Allow DOMProxyShadows to communicate to the JIT whether the shadowing is done by the expando object or not. r=efaust,peterv
2015-02-26 12:30:02 -05:00
Boris Zbarsky
cd3bf1d33b
Bug 1135810. Add more explicit checks for whether a descriptor wants Xrays or not instead of assuming that Xrays are desired if and only if descriptor.workers is false. r=peterv
2015-02-26 09:40:08 -05:00
Boris Zbarsky
571f4fc293
Bug 1136292 part 3. Stop passing a global as the parent arg to JS_NewObjectWithGivenProto in bindings code. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
23f9262764
Bug 1136292 part 1. Stop passing a parent to BindingJSObjectCreator methods, since it's always the global anyway. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
ff62f4a517
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
1eece3f61b
Bug 1133760 part 1. The ownPropNames hook can't be called via Xrays, so stop trying to handle that case. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
103a01a91d
Bug 1134730. DOM proxy finalizers should not assume that the JS object has an actual reference to the DOM object (and in particular that the slot it's stored in is a private slot). r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
be5d835708
Bug 1135803. Take out the bits that try to handle interface types mapping to JSObject* in worker descriptors, since we never do that anymore. r=smaug
2015-02-24 16:04:22 -05:00
Boris Zbarsky
df484c4fe5
Bug 1135792. Stop assuming that every binding for a global with a non-worker descriptor is a binding for Window. r=smaug
2015-02-24 16:04:22 -05:00
Boris Zbarsky
0f9ff716f0
Bug 1135151. Add a WrapNativeParent specialization for the nsIGlobalObject case, and make Event return nsIGlobalObject as its parent object. r=smaug
2015-02-23 10:03:40 -05:00
Boris Zbarsky
3943fd8cac
Bug 742194 part 1. Add support for throwing uncatchable exceptions to Web IDL bindings. People keep asking for this. r=khuey
2015-02-20 23:58:36 -05:00
Boris Zbarsky
278b7ce9de
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
Catalin Badea
89447c4b1c
Bug 1058311 - Remove prefix for SWClients. Rename getServiced to matchAll. Add stub query options for matchAll r=baku
...
--HG--
rename : dom/webidl/ServiceWorkerClient.webidl => dom/webidl/Client.webidl
rename : dom/webidl/ServiceWorkerClients.webidl => dom/webidl/Clients.webidl
rename : dom/workers/test/serviceworkers/test_get_serviced.html => dom/workers/test/serviceworkers/test_match_all.html
2015-02-20 17:16:17 +02:00
Ben Kelly
29ec96ecff
Bug 1073231 Implement Request and Response Clone() methods. r=nsm r=baku
2015-02-19 20:24:24 -05:00
Boris Zbarsky
35c20c672e
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
93775369fd
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
Josh Matthews
be893961ee
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 20:34:29 -05:00
Nikhil Marathe
b88102e5a7
Bug 1126815 - Implement Response.finalURL. r=bkelly,baku
...
--HG--
extra : rebase_source : 5180d5657c60c7aec33e9f750d24cbee9a2890e2
2015-02-17 10:23:34 -08:00
Ryan VanderMeulen
e41adc7788
Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures.
2015-02-18 16:00:33 -05:00
Josh Matthews
c1a7e4eed2
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 14:10:52 -05:00
Carsten "Tomcat" Book
92151b28e6
merge mozilla-inbound to mozilla-central a=merge
2015-02-16 15:59:56 +01:00
Jocelyn Liu
3699cd017e
Bug 1063449 - Add and implement GATT client connection related bluetooth Web APIs. r=btian, r=bz
...
This patch mainly covers:
1) Implement register/unregister client, connect/disconnect methods in BluetoothGatt object.
2) Add/Modify related webidls for 1).
3) Implement result handlers, notifications in BluetoothGattManager.
2015-02-13 17:13:00 +01:00
Boris Zbarsky
d154f1bd85
Bug 1131096. Use IDLExposureMixins for IDLInterfaceMember. r=peterv
2015-02-13 14:34:54 -05:00
Boris Zbarsky
2db9b439cb
Bug 1131796. Don't parent the DOM proxy expando object to the proxy. r=peterv
2015-02-13 14:34:53 -05:00
Wes Kocher
621f9a3c6f
Backed out changeset 4d03c3ba2969 (bug 1131796) for bustage on a CLOSED TREE
...
--HG--
extra : amend_source : 07e872ce971a620a08b68fbc2b3afdcccaff8539
2015-02-13 13:25:45 -08:00
Wes Kocher
99a83fe08f
Backed out changeset 6e0973b390f5 (bug 1131096)
2015-02-13 13:25:31 -08:00
Tom Schuster
6976ec9759
Bug 1124934 - Add a HasProperty ObjectOp. r=jorendorff
2015-02-13 12:20:02 +01:00
Boris Zbarsky
78b834acbd
Bug 1131096. Use IDLExposureMixins for IDLInterfaceMember. r=peterv
2015-02-13 14:34:54 -05:00
Boris Zbarsky
d47e00b791
Bug 1131796. Don't parent the DOM proxy expando object to the proxy. r=peterv
2015-02-13 14:34:53 -05:00
Nick Fitzgerald
770748abfb
Bug 1117242 - SavedFrame objects should do principal checks for every accessor; r=jimb,jandem,bz
2015-02-13 09:21:50 -08:00
Boris Zbarsky
4c68880cf9
Bug 1132655. Don't allow conversions from DOMString to const XPCOM string references, since it's meant to be an outparam only. r=smaug
2015-02-12 18:39:26 -05:00
Boris Zbarsky
11f1c43ca5
Bug 1132252. An interface with an interface object should not inherit from one that's [NoInterfaceObject]. r=smaug
2015-02-12 18:39:26 -05:00
Tom Schuster
c22e2c0d82
Bug 1125437 - Get rid of SetPropertyAttributes and use DefineProperty to follow ES6 specification. r=efaust
2015-02-11 23:40:47 +01:00
Tom Schuster
8f3890f934
Bug 1131003 - Move jsproxy.h to js/Proxy.h. r=efaust
...
--HG--
rename : js/src/jsproxy.h => js/public/Proxy.h
2015-02-10 19:58:18 +01:00
Boris Zbarsky
0869f8ba2c
Bug 1127501. Treat external interfaces as only being exposed in Window in Web IDL bindings. r=peterv
2015-02-09 11:42:27 -05:00
Boris Zbarsky
dfbff1d2f0
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
0d58dbbaf9
Bug 1127341. If we make our codegen for a binding depend on the exposure set of an interface argument to one of the binding's methods, we need to adjust the dependency set of the binding accordingly, so we'll regenerate if the exposure set changes. r=khuey
2015-02-09 11:42:26 -05:00
Dhi Aurrahman
e0a3d64aa1
Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz
2015-02-04 18:46:26 +07:00
JW Wang
3118ef8c6a
Bug 1128379 - improve error handling in MediaKeys::CreateSession. r=bz
2015-02-01 19:12:00 +01:00
Jason Orendorff
81e4343779
Bug 1127121 - Remove property key type splitting in ObjectOps. r=bhackett.
...
--HG--
extra : rebase_source : dab65791e3efc9fc625365b6aa5dc26d5cad19fb
2015-01-28 17:12:44 -06:00
Mike Hommey
824818ee98
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
...
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Tom Schuster
3374698e65
Bug 1127443 - Move some JS_NewObject callers to JS_NewObjectWithGiveProto
2015-01-31 16:18:51 +01:00
JW Wang
6802f989fc
Bug 1121332. Part 4 - implement MediaKeySession.keyStatuses and remove MediaKeySession.getUsableKeyIds. r=bz.
2015-01-31 13:23:07 +13:00
Boris Zbarsky
8391845329
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
1a673bc891
Bug 1069416 - Part 7: Remove JS_HAS_SYMBOLS from dom. r=smaug
2015-01-28 13:06:38 +09:00
Jeff Walden
d2d785f69e
Bug 1112774 - Add a raft of other conversion methods to js/public/Conversions.h past just JS::ToObject. r=jorendorff
...
--HG--
extra : rebase_source : 5d04a08a8fd51952283ce2a819149da035311b59
2014-12-17 13:50:20 -08:00
Bill McCloskey
411974faf9
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-26 13:32:18 -08:00
Ehsan Akhgari
e05321fd66
Bug 1069719 follow-up: Fix indentation
...
DONTBUILD
2015-01-26 11:23:49 -05:00
Ehsan Akhgari
95c577a8a5
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
Gijs Kruitbosch
cdf66ba346
Bug 1116010 - ensure nsITreeView is already QId when returned, r=peterv
2015-01-26 12:05:15 +00:00
Masatoshi Kimura
0676786e20
Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo
2015-01-26 07:22:11 +09:00
Boris Zbarsky
692ac8a7cc
Bug 1123541. Make sure to assign to resultVar in the binding call generator even if resultVar is predeclared, as long as we have a result to assign. r=peterv
2015-01-24 22:40:53 -05:00
Phil Ringnalda
29421754ff
Back out 2 changesets (bug 1125351, bug 1069719) for m-oth bustage
...
CLOSED TREE
Backed out changeset fb315ec11af4 (bug 1125351)
Backed out changeset 0ab33c2362cf (bug 1069719)
2015-01-24 14:52:07 -08:00
Ehsan Akhgari
5e290aadb7
Bug 1125351 - Make nsIDocShell.isPrerendered infallible; r=bzbarsky
2015-01-24 15:14:01 -05:00
Ehsan Akhgari
c0583fcfb9
Bug 1069719 - Abort the execution of scripts when a prerendered page calls an IDL blacklisted function; r=bzbarsky
2015-01-24 15:13:28 -05:00
Tom Schuster
0998506fdb
Bug 1122619 - Remove getPropertyAttributes object ops. r=jorendorff
2015-01-24 16:38:08 +01:00
Tom Schuster
8875fc0ed6
Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz
2015-01-24 16:38:08 +01:00
Nikhil Marathe
da6048aea3
Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku relanding because it wasn't supposed to be backed out on a CLOSED TREE
...
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.
--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : source : 5ed6d1902cc7bafbf9ffeaf35815c56cdd8f8c0d
extra : amend_source : eab06a362baf7545b9b61e28316666c2ec76acac
2014-11-06 07:57:57 -08:00
Wes Kocher
9d564e2e3e
Backed out changeset 5ed6d1902cc7 (bug 1113621) for asan mochitest-4 bustage on a CLOSED TREE
...
--HG--
rename : dom/webidl/ExtendableEvent.webidl => dom/webidl/InstallPhaseEvent.webidl
2015-01-23 19:49:51 -08:00
Nikhil Marathe
bd0bc01fa2
Bug 1122677 - Disallow request body when method is HEAD/GET.
...
Spec bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=27846
and :annevk OKed putting the check in the constructor and throwing http://logs.glob.uno/?c=content#c259382
--HG--
extra : rebase_source : 224da5d5f19387ffd95fc42c38a99b0e25427551
2015-01-16 13:08:19 -08:00
Nikhil Marathe
5bf20c02ef
Bug 1121682 - fetch() should reject with TypeError
...
--HG--
extra : rebase_source : 9e8d5e193695b856280c769dccc128c4ce4797d3
2015-01-14 13:43:27 -08:00
Nikhil Marathe
3e3ec7b71d
Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku
...
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.
--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : rebase_source : c9d314c6cffd577ab7309eb9e39e7d80f2f294f7
2014-11-06 07:57:57 -08:00
Boris Zbarsky
037cbb41ae
Bug 1107443 part 6. Make attempts to define a non-configurable property via WindowProxy throw. r=peterv,jorendorff
2015-01-23 09:54:15 -05:00
Boris Zbarsky
321e238728
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
Wes Kocher
604504d962
Backed out 3 changesets (bug 1123461, bug 1123090) for windows build bustage
...
Backed out changeset 2c442905d0af (bug 1123461)
Backed out changeset d7aa4c72ebab (bug 1123461)
Backed out changeset 8bb689ec8086 (bug 1123090)
2015-01-22 21:04:33 -08:00
Bill McCloskey
72bdc7e0df
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-22 20:00:19 -08:00
Tom Schuster
e600e170fe
Bug 1122552 - Introduce [[GetOwnProperty]] object op. r=jorendorff,bz
2015-01-22 17:17:26 +01:00
Ehsan Akhgari
d3a38ade02
Bug 1123113 - Mark ParentObject as stack class, and its mObject member as non-owning; r=bzbarsky
2015-01-21 11:21:09 -05:00
Boris Zbarsky
f718167620
Bug 1121688. Filter out overloads with non-worker-exposed arguments when generating worker bindings. r=peterv
2015-01-20 16:44:14 -05:00
Ehsan Akhgari
b6b7be80a8
Bug 1123114 - Mark DOMString::mStringBuffer as unsafe; r=smaug
2015-01-18 18:43:02 -05:00
Phil Ringnalda
823e1db1a5
Back out 3 changesets (bug 885982, bug 1118063) for b2g mochitest-6 bustage
...
CLOSED TREE
Backed out changeset 865e7bc208df (bug 885982)
Backed out changeset 9ede577f5ada (bug 885982)
Backed out changeset 6ccc86f7429e (bug 1118063)
--HG--
rename : dom/network/interfaces/nsITCPServerSocketInternal.idl => dom/network/interfaces/nsIDOMTCPServerSocket.idl
2015-01-17 13:26:10 -08:00
Josh Matthews
994d86067c
Bug 885982 - Convert MozTCPSocket to WebIDL. r=baku
2013-06-24 16:50:00 -04:00
Josh Matthews
918cdf2fc9
Bug 1118063 - Convert TCPServerSocket to WebIDL. r=baku,smaug,mayhemer,asuth
...
--HG--
rename : dom/network/interfaces/nsIDOMTCPServerSocket.idl => dom/network/interfaces/nsITCPServerSocketInternal.idl
2015-01-17 11:57:41 -05:00
Boris Zbarsky
c21acbd01a
Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
68191a4bd7
Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
5072426e02
Bug 1118978 part 1. Introduce "Affects" and "DependsOn" state for IDL attributes and operations and desugar [Pure] and [Constant] into that state. r=peterv
...
This does not change the generated binding code in any way for our existing IDL files.
2015-01-15 17:39:01 -05:00
Jeff Gilbert
1540d7f105
Bug 1109945 - Rewrite shader/program handling. - r=kamidphish
2015-01-15 15:40:39 -08:00
Wes Kocher
6cb24c572d
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
20da84c169
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
d54f0f8070
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
3fe6ab7f53
Bug 1107953 part 2. Change codegen to output an aCompartment argument on all callbacks that have an aExceptionHandling argument. r=peterv
2015-01-15 17:39:02 -05:00
Boris Zbarsky
318b2f3458
Bug 1107953 part 1. Change the invariants around aCompartment in CallSetup to allow passing it even when the exception handling mode is eRethrowExceptions. r=bholley
2015-01-15 17:39:01 -05:00
Boris Zbarsky
01cd1bbb1b
Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
863d0ceb3d
Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
c26175fba9
Bug 1118978 part 1. Introduce "Affects" and "DependsOn" state for IDL attributes and operations and desugar [Pure] and [Constant] into that state. r=peterv
...
This does not change the generated binding code in any way for our existing IDL files.
2015-01-15 17:39:01 -05:00
Ms2ger
230617c722
Bug 914067 - Remove JSVAL_VOID from dom/; r=jst
2015-01-14 08:59:06 +01:00
Peter Van der Beken
e08d1eb1bb
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
Peter Van der Beken
f325dbfd73
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make VRFieldOfView use a binding that owns its native. r=vlad.
...
--HG--
extra : rebase_source : 001706183a7ed9d7ec96b2f9bd0813bde6aaa5b1
2014-12-11 20:15:32 +01:00
Peter Van der Beken
4194a60899
Bug 1096328 - Remove nativeOwnership from Bindings.conf, remove the now unused nativeOwnership property. r=bz.
...
--HG--
extra : rebase_source : 1d4d543c6d32c0f3cd69fc8d360bc07ace341699
2014-11-01 15:25:55 +01:00
Peter Van der Beken
4fc4deb8c5
Bug 1096328 - Remove nativeOwnership from Bindings.conf, don't condition wrapperCache on having a refcounted type. r=bz.
...
--HG--
extra : rebase_source : bb311c61db74fce4993bf7e4b781730e23ca16fa
2014-11-01 15:22:21 +01:00