Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Masatoshi Kimura
1fd69c2f1a
Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
...
MozReview-Commit-ID: 5O5WtxbmATQ
2017-06-17 11:54:40 +09:00
Andrea Marchesini
bfe6846282
Bug 1370819 - Postpone the dispatching of XHR events with opened synchronously, r=smaug
2017-06-16 08:07:00 +02:00
Henri Sivonen
7af0452b6b
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Chris H-C
97b88036dd
Bug 1367110 - Make XHRMainThread's mErrorLoad more descriptive. r=baku
...
There are at least four ways XHRMT can error on load.
Let's be specific about it.
MozReview-Commit-ID: EOml2fcd1XD
2017-05-24 08:44:38 -04:00
Sebastian Hengst
dd845e6e48
Backed out changeset 9983ac05d7d1 (bug 1367110) for eslint failures in TelemetrySend.jsm (must use doublequotes). r=backout
2017-05-31 21:02:59 +02:00
Chris H-C
bd62345d5b
Bug 1367110 - Make XHRMainThread's mErrorLoad more descriptive. r=baku
...
There are at least four ways XHRMT can error on load.
Let's be specific about it.
MozReview-Commit-ID: EOml2fcd1XD
2017-05-24 08:44:38 -04:00
Andrea Marchesini
f05a3937bf
Bug 1366595 - Improve the use of strings in XHR logging. r=smaug
2017-05-24 20:27:20 -04:00
Kershaw Chang
b1df92fe41
Bug 1312515 - Part 1: Lower the channel's priority if this XHR is created from tracking script. r=baku
...
With nsIDocument::IsScriptTracking, we know that whether a script is a tracking script. If the XHR is created by a tracking script, we want to lower the priority of the http channel.
2017-05-19 01:28:00 -04:00
Shawn Huang
985a5d1390
Bug 1365478 - Use BoolVarCache to cache preferences in XMLHttpRequest, r=baku
2017-05-18 19:02:22 +08:00
Shawn Huang
3f63ae18a5
Bug 1348390 - Sort and lowercase response's header lists for getAllResponseHeaders(), r=baku
...
Sort and lowercase response's header lists for getAllResponseHeaders().
Per XHR 4.6.5, make response’s header list sorted and lowercased.
2017-05-17 15:18:46 +08:00
Nathan Froyd
3b526b2200
Bug 1359490 - add an event loop spinning abstraction function; r=gerald
...
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Shawn Huang
07ea920697
Bug 1362318 - Part2: Fallback override MIME type to application/octet-stream, r=baku
...
Set override MIME type to 'application/octet-stream', if type is not a parsable
MIME type.
2017-05-11 18:59:10 +08:00
Shawn Huang
eb0e13a222
Bug 1362318 - Part1: Use text/xml as fallback response MIME type, r=baku
...
If response MIME type is the empty byte sequence, then set type to 'text/xml'.
2017-05-11 18:59:00 +08:00
Bevis Tseng
8d85296e29
Bug 1362944 - Part 2: Set proper event target to MutableBlobStorage when created from XMLHttpRequestMainThread. r=baku
...
Use the event target provided from XMLHttpRequestMainThread for the runnable dipsatching inside MutableBlobStorage.
2017-05-10 11:45:54 +08:00
Tom Tung
5f68476eea
Bug 1348050 - Part 1: Mark channel as urgent-start when the Fetch and XHR are triggered by user input events. r=baku,mayhemer
...
Raise the urgent-start flag in the ClassOfService when the Fetch and XHR are
triggered by user input events. The urgent-start classification will tell the
network requests scheduler to perform it with the highest priority and also
ignoring any parallelism or overall connection limits.
MozReview-Commit-ID: 2YavWbuFaln
2017-04-21 13:29:31 +08:00
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
Michael Kaply
15793adb86
Bug 1357219 - Don't warn if we can't use a memory mapped file. r=jld
...
MozReview-Commit-ID: 9ajZCLzQe4G
2017-04-21 15:56:34 -05:00
Tom Tung
59db06337a
Bug 1330297 - Part 1: Strip leading or trailing HTTP whitespace for Header value to follow the spec and share code bewteen fetch and XHR. r=baku
2017-04-10 16:15:29 +08:00
Shawn Huang
fd7812c3b9
Bug 1341272 - Set readyState to DONE during synchronous XMLHttpRequest failure, r=baku
2017-03-27 15:21:57 +08:00
David Major
7c0497b430
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Iris Hsiao
22d2818760
Backed out 12 changesets (bug 1344629) for stylo build bustage
...
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major
a660713d2b
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Wei-Cheng Pan
7a678cdad2
Bug 1310127 - Part 17: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
...
MozReview-Commit-ID: 5gvVZtsa3yS
2016-12-20 11:49:32 +08:00
Patrick McManus
e07d03fbf9
Bug 1344374 - remove now-meaningless nsIRequest::INHIBIT_PIPELINE r=hurley
2017-03-03 16:46:53 -05:00
Jessica Jong
be4c818826
Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap
2017-02-22 01:00:00 -05:00
Andrew McCreight
3ef1f27275
Bug 1336811 - Clear mWaitingForOnStopRequest in CloseRequest. r=smaug
...
Otherwise, if a tab is closed when we have a request pending, we'll
end up leaking the page forever, due to CC optimizations.
MozReview-Commit-ID: E5NC0jxWCur
2017-02-17 11:22:45 -08:00
Andrea Marchesini
c048b4585c
Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug
2017-02-16 18:26:38 +01:00
Bill McCloskey
54da76be6b
Bug 1339289 - Give names to a lot of common timers (r=ehsan)
...
MozReview-Commit-ID: IMsv5bkyjBL
2017-02-15 12:30:01 -08:00
Andrea Marchesini
d0baeaeaf9
Bug 1328470 - XMLHttpRequest should reset timers when send() is executed again, r=smaug
2017-02-10 15:05:06 +01:00
Carsten "Tomcat" Book
e1b6f23c86
Merge mozilla-central to mozilla-inbound
2017-02-09 11:38:08 +01:00
Andrea Marchesini
7550ac6269
Bug 1337746 - XHR should cancel the nsIChannel with an error code and not with NS_OK, r=smaug
2017-02-09 10:47:43 +01:00
Tim Huang
b3fb2c8458
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
2017-02-07 11:49:34 +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
Andrea Marchesini
61bb9afeca
Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=me CLOSED TREE
2017-01-31 18:06:14 +01:00
Andrea Marchesini
31abf2fab3
Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=smaug, data-review=bsmedberg
2017-01-31 17:34:08 +01: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
Boris Zbarsky
bfd6b94cb0
Bug 1332322 part 3. Rename nsWrapperCache::IsBlackAndDoesNotNeedTracing to nsWrapperCache::HasKnownLiveWrapperAndDoesNotNeedTracing. r=mccr8
2017-01-24 20:39:37 -05:00
Boris Zbarsky
33b60b6ff4
Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8
2017-01-24 20:38:58 -05:00
Boris Zbarsky
56245bfc2c
Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8
2017-01-24 20:33:54 -05: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
Andrea Marchesini
46a9207d60
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Thomas Wisniewski
43880a8ff8
Bug 1329365 - Follow-up adding 201, 202, and 205 to the list of response codes which suppress XML parsing errors. r=bz
2017-01-06 23:23:56 -05:00
Thomas Nguyen
82e1caab63
Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
...
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08:00
Kris Maglione
4f7738c780
Bug 1325158: Part 1 - Don't return error result from OnRedirectVerifyCallback. r=ehsan
...
MozReview-Commit-ID: Hb3I0U8kxdz
2016-12-24 18:24:41 -08:00
Ehsan Akhgari
df2acff727
Bug 1320201 - When an XHR is made with an expanded principal, use the expanded principal for CORS security checks; r=bzbarsky
...
We should only ensure that the resulting document doesn't end up
inheriting the expanded principal.
2016-12-15 16:49:35 -05:00
Thomas Wisniewski
6b5e0cf9bc
Bug 1319744 - Ensure that progress events and corresponding LOADING readystatechanges fire as per spec. r=baku
2016-12-13 15:23:01 -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