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
0793c8a169
Bug 1249739 - Improve performance in XHR in workers - part 4 - Correct cleaning cache for XHR.responseText, r=me
2016-09-12 10:59:10 +02: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
Phil Ringnalda
e4da96b2d2
Back out ec584a62ec26 (bug 918719) for Android failures in test_bug918719.html
2016-09-08 19:02:30 -07:00
Eric Rahm
14cfa6c31b
Bug 1287292 - Use fallible unicode conversion in XHR. r=baku
...
When sending a string via XHR use fallible conversion to avoid OOMing if
content provides a particularly large string.
2016-09-08 16:50:38 -07:00
Thomas Wisniewski
6a4fb27b6b
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 a=smaug
2016-09-08 12:01:58 -04:00
Thomas Wisniewski
a1a4c002e4
Bug 918751 - Throw NetworkErrors instead of failures where appropriate for some XHR web platform tests. r=bz, r=keeler, r=Mossop, r=paul
2016-09-03 18:45:08 -04:00
Andrea Marchesini
6464043c7f
Bug 1301062 - Fix a typo in XMLHttpRequestMainThread, r=me
2016-09-07 15:54:48 +02:00
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