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
Thomas Wisniewski
7486640315
Bug 1295128 - Log attempts to use SetRequestHeader to set a forbidden header to the web console. r=mrbkap
2016-08-16 11:32:49 -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
Jan de Mooij
bfe36450fc
Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence
2016-08-11 14:39:23 +02:00
Thomas Wisniewski
0c0af0bd96
Bug 1293881 - Revert a behavioral change introduced in bug 1285036 patch 7: header names set by SetRequestHeader should retain their case instead of being lowercased as the current XHR spec specifies. r=jimb
2016-08-09 19:43:26 -04:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +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
81c40526f7
Bug 918752 - Override Accept request header to */* in XMLHttpRequest::Send() if it is not specified by the user. r=jst
2016-08-04 12:33:36 -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
a23b5fbd86
Bug 709991 - Fire onerror instead of throwing on network errors for async XHRs. r=bz
2016-07-30 00:24:56 -04:00
Sebastian Hengst
06ca28e304
Backed out changeset 41a51d368f38 (bug 1285036) for failing test browser_net_copy_as_curl.js. r=backout
2016-07-28 18:13:43 +02:00
Sebastian Hengst
ec07855ff1
Backed out changeset de078c2e0991 (bug 1285036)
2016-07-28 18:13:17 +02:00
Sebastian Hengst
a2c9cc9a48
Backed out changeset 6e6d55b02d19 (bug 1285036)
2016-07-28 18:13:13 +02:00
Thomas Wisniewski
81ceac77cc
Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku
2016-07-21 00:36:26 -04:00
Thomas Wisniewski
fd7c2e2702
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
d726d8adb3
Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
2016-07-27 16:03:42 -04:00
Ryan VanderMeulen
4d295a2bc1
Backed out 3 changesets (bug 1285036) for browser_net_resend.js failures on a CLOSED TREE.
...
Backed out changeset 1fd18c03c696 (bug 1285036)
Backed out changeset 6462cd2ea249 (bug 1285036)
Backed out changeset 6b51b69f723e (bug 1285036)
2016-07-21 14:56:01 -04:00
Thomas Wisniewski
f158253c02
Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku
2016-07-21 00:36:26 -04:00
Thomas Wisniewski
ffe189562e
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
7216d22b81
Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
2016-07-20 12:22:43 -04:00
Carsten "Tomcat" Book
d3578f9107
Backed out changeset 16fefebdbb50 (bug 1285036) for static build bustage
2016-07-21 06:14:41 +02:00
Carsten "Tomcat" Book
07fd1565ea
Backed out changeset abbef296a82f (bug 1285036)
2016-07-21 06:14:28 +02:00
Carsten "Tomcat" Book
923c584b00
Backed out changeset 8a00db57d77a (bug 1285036)
2016-07-21 06:14:27 +02:00
Thomas Wisniewski
981f3fd0f0
Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku
2016-07-20 13:02:54 -04:00
Thomas Wisniewski
a60a310934
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
be02be7b7a
Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
2016-07-20 12:22:43 -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
4de3b748ca
Bug 918734 - Throw invalid state errors when XHRs fail their CheckInnerWindowCorrectness() checks, to match the XHR spec. r=khuey
2016-07-18 01:38:03 -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
Sebastian Hengst
32681f0939
Backed out changeset ff5028ff81cb (bug 447689) for assertion in test_worker_xhr_implicit_cancel.html in debug builds. r=backout
2016-07-16 18:26:08 +02:00
Thomas Wisniewski
72766ee190
Bug 447689 - clean up XMLHttpRequest::Open so XHR readyState=1 events are fired according to spec. r=baku
2016-07-15 11:33:17 -04:00
Thomas Wisniewski
5ae3f87ef5
Bug 1286744 - Return the empty string from GetAllResponseHeaders() if the XHR failed. r=smaug
2016-07-14 11:14:46 -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
Thomas Wisniewski
e9b4657969
Bug 1207233 - Part 1: Allow not sending a Content-Type header, or sending a blank string for it, and have XMLHttpRequest.setRequestHeader honor those possibilities. r=dragana
2016-07-11 14:27:36 -04:00
Carsten "Tomcat" Book
89b04ba9af
Backed out changeset 643bfa8b72ba (bug 1207233) for bustage
2016-07-12 11:40:16 +02:00
Carsten "Tomcat" Book
085451dc7a
Backed out changeset ff7dbda6a6d0 (bug 1207233)
2016-07-12 11:40:00 +02:00
Thomas Wisniewski
e892c7d08c
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
Thomas Wisniewski
034e3669c0
Bug 1207233 - Part 1: Allow not sending a Content-Type header, or sending a blank string for it, and have XMLHttpRequest.setRequestHeader honor those possibilities. r=dragana
2016-07-11 14:27:36 -04:00
Thomas Wisniewski
6c59eca2e7
Bug 1285036 - Part 5: Consolidate the readystatechange-firing code into a function named FireReadyStateChange(). r=baku
2016-07-08 12:50:48 -04:00
Thomas Wisniewski
8e0637cb5d
Bug 1285036 - Part 4: Remove the 'sent' pseudostate and add support for the spec's send() flag instead. r=baku
2016-07-08 12:50:19 -04:00
Thomas Wisniewski
1fdbdc55c0
Bug 1285036 - Part 3: Flip the asynchronous flag to synchronous, to match the spec. r=baku
2016-07-08 12:49:40 -04:00
Thomas Wisniewski
4f43589177
Bug 1285036 - Part 2: Split mState up into an enum and a set of bool flags. r=baku
2016-07-08 12:46:12 -04:00
Thomas Wisniewski
6bbb234a35
Bug 1285036 - Part 1: Use an enum for ProgressEvent types and use consts for the event name strings. r=baku
2016-07-08 12:44:33 -04:00