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

65 Коммитов

Автор SHA1 Сообщение Дата
Thomas Wisniewski e1e1d36600 Bug 1296178 - Replace use of PR_MIN with std::max in XMLHttpRequestMainThread.cpp. r=mrbkap
--HG--
extra : rebase_source : 9cf1d363181a7d4f34a2a97ec644cf69d9ede627
2016-08-20 11:58:51 -04: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
Ben Kelly 9d7b33a00b Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-18 07:11:04 -07:00
Phil Ringnalda 4083fafafc Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
CLOSED TREE

Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly fa520e1fdd Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-17 20:01:35 -07:00
Thomas Wisniewski b6193832b6 Bug 1295128 - Log attempts to use SetRequestHeader to set a forbidden header to the web console. r=mrbkap
--HG--
extra : rebase_source : 9d135eeac085afa8568e2ec00882ba4f691436e9
2016-08-16 11:32:49 -04:00
Andrea Marchesini a183983968 Bug 1264053 - MessagePort should support transferable objects in multi-e10s, r=sfink, r=smaug, r=jorendorff, r=janv 2016-07-21 15:29:42 +02: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
Jan de Mooij c33bac8363 Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence 2016-08-11 14:39:23 +02:00
Jan de Mooij 0ad12515f4 Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru 2016-08-11 14:39:22 +02:00
Thomas Wisniewski 7e447a3ab2 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 e7f10a07fd 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.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +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 2869846cdb 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 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 6a1fb99d2b 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 5e128b818f 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 8c31962656 Backed out changeset de078c2e0991 (bug 1285036) 2016-07-28 18:13:17 +02:00
Sebastian Hengst e6b4c7693b Backed out changeset 6e6d55b02d19 (bug 1285036) 2016-07-28 18:13:13 +02:00
Thomas Wisniewski 16c863c9d6 Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku
--HG--
extra : rebase_source : 6eb5919d4c4180c55089f0fd6dfcd728dbb52534
2016-07-21 00:36:26 -04:00
Thomas Wisniewski 978c16c644 Bug 1285036 - Part 8: Change XHR open() and related code to follow the spec more closely. r=baku
--HG--
extra : rebase_source : a40634c94d6a259a181028021b780140a7fdbf41
2016-07-20 13:02:36 -04:00
Thomas Wisniewski 468fef78cc Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
--HG--
extra : rebase_source : 8d3491471156823c0f1c7c7adbcb0024494e13db
2016-07-27 16:03:42 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06: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 5b4240186c Bug 918734 - Throw invalid state errors when XHRs fail their CheckInnerWindowCorrectness() checks, to match the XHR spec. r=khuey
--HG--
extra : rebase_source : c8f7a5b05bc318464ffb9b3cae23ae7cb8a247ea
2016-07-18 01:38:03 -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
Sebastian Hengst bf244b578e 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 0564cc02ae 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 06e846446b Bug 1286744 - Return the empty string from GetAllResponseHeaders() if the XHR failed. r=smaug 2016-07-14 11:14:46 -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
Thomas Wisniewski ef7d665ee0 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 b40f905f49 Backed out changeset 643bfa8b72ba (bug 1207233) for bustage 2016-07-12 11:40:16 +02: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 291ec7772c 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
--HG--
extra : rebase_source : f4063c85716f899545878f89fc7f2225ef95c7cd
2016-07-11 14:27:36 -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
Thomas Wisniewski fbc2d5f34d 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 7f789c31d7 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 d6255ae33c 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 c603d18df1 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
Ryan VanderMeulen 64abd594e5 Backed out 6 changesets (bug 1285036) for bustage on a CLOSED TREE.
Backed out changeset f7174077bd92 (bug 1285036)
Backed out changeset 4ae182434a6a (bug 1285036)
Backed out changeset 0390a7afb12d (bug 1285036)
Backed out changeset b93efbaf1d7a (bug 1285036)
Backed out changeset 3036026722de (bug 1285036)
Backed out changeset 8e94b77f805b (bug 1285036)
2016-07-07 21:57:49 -04:00