Phil Ringnalda
e66ac3a1e7
Merge m-c to m-i
2016-08-29 21:32:16 -07:00
Phil Ringnalda
7904d28a7f
Backed out changeset b64d6f5b63db (bug 918751) for OS X permaorange in XMLHttpRequest/send-non-same-origin.sub.htm
2016-08-29 21:27:32 -07: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
Thomas Wisniewski
bb7fc879cd
Bug 918751 - Throw NetworkErrors instead of failures where appropriate for some XHR web platform tests. r=bz, r=annevk
2016-08-23 11:49:50 -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
be75a044f7
Bug 1296178 - Replace use of PR_MIN with std::max in XMLHttpRequestMainThread.cpp. r=mrbkap
2016-08-20 11:58:51 -04: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
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