Thomas Wisniewski
1c80836b46
Bug 1400748 - Correct our handling of XHR.abort edge-cases; r=baku
...
1. Handle the "terminate the ongoing fetch" cases in the spec-text
- do not CloseRequest in Abort/Open if the state is UNSENT or DONE).
- ensure we don't fire extra events after terminating this way
if a stray OnDataAvailable happens afterward.
2. Ensure that status/statusText correctly return 0/"" to mimic the
spec's "set response to a network error" steps (requires special
handling in the worker XHR code).
MozReview-Commit-ID: 5kMyGgD7uUU
2017-09-25 12:58:23 -04:00
Nicholas Nethercote
e8236888ee
Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
...
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
2017-09-22 14:35:46 +10:00
Andrew McCreight
84ee98de3c
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Andrea Marchesini
341703b959
Bug 1392358 - Remove XHR.send(nsIInputStream) and unify XHR.send(params) as the spec says, r=smaug
2017-08-25 15:30:33 +02:00
Masatoshi Kimura
26299618f5
Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
...
MozReview-Commit-ID: E88DZK5sfwx
2017-08-07 02:28:52 +09:00
Sebastian Hengst
80162c79f9
Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout
2017-08-11 17:46:42 +02:00
Masatoshi Kimura
a0bcec8f88
Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
...
MozReview-Commit-ID: E88DZK5sfwx
2017-08-07 02:28:52 +09:00
Julian Seward
7d1151d83a
Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
...
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions. The replaced functions are:
void nsCString::AssignWithConversion( const nsAString& aData )
void nsString::AssignWithConversion( const nsACString& aData )
void nsTString_CharT::AssignWithConversion(
const incompatible_char_type* aData,
int32_t aLength = -1);
The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.
This has two advantages:
* it removes code
* at the call points, it makes clear (from the replacement name) which
conversion is being carried out. The generic name "AssignWithConversion"
doesn't make that obvious -- one had to infer it from the types.
The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related. They are
at top level, where they would never have compiled. They look like
leftovers from some previous change.
2017-07-24 19:23:52 +02:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
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
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 Layzell
8cd1f40035
Bug 1331434 - Part 8: Avoid doing work after throwing in XMLHttpRequestWorker::SendInternal, r=baku
...
MozReview-Commit-ID: BgyhRAJLL81
2017-03-07 19:06:48 -05:00
Andrea Marchesini
7b66f9d81a
Bug 1344676 - Remove XHR_IN_WORKER telemetry ID, r=qdot
2017-03-07 08:46:18 +01:00
Andrea Marchesini
f952185c35
Bug 1337787 - Get rid of old code in XHRWorker, r=qdot
2017-02-09 10:41:39 +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
115b19b90f
Bug 1331564 - XHR SyncTeardownRunnable must run also when the worker is in killing state, r=bkelly
2017-01-18 15:05:41 +01:00
Andrea Marchesini
28f084ecf0
Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status, r=bkelly
2017-01-05 10:05:32 +01:00
Jan de Mooij
ad35ff3340
Bug 1325075 - Fix Value::isGCThing footgun, stop returning true for NullValue. r=jonco,baku
2016-12-26 16:40:21 +01:00
Tomislav Jurin
9ff3007b90
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Thomas Wisniewski
c3b9d5231e
Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku
2016-11-21 01:30:00 -05:00
Sebastian Hengst
d096fce805
Backed out changeset 3421c306d8cf (bug 1311798) for failing event-readystatechange-loaded.htm and unexpected passes. r=backout
2016-11-20 21:39:59 +01:00
Thomas Wisniewski
232623e4b1
Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku
2016-11-20 09:32:00 -05:00
Lars T Hansen
30645f2bc5
Bug 1302036 - DOM changes to conform to new JS engine API for cloning. r=baku
2016-10-24 15:14:45 +02:00
Jon Coppeard
863d796e4b
Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8
2016-10-18 17:58:19 +01:00
Andrea Marchesini
179f2764d9
Bug 1300552 - XMLHttpRequestWorker::EventRunnable must update stateData also after an abort(), r=ehsan
2016-10-03 10:41:27 +02:00
Andrea Marchesini
58eb943561
Bug 1303095 - XMLHttpRequestString should be fallible, r=mccr8
2016-09-16 00:09:17 +02:00
Thomas Wisniewski
cb01f59c0c
Bug 1302623 - Refactor XHR.open() methods to remove use of Optionals and correct auth handling. r=smaug
2016-09-14 14:50:58 -04:00
Ben Kelly
9000ee7df0
Bug 1300658 P6 Fix one place XHR used NS_DispatchToMainThread() directly from a worker. r=baku
2016-09-13 20:14:02 -07:00
Wes Kocher
e70a727506
Backed out 6 changesets (bug 1300658) for frequent Windows VM Xpcshell failures a=backout
...
Backed out changeset 6cf3a60640cf (bug 1300658)
Backed out changeset c74062a27462 (bug 1300658)
Backed out changeset 39fbc61739ef (bug 1300658)
Backed out changeset 0b9d70b040a2 (bug 1300658)
Backed out changeset 4e921d61f036 (bug 1300658)
Backed out changeset 56496fad6494 (bug 1300658)
2016-09-12 16:34:08 -07:00
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
Ben Kelly
1db6765b74
Bug 1300658 P6 Fix one place XHR used NS_DispatchToMainThread() directly from a worker. r=baku
2016-09-12 12:32:21 -07:00
Ben Kelly
449d185850
Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me
2016-09-12 12:29:17 -07:00
Ben Kelly
98b2b9ad20
Bug 1300658 P6 Fix one place XHR used NS_DispatchToMainThread() directly from a worker. r=baku
2016-09-12 11:21:02 -07: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
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
Ben Kelly
bee31710b3
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
6ef267a68f
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
72fb8c6934
Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku
2016-08-17 20:01:35 -07:00
Andrea Marchesini
c8a40161f0
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
Jan de Mooij
bd0f1c9018
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02: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
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
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
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
Boris Zbarsky
218b278258
Bug 1282150 part 3. Add a way to get the JSRuntime for the thread, and use it in various places for rooting. r=bholley
2016-07-07 20:08:26 -04:00