Andrea Marchesini
22632f00d8
Bug 1567419 - Ensure the BodyStreamHolder has a valid stream always, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D38814
2019-07-23 23:23:41 +00:00
Andrea Marchesini
19103e9525
Bug 1564821 - Response must call JS::ReadableStreamReleaseCCObject() if ::GetBody() fails, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37711
2019-07-12 23:43:16 +00:00
Brian Hackett
424da5b81a
Bug 1551256 - Show net monitor stacks for fetch() calls from workers, r=bzbarsky.
2019-06-15 06:46:22 -10:00
Olli Pettay
44d0e14caf
Bug 1538516 - Resolve the Promise returned by fetch() later during page loads, r=baku
...
The patch depends on https://bugzilla.mozilla.org/show_bug.cgi?id=1558215
Depends on D34366
Differential Revision: https://phabricator.services.mozilla.com/D34367
2019-06-12 18:37:49 +00:00
Andrea Marchesini
00c0d1a9fe
Bug 1557121 - Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 3 - Rename FetchBodyConsumer to BodyConsumer, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D33828
2019-06-07 14:16:59 +00:00
Andrea Marchesini
2612cb7886
Bug 1557121 - Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 2 - FetchBodyConsumer doesn't need to be a template class, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D33827
2019-06-07 13:09:32 +00:00
Andrea Marchesini
5e3800dd0f
Bug 1557121 - Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 1 - Rename FetchStream to BodyStream, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D33826
2019-06-07 13:09:12 +00:00
Thomas Wisniewski
136622464a
Bug 1541598 - Have FetchBody::SetMimeType convert from ByteStrings to UTF8 CStrings to not corrupt Unicode values; r=hsivonen
...
Have FetchBody::SetMimeType convert from ByteStrings to UTF8 CStrings to not corrupt Unicode values
Differential Revision: https://phabricator.services.mozilla.com/D26011
2019-04-14 15:02:39 +00:00
Andrea Marchesini
caf6c3f33f
Bug 1532553 - Use AutoRealm before calling JS::ReadableStreamGetMode(), r=jorendorff
...
Differential Revision: https://phabricator.services.mozilla.com/D23117
2019-03-12 14:02:13 +00:00
Andrea Marchesini
3ce93fb8e0
Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-08 09:04:11 +00:00
Ciure Andrei
899292bc3f
Backed out 16 changesets (bug 1525245) for perma failing test_document_cookie.html CLOSED TREE
...
Backed out changeset 3fd27215698f (bug 1525245)
Backed out changeset d9a9e8e77873 (bug 1525245)
Backed out changeset 0e6f7be92e3f (bug 1525245)
Backed out changeset 6790802e2fa5 (bug 1525245)
Backed out changeset a5a9e01116ed (bug 1525245)
Backed out changeset 66e19a0c38dd (bug 1525245)
Backed out changeset fb90d51ba853 (bug 1525245)
Backed out changeset 4772db3625b3 (bug 1525245)
Backed out changeset 9affaf0cb998 (bug 1525245)
Backed out changeset a91b7ebe8bdd (bug 1525245)
Backed out changeset c2a13a7480e1 (bug 1525245)
Backed out changeset abe4482fa137 (bug 1525245)
Backed out changeset b3920c0bcf84 (bug 1525245)
Backed out changeset 0821b81f2724 (bug 1525245)
Backed out changeset 70bed2ad7899 (bug 1525245)
Backed out changeset 5f72ba232cc8 (bug 1525245)
2019-03-07 17:54:18 +02:00
Andrea Marchesini
83054c5a7a
Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-07 10:21:15 +00:00
Dorel Luca
9a275b4283
Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
...
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Andrea Marchesini
88186754be
Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-06 17:04:06 +00:00
Emilio Cobos Álvarez
dc336a73ba
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Andrea Marchesini
a14fa6a1b1
Bug 1438945 - Part 9: RemoteWorker in SharedWorkerManager. r=asuth
2018-11-19 15:18:33 -08:00
Andrea Marchesini
187f0f344a
Bug 1438945 - Part 4: errors and communications. r=asuth
2018-11-19 15:18:21 -08:00
Andrea Marchesini
f43567d65d
Bug 1500879 - Fetch should not consume Request/Response with null-body, r=asuth
...
The fetch spec treats null bodies specially. Their Body cannot become
disturbed or locked and a fresh empty ReadableStream is returned whenever an
attempt is made to consume the body. We currently fail a number of WPT tests
in this area because we do mark the body consumed as exposed via bodyUsed.
2018-11-06 14:48:07 +01:00
Andrea Marchesini
36a423c3d1
Bug 1486698 - Update Fetch+Stream implementation to throw when the stream is disturbed or locked, r=bz
...
In this patch, I went through any place in DOM fetch code, where there are
ReadableStreams and update the locked, disturbed, readable checks.
Because we expose streams more often, we need an extra care in the use of
ErrorResult objects. JS streams can now throw exceptions and we need to handle
them.
This patch also fixes a bug in FileStreamReader::CloseAndRelease() which could
be called in case mReader creation fails.
2018-10-31 18:30:18 +01:00
Andrea Marchesini
57bd031744
Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb
2018-10-23 08:17:13 +02:00
Till Schneidereit
c08d9f23d7
Bug 1385890 - Fix Streams implementation in multiple-global uses. r=baku,tcampbell,jorendorff
...
Streams have multiple parts that can be JS objects from different compartments.
For example, the [[reader]] internal slot of a stream can point to a reader
object in another compartment.
This patch makes the ReadableStream implementation robust against mixing and
matching stream-related objects and methods from different globals.
This also removes ReadableStreamBYOBReader and ReadableStreamBYOBRequest for
now, with a view toward enabling basic ReadableStream features by default in
bug 1389628.
Differential Revision: https://phabricator.services.mozilla.com/D8450
2018-10-11 14:18:43 -05:00
Thomas Wisniewski
28e3006ebc
Bug 1491504 - shortcut blob responses from XHR and fetch when the URL is a blob URL; r=baku
...
shortcut blob responses from XHR and fetch when the URL is a blob URL
Differential Revision: https://phabricator.services.mozilla.com/D7253
2018-10-06 17:34:24 +00:00
Ciure Andrei
4fc1114efc
Backed out changeset c5ac0cb25238 (bug 1491504) for FetchConsumer.cpp build bustages CLOSED TREE
2018-10-06 02:58:44 +03:00
Thomas Wisniewski
f232095b69
Bug 1491504 - shortcut blob responses from XHR and fetch when the URL is a blob URL; r=baku
...
shortcut blob responses from XHR and fetch when the URL is a blob URL
Differential Revision: https://phabricator.services.mozilla.com/D7253
2018-10-05 20:23:55 +00:00
Thomas Wisniewski
d11a7a409d
Bug 1482752 - Have Fetch bodies use File blobs for local files instead of regular blobs. r=baku
...
Have Fetch bodies use File blobs for local files instead of regular blobs.
Differential Revision: https://phabricator.services.mozilla.com/D3183
2018-09-11 19:13:15 +00:00
Cosmin Sabou
2f27839c75
Backed out changeset 68805212630a (bug 1482752) for causing build bustages on dom/fetch. CLOSED TREE
2018-09-08 20:46:04 +03:00
Thomas Wisniewski
611f5fbc99
Bug 1482752 - Have Fetch bodies use File blobs for local files instead of regular blobs. r=baku
...
Have Fetch bodies use File blobs for local files instead of regular blobs.
Differential Revision: https://phabricator.services.mozilla.com/D3183
2018-09-08 14:34:37 +00:00
Andrea Marchesini
51946984e4
Bug 1488427 - AbortSignal::Unfollow() must be called when unlinked, r=smaug
2018-09-07 11:05:47 +02:00
Andrea Marchesini
b7196cdaf0
Bug 1478101 - Split AbortSignal in 2 classes: AbortSignal and AbortSignalImpl, r=bz
2018-08-26 14:16:21 +02:00
Chris Peterson
f7ceeaf5cf
Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
...
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.
MozReview-Commit-ID: 5UQVHElSpCr
2018-06-17 22:43:11 -07:00
Emilio Cobos Álvarez
4b8b5e1717
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Ben Kelly
8aee66546e
Bug 1457157 P2 Clear a worker's ClientSource when it reaches Terminating. r=baku
2018-05-02 06:29:26 -07:00
Andrea Marchesini
6b32137e9c
Bug 1455811 - ReadableStream.cancel() must cancel the actual download - part 2, r=bkelly
2018-04-24 16:10:38 +02:00
Andrea Marchesini
1dc2b6dc75
Bug 1445587 - Port Fetch to WorkerRef - part 4 - Fetch Request, r=smaug
2018-03-16 16:52:29 +01:00
Thomas Wisniewski
64ad6daa5a
Bug 792808 - Migrate BodyExtractor away from using nsIXHRSendable; r=baku
...
MozReview-Commit-ID: 1fNcm1mPJJB
2017-09-19 21:32:12 -04:00
Andrea Marchesini
ac387512d8
Bug 1437640 - Implement nsIThreadRetargetableStreamListener in MutableBlobStreamListener, r=smaug
2018-02-14 13:23:01 +01:00
Eric Rahm
cf723ae9c9
Bug 1437188 - Part 1: Remove verbose fetch related warnings. r=bkelly
...
This removes the most verbose fetch related warnings. Cumulatively these
account for about 11,000 warnings during testing.
2018-02-09 14:04:03 -08:00
Andrea Marchesini
ddb4518ad1
Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly
2018-02-05 19:55:07 +01:00
Andrea Marchesini
3e08265e73
Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug
2018-01-31 08:25:30 +01:00
Andrea Marchesini
5e357eed9f
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Andrea Marchesini
30cbccd56d
Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug
2018-01-31 08:23:44 +01:00
Andrea Marchesini
8a21b54e4a
Bug 1413112 - Renaming Workers.h to WorkerCommon.h, r=bkelly
2018-01-30 10:10:04 +01:00
Andrea Marchesini
3faaf5a84b
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
...
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Brindusan Cristian
1153f2c09e
Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
...
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini
b434804b93
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Ben Kelly
0f4371c977
Bug 1231211 P14 Make fetch() pass worker ClientInfo and ServiceWorkerDescriptor to NS_NewChannel(). r=asuth
2018-01-23 10:38:54 -05:00
Ben Kelly
3bf536d280
Bug 1425965 P3 Make ServiceWorkerManager::FlushReportsToAllClients() use FlushReportsToConsoleForServiceWorkerScope(). r=asuth
2018-01-12 12:16:04 -05:00
Andrea Marchesini
691a9b19c2
Bug 1430061 - Signal Proxy, in fetch(), doesn't have to be nullified in order to avoid race conditions, r=bkelly
2018-01-12 15:51:34 +01:00
Andrea Marchesini
14da80b2dc
Bug 1418074 - Introducing a WorkerHolder to release AbortSignal on the correct thread, r=bkelly
2017-12-22 10:06:47 +01:00