Commit Graph
65 Commits
Author SHA1 Message Date
Shawn Huang 774d5edf9b Bug 1350787 - DocGroup labeling runnables in dom/xhr, r=baku, f=bevistseng
This patch is to label the runnables dispatched to main thread of the
content process.
The major changes in xhr are to replace DispatchTo{Current,Main}Thread and
replace NS_DispatchToCurrentThread with |mWorkerPrivate->DispatchToMainThread|
in which a DocGroup-specific EventTarget on main thread for worker.
2017-05-09 16:14:51 +08:00
Andrea Marchesini b42d37fcf5 Bug 1337016 - XHR should create a Blob in the parent process when run from a file:// URL, r=smaug 2017-02-08 14:34:42 +01:00
Jessica Jong 1653fdc0ea Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug 2017-02-03 05:16:00 -05:00
Boris Zbarsky d0200ecadf 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 2ff25e1c30 Bug 1329298 - Part 2 - use nsIXHRSendable instead Blob/FormData/URLSearchParams, r=smaug 2017-01-24 12:14:00 +01:00
Andrea Marchesini cef12d2d65 Bug 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug 2017-01-24 12:13:31 +01:00
Boris Zbarsky bb26bc9e17 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 b0a2e7bbd0 Bug 1318506 - Label XHR timer runnables with DocGroup (r=bkelly)
MozReview-Commit-ID: LYB8LFuVs1w
2016-12-01 15:00:13 -08:00
Sebastian Hengst 75a340d81c Backed out changeset 6a0c2912650a (bug 1318506) 2016-12-01 13:35:27 +01:00
Bill McCloskey 427415beb0 Bug 1318506 - Label XHR timer runnables with DocGroup (r=bkelly)
MozReview-Commit-ID: LYB8LFuVs1w
2016-11-30 18:01:59 -08:00
Thomas Wisniewski c3b9d5231e Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku 2016-11-21 01:30:00 -05:00
Sebastian Hengst d096fce805 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 232623e4b1 Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku 2016-11-20 09:32:00 -05:00
Andrea Marchesini 884f0f2753 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 54eb072b73 Bug 1306235 - XHR should set lengthComputable only if total value is set, r==smaug 2016-10-06 16:13:08 +02:00
Andrea Marchesini 0d8a61f94a Bug 1202006 - Memory Blob to Temporary File - part 4 - Temporary File, r=smaug 2016-09-29 07:12:56 +02:00
Andrea Marchesini 1c6afd5164 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 8d8c4c96ec Bug 1202006 - Memory Blob to Temporary File - part 1 - MutableBlobStorage for XHR, r=smaug 2016-09-29 07:12:00 +02:00
Carsten "Tomcat" Book 026a431f8e Backed out changeset 218abd044ee6 (bug 1202006) for bustage 2016-09-28 15:04:02 +02:00
Carsten "Tomcat" Book 8c8d18b08b Backed out changeset abd96b988887 (bug 1202006) 2016-09-28 15:03:50 +02:00
Carsten "Tomcat" Book ac3a255cec Backed out changeset 13637a65df3b (bug 1202006) 2016-09-28 15:03:48 +02:00
Andrea Marchesini af96ba8cd5 Bug 1202006 - Memory Blob to Temporary File - part 4 - Temporary File, r=smaug 2016-09-28 14:39:03 +02:00
Andrea Marchesini c6f82bb3bd 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 489b737ca0 Bug 1202006 - Memory Blob to Temporary File - part 1 - MutableBlobStorage for XHR, r=smaug 2016-09-28 14:37:54 +02:00
Ryan VanderMeulen 304af31599 Backed out changeset 4bdbbae12cb3 (bug 918719) for causing webcompat issues. 2016-09-27 15:58:01 -04:00
Boris Zbarsky e893d620ea 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 cb01f59c0c Bug 1302623 - Refactor XHR.open() methods to remove use of Optionals and correct auth handling. r=smaug 2016-09-14 14:50:58 -04:00
Thomas Wisniewski d4ed285c00 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 2016-09-12 22:39:01 -04:00
Thomas Wisniewski df8aff7f0e Bug 933759 - Match the spec's IDL for the XHR open method. r=baku 2016-09-12 09:48:30 -04:00
Andrea Marchesini dab3a03215 Bug 1249739 - Improve performance in XHR in workers - part 3 - Implement XMLHttpRequestStringSnapshot, r=smaug 2016-09-12 09:06:33 +02:00
Andrea Marchesini 74177ca548 Bug 1249739 - Improve performance in XHR in workers - part 2 - Implement XMLHttpRequestString, r=smaug 2016-09-12 09:06:06 +02:00
Andrea Marchesini addcefa927 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 c030c85638 Bug 289714 - Do not write <parsererror> nodes for invalid XML documents in XMLHttpRequests made by web content. r=billm, r=bz 2016-08-29 16:30:36 -04:00
Yoshi Huang b5e2e5d8e6 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 4ab01f11bd Bug 1046816 - Hold/DropJSObjects properly in main thread XHR. r=smaug 2016-08-20 11:43:02 -04:00
Thomas Wisniewski ef338bef55 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 67fbd6985b 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 8f3c6e7c32 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%.
2016-08-12 17:36:22 +10:00
Thomas Wisniewski c086657511 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-08-05 23:47:40 -04:00
Thomas Wisniewski 3fa07044d3 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-08-03 21:58:17 -04:00
Thomas Wisniewski 6073862943 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 7d5874ae43 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 a490c7fdbb 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 788856b6e9 Bug 1082790 - Remove the nsIScriptContext parameter from nsXMLHttpRequest::Init(). r=mrbkap 2016-07-19 21:30:01 -04:00
Thomas Wisniewski f45cd9f469 Bug 447689 - clean up XMLHttpRequest::Open so XHR readyState=1 events are fired according to spec. r=baku 2016-07-16 13:56:36 -04:00
Sebastian Hengst 17b885a74d Backed out changeset 9c0425073111 (bug 918703) for failing mochitest test_bug435425.html. r=backout 2016-07-17 12:56:43 +02:00
Sebastian Hengst 3fe1151012 Backed out changeset f52c26d677b0 (bug 918703) 2016-07-17 12:55:38 +02:00
Thomas Wisniewski 563ece4118 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 375122496e 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 e217486fc0 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