Mark Capella
30621de994
Bug 730925 - XHR.getAllResponseHeaders should use CRLF, not LF per spec, r=jst, r=jonas, f=ms2ger
2012-07-26 11:55:23 -04:00
Boris Zbarsky
28e194f0fa
Bug 761278. Remove the non-standard uploadprogress event on XMLHttpRequest. r=sicking
2012-07-21 22:28:26 -04:00
Jason Duell
380d2ba82c
Backout f142f32a98a3 (Bug 775317) and ef14686c31d0 (Bug 761278). r=bustage
2012-07-21 20:05:37 -07:00
Boris Zbarsky
cb41ce90ee
Bug 761278. Remove the non-standard uploadprogress event on XMLHttpRequest. r=sicking
2012-07-21 22:28:26 -04:00
Cameron McCormack
a04d369a7d
Bug 771903 - Fix member initialization order warning. r=smaug
2012-07-09 11:09:51 +10:00
Ed Morley
648eed5d6e
Merge mozilla-central to mozilla-inbound
2012-06-21 08:38:39 +01:00
Ms2ger
df1c452d41
Bug 765468 - Use a dictionary for the argument to the XMLHttpRequest constructor; r=bz
2012-06-21 09:21:55 +02:00
Philipp von Weitershausen
8d7647348d
Bug 763814 - System XHR: Don't leak XMLHttpRequestParameters; r=Ms2ger
2012-06-21 09:21:16 +02:00
Bobby Holley
8d72bf921c
Bug 765168 - Remove js context parameter from XHR.send call chain. r=smaug
2012-06-20 12:18:39 +02:00
Bobby Holley
46527f944d
Bug 765168 - Remove the dependency of XHR::send on a cx parameter. r=smaug
...
Given the new bindings, I think this is dead code anyway modulo the pref.
2012-06-20 12:18:39 +02:00
Ehsan Akhgari
2050b687cc
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (content parts); r=bzbarsky
...
--HG--
extra : rebase_source : e25a064995914ca4f7b1db16b5725eb440d3e531
2012-06-18 22:30:09 -04:00
Boris Zbarsky
24593505c7
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
Ryan VanderMeulen
0798422bbf
Merge m-c to inbound
2012-06-10 17:59:00 -04:00
Olli Pettay
e160cfea86
Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst
2012-06-10 21:14:30 +03:00
Olli Pettay
be6c155114
Bug 756277 - XMLHttpRequest started from Cc['@mozilla.org/xmlextras/xmlhttprequest;1'] ends up bound to some random window, r=bz
...
--HG--
extra : rebase_source : 480dbf41846fee3362697cb0bf537281f35845e0
2012-06-08 23:45:13 +03:00
Andrew McCreight
aa90a88409
Bug 754478 - clean up cycle collector JS tracing callbacks. r=bent
2012-05-15 09:56:39 -07:00
Philipp von Weitershausen
79d98e1dd2
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
ac1bfb338d
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Boris Zbarsky
464164e820
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
6af95f383e
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Boris Zbarsky
702a4a496f
Bug 743906 part 2. Use Optional<> for optional arguments that don't have default values. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
cd87a47887
Bug 749864. Codegen for typed array and arraybuffer arguments. r=peterv
2012-05-25 01:07:03 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Alexandre Poirot
b74038af93
Bug 682305 - nsXMLHttpRequest::Send fails with mChannel being implemented in JS. r=sicking
2012-05-10 19:58:48 +01:00
Blake Kaplan
94c4150fb9
Backed out changeset ad106d37ee43. The bug number in the changeset was wrong.
2012-05-15 12:03:01 +02:00
Alexandre Poirot
ce12f7fafe
Bug 736046 - nsXMLHttpRequest::Send fails with mChannel being implemented in JS r=sicking
...
--HG--
extra : rebase_source : 447999d425cb6a405c287fecdcfc7810676ea3b9
2012-05-10 19:58:48 +01:00
Benjamin Smedberg
dd1b0e7adc
Bug 737164 part C - switch various in-tree callers which are using fallible strings to keep using them
...
--HG--
extra : rebase_source : f5b42ba1f5745b256ba4e4ca67c883696904f9c1
2012-05-08 13:55:24 -04:00
Boris Zbarsky
73485dea64
Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
...
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Phil Ringnalda
15ea61df18
Back out 1907bf7e6d7c (bug 749485) for build bustage
2012-05-05 20:33:59 -07:00
Boris Zbarsky
d6697e4410
Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
...
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Boris Zbarsky
2299a42041
Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
...
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom. General files not specific to an interface are also exported into
mozilla/dom.
In terms of namespaces, most things now live in mozilla::dom. Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).
IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum. We then typedef
EnumFooValues::valuelist to EnumFoo. That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.
The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.
The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Masatoshi Kimura
799eae8b67
Bug 750023 - Add a null check in nsXMLHttpRequest::CreatePartialBlob. r=smaug
2012-04-30 15:49:15 -07:00
Tom Schuster
886fac49f9
Bug 711843 - Update JSAPI for typed arrays, remove uses of jstypedarray.h outside the engine [r=Waldo,bz,Ms2ger,bholley,bjacob,philikon,evilpie,bent,yourmama] [a=mfinkle thanks to gkw]
2012-01-14 09:43:00 -08:00
Olli Pettay
639bc8865b
Bug 743178, CORS may keep XHR alive too long, r=bz, a=tracking-firefox14+
2012-04-17 23:55:40 +03:00
Ed Morley
18b9148c4f
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-03-31 22:41:59 +01:00
Olli Pettay
c7a649ab35
Bug 641821, MutationObserver, r=sicking
...
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Peter Van der Beken
ed510d3506
Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug.
...
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Peter Van der Beken
ffde1d1745
Bug 732377. Add the API for the new DOM bindings to XMLHttpRequest. r=bzbarsky
2012-03-26 08:38:06 -07:00
Henri Sivonen
e6a2a996e5
Bug 701361 - Add a telemetry probe for finding out how commonly multipart XHR is used on the Web. r=smaug.
2012-03-28 10:33:18 +03:00
Jonas Sicking
0e82d01876
Bug 301705: Don't throw when XMLHttpRequest.status is gotten too early. r=bz
2012-03-26 01:40:09 -07:00
Patrick McManus
5090fe4d7b
bug 599164 pipeline with type and state r=honzab
2012-03-22 19:39:31 -04:00
Peter Van der Beken
efadad15ae
Fix for bug 736229 (Stop storing expando objects in the wrapper cache, store the proxy instead). r=jst.
2012-03-14 15:22:10 +01:00
Olli Pettay
08fc2403d5
Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, part2, r=jst
2012-03-13 02:56:20 +02:00
Olli Pettay
b063392a27
Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent
2012-03-13 02:56:07 +02:00
Makoto Kato
b6e9c4d7bb
Bug 590390 - deCOM nsICharsetAlias. r=smontagu
...
--HG--
rename : intl/locale/public/nsICharsetAlias.h => intl/locale/public/nsCharsetAlias.h
rename : intl/locale/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAlias.cpp
2012-03-05 12:57:51 +09:00
Ed Morley
3aea95e2d2
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-02-21 11:59:33 +00:00
Ms2ger
990ebfa404
Bug 726434 - Return DOMString for XMLHttpRequest.getAllResponseHeaders(); r=bent
2012-02-21 10:34:01 +01:00
Masatoshi Kimura
8741286542
Bug 727530 - XHR for data URIs should support content-type header field; r=jonas
2012-02-19 11:58:24 +00:00
Andrew McCreight
905cedea13
Bug 726777, followup. r=sicking
2012-02-20 12:02:47 -08:00
Olli Pettay
8c5bd1c442
Bug 725804 - Don't add active network requests (XHR, WebSocket, EventSource) to CC graph, r=mccr8,jduell,jst
2012-02-16 18:45:25 +02:00
Andrew McCreight
290295194b
Bug 726777. r=sicking
2012-02-14 10:05:43 -08:00
Edmund Wong
e79d1c340c
Bug 693172 - Moved all subclasses of nsDOMEventTargetWrapperCache to nsDOMEventTargetHelper and then merged the classes. r=smaug
2012-02-08 10:53:33 +08:00
Masatoshi Kimura
1b5225d3fe
Bug 696586 - Part 2: Add moz-blob response type and ability to access to the blob in progress events. r=jonas
2012-01-30 11:33:59 +01:00
Marco Bonardo
48931a913b
Merge mozilla-central to mozilla-inbound
2012-01-26 19:34:35 +01:00
Olli Pettay
2df43f0d64
Bug 719949 - Unmark listeners in XHR, WebSocket and EventSource if the object is black, r=mccr8
...
--HG--
extra : rebase_source : ceff390170c3ad35baa33a7f16ec39e3393a81be
2012-01-26 16:55:30 +01:00
Alex Vincent
7a891b637f
Implement XMLHttpRequest.timeout support. Bug 525816, r=smaug, sr=sicking.
...
--HG--
extra : rebase_source : f8ec0171cab2d0fbcc1975c5e455162ebbeb2690
2012-01-26 11:02:22 +01:00
Jeff Muizelaar
0afd025549
Bug 719917. Add some more network and plugin related SAMPLE_LABELs. r=bgirard
...
--HG--
extra : rebase_source : d21f4ffb244ae661e1ca222c02a8fa8b40a071bd
2012-01-18 19:53:35 -05:00
Jeff Muizelaar
19d31dec25
Bug 718440. Add more sampler labels to various places. r=bgirard
...
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Matt Brubeck
3aa150e837
Back out 88733ce1bef3 (bug 718440) because of Windows build failure
2012-01-17 15:15:47 -08:00
Jeff Muizelaar
e18b95dabf
Bug 718440. Add more sampler labels to various places. r=bgirard
...
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Masatoshi Kimura
16de863cf7
Bug 702820 - Allow XHR to data URL. r=sicking
2012-01-11 10:47:46 +01:00
Olli Pettay
ddc85ea830
Bug 714633 - Release message manager related data structures more aggressively, r=jst
...
--HG--
extra : rebase_source : 5749ff9fc1ad21fd7a3d459198437e214b08fdfc
2012-01-07 21:20:12 +02:00
Bobby Holley
9adc1c9d8a
Bug 713747 - Remove usage of UniversalFoo in gecko. r=bz
2011-12-30 09:35:39 -08:00
Ms2ger
e927de0840
Bug 711240 - Part b: Expose xpc_qsStringToJsval publicly; r=bholley
2011-12-24 09:27:04 +01:00
Jeff Walden
2e53b58879
Bug 711799 - Add parentheses to a bunch of && expressions nested within || expressions. r=dholbert
2011-12-18 01:00:47 -05:00
Jason Duell
d18e33c921
Bug 676439 - v2: Websocket Binary Message support: DOM changes. r=smaug
2011-12-15 15:19:01 -08:00
Masatoshi Kimura
4eadc7baec
Bug 704820 - Simplify nsContentUtils::ReportToConsole. r=smaug
2011-12-15 14:47:03 +00:00
Henri Sivonen
78494d96de
Bug 707142 - Replace the "moz-json" responseType with spec-compliant "json". r=smaug.
2011-12-08 15:56:14 +02:00
Masatoshi Kimura
757d984bc3
Bug 701787 - Part 1: disallow responseType and withCredentials for sync XHR. r=smaug
2011-12-08 15:54:05 +02:00
Mounir Lamouri
8829baa8cc
Bug 707870 - Disconnect mListenerManager in nsDOMEventTargetHelper instead of expecting inheriting classes to do it. r=smaug
2011-12-08 16:31:14 +08:00
Henri Sivonen
1a1333165e
Back out bug 701787 due to orangeness conflict with tests added in bug 664179.
2011-12-07 15:11:47 +02:00
Masatoshi Kimura
63e6fae28d
Bug 701787 - Part 1: disallow responseType and withCredentials for sync XHR. r=smaug
2011-12-07 13:29:00 +02:00
julian.reschke@gmx.de
8bbf8765f8
Bug 700589 - Fix Content-Type parser to treat single quote as regular character instead of a delimiter. r=jduell r=bz
2011-11-29 14:06:32 -08:00
Henri Sivonen
775543c40b
Bug 705072 - Limit HTML support in XHR to responseType == "document" to avoid changing the behavior for legacy users. r=smaug.
2011-11-24 17:28:12 +02:00
Henri Sivonen
a2af0efdca
Bug 704284 - Null check mResponseXML in nsXMLHttpRequest::IsWaitingForHTMLCharset(). r=smaug.
2011-11-22 13:23:46 +02:00
Masatoshi Kimura
1cfbaee8d1
Bug 703380 - XMLHttpRequest can fire an abort event after a load event, but should not; r=smaug
...
--HG--
extra : rebase_source : 07e72b23cfad23e0ea1e860fa48b1f6ed0587412
2011-11-21 12:07:12 -06:00
Henri Sivonen
b74c7dc6e2
Bug 651072 - Support HTML parsing in XMLHttpRequest. r=smaug.
2011-11-16 09:38:51 +02:00
Olli Pettay
0dbf32c021
Bug 703715 - Add Telemetry probes for sync XHR, r=sicking, taras
2011-11-19 20:50:17 +02:00
Matt Brubeck
e851f37192
Back out 75ace50df008 to try to fix failures after last central/inbound merge on a CLOSED TREE
2011-11-16 11:50:48 -08:00
Ed Morley
7b166f8edf
Merge mozilla-central to mozilla-inbound
2011-11-16 18:05:23 +00:00
Ms2ger
91d25c9eda
Bug 702223 - Remove duplicated code from nsXMLHttpRequest::GetResponse; r=bz
2011-11-16 08:50:18 +01:00
Henri Sivonen
689c5fc755
Bug 651072 - Support HTML parsing in XMLHttpRequest. r=smaug.
2011-11-16 09:38:51 +02:00
Ben Turner
408f05bed8
Bug 658178 - 'Make XHR2 response/responseType work in Web Workers'. r=jst+sicking+mrbkap.
2011-11-07 17:01:29 -08:00
Masatoshi Kimura
8f9e7ff037
Bug 697689 - Fix XHR brokenness, the optimization violated a nsIStreamLisetner contract; r=jonas
2011-10-28 15:05:07 +01:00
Masatoshi Kimura
3c613cc455
Bug 689008: Part 1 - Skip reading already cached or local resource for blob response; r=jonas
2011-10-26 08:52:19 -04:00
Ehsan Akhgari
92064e6d3f
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b5e57820bf
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
...
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Olli Pettay
617b08d5d1
Bug 693875, DOMParser + svg, r=jst
2011-10-13 13:50:05 +03:00
Luke Wagner
7afec73791
Bug 632064 - remove JS_GetScopeChain (r=mrbkap)
...
--HG--
extra : rebase_source : dcaab70f180d23ad3e9cd12c2d84d326b012fbb2
2011-09-28 17:57:27 -07:00
Peter Van der Beken
9fe2ac6cc5
Stop including nsDOMClassInfo.h all over the place.
...
--HG--
extra : rebase_source : 24bd6a84238834f8ca50990a91849dff2c5040ba
2011-10-03 21:11:31 +02:00
Henri Sivonen
4372b20798
Bug 692434 - Use = instead of == for assignment in XHR charset handling code. r=Olli.Pettay.
2011-10-07 14:33:42 +03:00
Ms2ger
5416bcbd03
Bug 616672 - Warn on access of LSProgressEvent.position, LSProgressEvent.totalSize; r=smaug
2011-10-01 18:14:40 +02:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jonas Sicking
8fae097f9c
Bug 687087 part 3. Implement XHR.responseType="moz-chunked-text" and XHR.responseType="moz-chunked-arraybuffer". r=smaug on code changes, rs=smaug on tests.
2011-09-23 18:57:36 -07:00
Jonas Sicking
d51a0e15c7
Bug 687087 part 2: Clean up how we handle text decoding so that we don't re-charset-decode unless really needed. r=smaug
2011-09-23 18:57:36 -07:00
Jonas Sicking
b6cc9eef20
Bug 687087 part 1: Always fire a "progress" event before onload if we've received data since the last progress event. Also ensure that event..loaded on progress events have the correct value for all response-types. r=smaug
2011-09-23 18:57:22 -07:00
Shawn Gong
c67fc718dc
Bug 655727. Implemented responseType='moz-json', r=sicking
2011-09-08 15:12:18 -07:00
Shawn Gong
9bdf4f101e
Fixed bug 678432: Sending arraybuffers using XMLHttpRequest.send. r=sicking
2011-08-17 18:44:56 -07:00
Kyle Huey
c7bacdbeca
Bug 681688: Outparamdel nsXMLHttpRequest::GetLoadGroup. r=smaug
2011-08-24 13:46:53 -04:00
Kyle Huey
1bbca22aa7
Bug 680816: XHR cannot be reused with responseType='arraybuffer'. r=sicking
2011-08-24 11:31:29 -04:00