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

62 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 334f1106d6 Bug 1333540. Common up the skippability implementations that are basically copy/pastes of the DOMEventTargetHelper one. r=smaug 2017-01-24 20:40:11 -05:00
Andrea Marchesini 0d8f8e4333 Bug 1329298 - Part 2 - use nsIXHRSendable instead Blob/FormData/URLSearchParams, r=smaug 2017-01-24 12:14:00 +01:00
Andrea Marchesini 20247bbf3f Bug 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug 2017-01-24 12:13:31 +01:00
Boris Zbarsky ffe339f775 Bug 1330759 part 4. Change XMLHttpRequest's responseText getter to take a DOMString, not an nsAString. r=froydnj 2017-01-18 22:20:15 -05:00
Bill McCloskey 2d57ca5e03 Bug 1318506 - Label XHR timer runnables with DocGroup (r=bkelly)
MozReview-Commit-ID: LYB8LFuVs1w
2016-12-01 15:00:13 -08:00
Sebastian Hengst 4d3b3e1658 Backed out changeset 6a0c2912650a (bug 1318506) 2016-12-01 13:35:27 +01:00
Bill McCloskey 4ab3a33831 Bug 1318506 - Label XHR timer runnables with DocGroup (r=bkelly)
MozReview-Commit-ID: LYB8LFuVs1w
2016-11-30 18:01:59 -08:00
Thomas Wisniewski d1cae84099 Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku
--HG--
extra : rebase_source : 29002a6d139a08b706e54dfa4c32163632455e67
2016-11-21 01:30:00 -05:00
Sebastian Hengst 0718e6147b Backed out changeset 3421c306d8cf (bug 1311798) for failing event-readystatechange-loaded.htm and unexpected passes. r=backout 2016-11-20 21:39:59 +01:00
Thomas Wisniewski fcc3c463e9 Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku
--HG--
extra : rebase_source : a0b4f89c41fbb15fa7f7acd69b993d14f709863a
2016-11-20 09:32:00 -05:00
Andrea Marchesini 9215b7b957 Bug 1307122 - Introducing a timeout for sync XHR when unload events are dispatched, r=smaug 2016-10-16 08:46:10 +02:00
Andrea Marchesini 9d453d6ef0 Bug 1306235 - XHR should set lengthComputable only if total value is set, r==smaug 2016-10-06 16:13:08 +02:00
Andrea Marchesini c69e585e9c Bug 1202006 - Memory Blob to Temporary File - part 4 - Temporary File, r=smaug 2016-09-29 07:12:56 +02:00
Andrea Marchesini e089417459 Bug 1202006 - Memory Blob to Temporary File - part 3 - BlobSet and MutableBlobStorage for XHR, r=smaug 2016-09-29 07:12:37 +02:00
Andrea Marchesini 5ab2cd6e5c Bug 1202006 - Memory Blob to Temporary File - part 1 - MutableBlobStorage for XHR, r=smaug
--HG--
rename : dom/base/BlobSet.cpp => dom/base/MutableBlobStorage.cpp
rename : dom/base/BlobSet.h => dom/base/MutableBlobStorage.h
2016-09-29 07:12:00 +02:00
Carsten "Tomcat" Book 65a03894a6 Backed out changeset 218abd044ee6 (bug 1202006) for bustage 2016-09-28 15:04:02 +02:00
Carsten "Tomcat" Book c2b119130d Backed out changeset abd96b988887 (bug 1202006) 2016-09-28 15:03:50 +02:00
Carsten "Tomcat" Book 6e58dff2dc Backed out changeset 13637a65df3b (bug 1202006) 2016-09-28 15:03:48 +02:00
Andrea Marchesini 47460d0a88 Bug 1202006 - Memory Blob to Temporary File - part 4 - Temporary File, r=smaug 2016-09-28 14:39:03 +02:00
Andrea Marchesini 72971c7e62 Bug 1202006 - Memory Blob to Temporary File - part 3 - BlobSet and MutableBlobStorage for XHR, r=smaug 2016-09-28 14:38:41 +02:00
Andrea Marchesini 6420171857 Bug 1202006 - Memory Blob to Temporary File - part 1 - MutableBlobStorage for XHR, r=smaug
--HG--
rename : dom/base/BlobSet.cpp => dom/base/MutableBlobStorage.cpp
rename : dom/base/BlobSet.h => dom/base/MutableBlobStorage.h
2016-09-28 14:37:54 +02:00
Ryan VanderMeulen 10262ed0cb Backed out changeset 4bdbbae12cb3 (bug 918719) for causing webcompat issues.
--HG--
extra : rebase_source : 58d99de7d9ee9e32383b9d18e4fb80a1bc59d0ad
2016-09-27 15:58:01 -04:00
Boris Zbarsky 7afde49b04 Bug 1096267. Stop calling into the nsIInputStream overload of XMLHttpRequest.send() if a random object is passed in (except in chrome code, where we will keep doing that). r=smaug 2016-09-22 16:58:37 +01:00
Thomas Wisniewski 3ad210d9fd Bug 1302623 - Refactor XHR.open() methods to remove use of Optionals and correct auth handling. r=smaug
--HG--
extra : amend_source : b042192a0a0e75deb486beb1e503726c262daba7
2016-09-14 14:50:58 -04:00
Thomas Wisniewski 3cf91c9343 Bug 918719 - Only fire one loading readystatechange per XHR, but keep the old behavior available behind the preference dom.send_multiple_xhr_loading_readystatechanges. r=smaug
--HG--
extra : rebase_source : 296943a67ae8bd3065749cc424a4379320169585
2016-09-12 22:39:01 -04:00
Thomas Wisniewski b8a8b73745 Bug 933759 - Match the spec's IDL for the XHR open method. r=baku
--HG--
extra : rebase_source : 0fec6c032b30736c8979657e3b87db5ca630df6c
2016-09-12 09:48:30 -04:00
Andrea Marchesini 284e7077e7 Bug 1249739 - Improve performance in XHR in workers - part 3 - Implement XMLHttpRequestStringSnapshot, r=smaug 2016-09-12 09:06:33 +02:00
Andrea Marchesini def1f6e7db Bug 1249739 - Improve performance in XHR in workers - part 2 - Implement XMLHttpRequestString, r=smaug 2016-09-12 09:06:06 +02:00
Andrea Marchesini c9c3bfe617 Bug 1249739 - Improve performance in XHR in workers - part 1 - XHR.responseText must be cached, r=smaug 2016-09-12 09:05:42 +02:00
Thomas Wisniewski 756abf6cfa Bug 289714 - Do not write <parsererror> nodes for invalid XML documents in XMLHttpRequests made by web content. r=billm, r=bz
--HG--
extra : rebase_source : 4cc87bbeca140953a90b31e1fd5b32098d37a2de
2016-08-29 16:30:36 -04:00
Yoshi Huang 69ed1a79e4 Bug 1244340 - Part 2: add setOriginAttributes in nsIXMLHttpRequest. r=sicking
Add a ChromeOnly method called 'setOriginAttributes' on the XMLHttpRequest,
so that we can override the origin attributes for those XHRs running by XUL
(which will use System Principal).
2016-08-26 18:59:00 +08:00
Thomas Wisniewski 3bb3379361 Bug 1046816 - Hold/DropJSObjects properly in main thread XHR. r=smaug 2016-08-20 11:43:02 -04:00
Thomas Wisniewski af30944201 Bug 1285036 - Part 11: Factor the actual fetch-related code out of XHR Send() and into its own function, InitiateFetch(). r=smaug 2016-08-18 20:16:00 -04:00
Thomas Wisniewski 6da709b668 Bug 1285036 - Part 10: Factor the request-header XHR code out into its own class. r=smaug 2016-08-18 20:15:37 -04:00
Nicholas Nethercote 3b0485fcdb Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.

This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.

--HG--
extra : rebase_source : c15d85298e0975fd030cd8f8f8e54501f453959b
2016-08-12 17:36:22 +10:00
Thomas Wisniewski 95d1c98761 Bug 918703 - Part 2: Correct progress event logic so events are sent in the correct order and with the correct values according to spec. r=baku
--HG--
extra : rebase_source : da5305fdfb1b28404199733f68cb65803a087e38
2016-08-05 23:47:40 -04:00
Thomas Wisniewski b5d3e2f660 Bug 918703 - Part 1: Remove MaybeDispatchProgressEvents() and have its callsites only do what they need to do, to make the XHR code more readable. r=baku
--HG--
extra : rebase_source : cd0b4dac215b5badd05f8dcbd52f76178efffbc9
2016-08-03 21:58:17 -04:00
Thomas Wisniewski 909bb6c298 Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku 2016-08-01 14:28:01 -04:00
Thomas Wisniewski 4de0c5c74c Bug 1285036 - Part 8: Change XHR open() and related code to follow the spec more closely. r=baku 2016-07-20 13:02:36 -04:00
Thomas Wisniewski 30e540bdd6 Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku 2016-08-02 12:50:10 -04:00
Thomas Wisniewski 30036214e5 Bug 1082790 - Remove the nsIScriptContext parameter from nsXMLHttpRequest::Init(). r=mrbkap
--HG--
extra : rebase_source : 8a2cfcedb9b3522dbb4485b37b3c7c6bc65a2d5b
2016-07-19 21:30:01 -04:00
Thomas Wisniewski 340717ad42 Bug 447689 - clean up XMLHttpRequest::Open so XHR readyState=1 events are fired according to spec. r=baku
--HG--
extra : rebase_source : db3e4829a7f7b9cb3d1d9c179ef51c4845e840c3
2016-07-16 13:56:36 -04:00
Sebastian Hengst 3c68bf1407 Backed out changeset 9c0425073111 (bug 918703) for failing mochitest test_bug435425.html. r=backout 2016-07-17 12:56:43 +02:00
Sebastian Hengst b8b5c17e71 Backed out changeset f52c26d677b0 (bug 918703) 2016-07-17 12:55:38 +02:00
Thomas Wisniewski a87fc764c1 Bug 918703 - Part 2: Correct progress event logic so events are sent in the correct order and with the correct values according to spec. r=baku 2016-07-16 19:11:01 -04:00
Thomas Wisniewski bea588b693 Bug 918703 - Part 1: Remove MaybeDispatchProgressEvents() and have its callsites only do what they need to do, to make the XHR code more readable. r=baku 2016-07-14 13:24:54 -04:00
Thomas Wisniewski b66fa4f6c0 Bug 1207233 - Part 2: Make URLSearchParams nsIXHRSendable as well as clonable, and have XHRs set the correct request content type for them. r=baku 2016-07-11 15:03:44 -04:00
Carsten "Tomcat" Book c33672a846 Backed out changeset ff7dbda6a6d0 (bug 1207233) 2016-07-12 11:40:00 +02:00
Thomas Wisniewski 458f4f42b3 Bug 1207233 - Part 2: Make URLSearchParams nsIXHRSendable as well as clonable, and have XHRs set the correct request content type for them. r=baku
--HG--
extra : rebase_source : de17309ef5704f288f309605dbb7744eadea3bd8
2016-07-11 15:03:44 -04:00
Thomas Wisniewski 1bc65bb8d9 Bug 1285036 - Part 5: Consolidate the readystatechange-firing code into a function named FireReadyStateChange(). r=baku 2016-07-08 12:50:48 -04:00