Jan de Mooij
0873f847dd
Bug 1474542 - Use the unwrapped object's global in FetchUtil::StreamResponseToJS. r=luke
2018-07-26 10:52:01 +02:00
Valentin Gosu
7937c7c4cc
Bug 1476928
- Remove nsIURI.CloneIgnoringRef and nsIURI.CloneWithNewRef r=JuniorHsu
...
The patch introduces NS_GetURIWithNewRef and NS_GetURIWithNewRef which perform the same function.
Differential Revision: https://phabricator.services.mozilla.com/D2239
--HG--
extra : moz-landing-system : lando
2018-07-23 11:28:47 +00:00
Andrea Marchesini
bc5414c5f3
Bug 1471189 - Removing 'Terminating' state in workers, r=mrbkap
2018-07-12 19:33:41 +02:00
Andi-Bogdan Postelnicu
88cc63910d
Bug 1453795 - DOM - Initialize member fields in classes/ structures. r=peterv
...
--HG--
extra : rebase_source : 249fc26e50bded4e94f5effa4308af0f1e54b908
2018-06-16 17:21:46 +03:00
Jeff Gilbert
5b753da289
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Chris Peterson
2afd829d0f
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
--HG--
extra : rebase_source : 4c1b2fc32b269342f07639266b64941e2270e9c4
extra : source : 907543f6eae716f23a6de52b1ffb1c82908d158a
2018-06-17 22:43:11 -07:00
Andrea Marchesini
7ba8b77e07
Bug 1466023 - Separate FontTableURI and BlobURL, r=qdot
...
This patch splits FontTableURI and BlobURL in 2 classes:
FontTableURIProtocolHandler and BlobURLProtocolHandler
both under mozilla::dom.
It also removes a memory reporter because that report is already covered by the
BlobURL one.
--HG--
rename : dom/file/nsHostObjectProtocolHandler.cpp => dom/file/BlobURLProtocolHandler.cpp
rename : dom/file/nsHostObjectProtocolHandler.h => dom/file/BlobURLProtocolHandler.h
2018-06-02 15:51:42 +02:00
Emilio Cobos Álvarez
fffb25b74f
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
00d42d9d6b
Bug 1457157 P2 Clear a worker's ClientSource when it reaches Terminating. r=baku
2018-05-02 06:29:26 -07:00
Andrea Marchesini
f6fc0b418a
Bug 1456556 - FetchConsumer scope-exit RAII must grab 'self' by value, r=erahm
2018-05-01 08:47:13 +02:00
Andrea Marchesini
2aa16211a9
Bug 1455811 - ReadableStream.cancel() must cancel the actual download - part 2, r=bkelly
2018-04-24 16:10:38 +02:00
Andrea Marchesini
8617b48e8e
Bug 1455811 - ReadableStream.cancel() must cancel the actual download - part 1, r=bkelly
2018-04-24 16:09:58 +02:00
Ben Kelly
dc7660b692
Bug 1394399 P1 Default Request.credentials to "same-origin" instead of "omit". r=baku
2018-04-20 08:45:13 -07:00
Andrea Marchesini
4b23deda27
Bug 1448328 - Use thread-safe nsIURI in the URI API - part 1 - No getter/setter runnables, r=valentin
2018-04-14 01:06:35 +02:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Nathan Froyd
7bb7ffd8c9
Bug 1453134 - part 1 - add a string input stream constructor that accepts move references; r=baku
...
This method is more efficient when we know we're not going to need the
string afterwards, and should cut down on intermediate allocations.
2018-04-11 10:06:17 -04:00
Catalin Badea
1cf810fbe8
Bug 1402892 - Implement Request.destination. r=asuth,baku
2018-04-11 13:23:11 +01:00
Boris Zbarsky
1c287692f6
Bug 1452235 part 5. Stop inheriting nsISupports for nsDOMSerializer. r=qdot
...
MozReview-Commit-ID: 89iyRqKcAl0
2018-04-09 16:30:33 -04:00
Boris Zbarsky
a43a4c2e87
Bug 1452235 part 1. Remove nsIDOMSerializer::SerializeToStream. r=qdot
...
MozReview-Commit-ID: IB4W7R7Rg2P
2018-04-09 16:30:32 -04:00
Margareta Eliza Balazs
46479527fd
Backed out 3 changesets (bug 1402892) for wpt failures in /fetch/api/request/request-idl.html on a CLOSED TREE
...
Backed out changeset 7218641c9b12 (bug 1402892)
Backed out changeset 2fce477733f0 (bug 1402892)
Backed out changeset 34e219813b64 (bug 1402892)
2018-04-09 20:01:12 +03:00
Catalin Badea
1c8f28f854
Bug 1402892 - Implement Request.destination. r=asuth,baku
2018-04-09 16:29:15 +01:00
Boris Zbarsky
4292bca4ee
Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
...
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Dave Townsend
e2dffad4ac
Bug 1448500: Add speculative request content policy type. r=bz, r=kmag
...
Adds a new TYPE_SPECULATIVE to nsIContentPolicy uses it as the type for
speculative connection channels from the IO service. I believe I've added it to
all the content policies in tree to make sure it behaves the same as TYPE_OTHER
used to.
The webextension test shows that the webextension proxy API sees speculative
lookups requested through the IO service.
MozReview-Commit-ID: DQ4Kq0xdUOD
--HG--
extra : rebase_source : d9460fdac118bc68f0db79749a16f181b580f2e7
2018-03-23 15:27:08 -07:00
Emilio Cobos Álvarez
4bfb789b0c
Bug 1448612: Don't take ownership of the stream data too early. r=baku
...
MozReview-Commit-ID: F3FRoh3tR9g
2018-03-28 00:42:52 +02:00
Andrea Marchesini
446bd86ffe
Bug 1445587 - Port Fetch to WorkerRef - part 4 - Fetch Request, r=smaug
2018-03-16 16:52:29 +01:00
Andrea Marchesini
2035842eaa
Bug 1445587 - Port Fetch to WorkerRef - part 3 - FetchStreamReader, r=smaug
2018-03-16 16:52:29 +01:00
Andrea Marchesini
86e59d5cd5
Bug 1445587 - Port Fetch to WorkerRef - part 2 - FetchStream, r=smaug
2018-03-16 16:52:29 +01:00
Andrea Marchesini
f46c7858b5
Bug 1446204 - Response body should be marked as used if used as stream, r=till
2018-03-16 16:52:28 +01:00
Andrea Marchesini
0c3ba63569
Bug 1446174 - Fetch::Abort() should interrupt the underlying fetch, r=smaug
2018-03-16 16:52:28 +01:00
Andrea Marchesini
eb32241f0c
Bug 1445587 - Port Fetch to WorkerRef - part 1 - FetchConsumer, r=smaug
2018-03-16 16:52:28 +01:00
Andrea Marchesini
94d276ca33
Bug 1445594 - Fetch must release the Promise object on the owning thread, r=catalinb
2018-03-14 16:17:08 +01:00
Andrea Marchesini
44fcb1243d
Bug 1445217 - Cleanup WorkerControlRunnable in dom/fetch, r=catalinb
2018-03-14 16:17:08 +01:00
Andrea Marchesini
899bf212ef
Bug 1445540 - Use WorkerRef in FetchUtil, r=smaug
2018-03-14 15:27:52 +01:00
Andrea Marchesini
86d581422b
Bug 1440941 - FetchDriver should check if the operation has been already aborted when OnStartRequest is called, r=bkelly
2018-02-26 22:32:15 +01:00
Thomas Wisniewski
7c05457e0d
Bug 792808 - Purge nsIXMLHttpRequest, nsIXMLHttpRequestUpload, nsIXMLHttpRequestEventTarget, nsIXHRSendable XPCOM interfaces; r=baku
...
MozReview-Commit-ID: 8yzCXSeyO85
--HG--
extra : rebase_source : 80f2a96df1e250ad646a20271b7d3dbebf7774e4
2017-11-19 17:11:41 -05:00
Thomas Wisniewski
bd0b3ab10a
Bug 792808 - Migrate BodyExtractor away from using nsIXHRSendable; r=baku
...
MozReview-Commit-ID: 1fNcm1mPJJB
--HG--
extra : rebase_source : 443ad7309f2e6a064b54466ece967ced0c3155ea
2017-09-19 21:32:12 -04:00
Eric Rahm
3efc420b11
Bug 1437693 - Stop warning about unknown content lengths. r=bkelly
...
--HG--
extra : rebase_source : 943658882837ad790542231634d2a24c21906094
2018-02-12 14:54:14 -08:00
Andrea Marchesini
cb79b67922
Bug 1437640 - Implement nsIThreadRetargetableStreamListener in MutableBlobStreamListener, r=smaug
2018-02-14 13:23:01 +01:00
Eric Rahm
00725e9047
Bug 1437188 - Part 2: Only try to retarget if the listener is retargetable. r=bkelly
...
MutableBlobStreamListener isn't retargetable, in order to avoid warning about
it we don't try retarget it at all. This should remove about 4,000 warnings
during testing.
--HG--
extra : rebase_source : 9ff00b9c5e818c5eba813915b4118749da1ecad6
2018-02-12 11:57:44 -08:00
Eric Rahm
9f798eecf1
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.
--HG--
extra : rebase_source : ee930dec1e18b9a7f34d5c66944dc015be10be69
2018-02-09 14:04:03 -08:00
Andrea Marchesini
1126b00aed
Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot
2018-01-31 16:45:20 +01:00
Andrea Marchesini
67fac604a1
Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj
2018-01-31 16:45:20 +01:00
Andrea Marchesini
80a7883970
Bug 1422036 - Using WorkerControlRunnable to release resources in fetch when the worker is shutting down, r=catalinb
2018-02-05 19:55:08 +01:00
Andrea Marchesini
8cdf705535
Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly
2018-02-05 19:55:07 +01:00
Boris Zbarsky
478687c2e8
Bug 1434686 part 4. Use IgnoreErrors() in dom/. r=mystor
...
MozReview-Commit-ID: GwVDrTLPTOb
2018-02-01 14:21:14 -05:00
Sebastian Hengst
14018b66f7
Backed out changeset 52b418c8febf (bug 1371699) for failing wpt webvtt/parsing/cue-text-parsing/tests/entities.html on Linux
...
--HG--
extra : histedit_source : d98d3d57b04e85bbee527549ecc271e5fc02e21e
2018-01-31 20:31:22 +02:00
Sebastian Hengst
e33e198739
Backed out changeset f1221589e7a6 (bug 1405974) for failing wpt webvtt/parsing/cue-text-parsing/tests/entities.html on Linux
...
--HG--
extra : histedit_source : d11737083bf4383b50707e024539f45f174531f9
2018-01-31 20:30:45 +02:00
Andrea Marchesini
69f4700dfd
Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot
2018-01-31 16:45:20 +01:00
Andrea Marchesini
c16f42b917
Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj
2018-01-31 16:45:20 +01:00
Andrea Marchesini
26352bfee1
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
7e52540256
Bug 1432963 - Fixing workers headers - part 16 - JSSettings in a workerinternals namespace, r=smaug
2018-01-31 08:24:59 +01:00
Andrea Marchesini
2c7c69af24
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Andrea Marchesini
063723a1f0
Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug
2018-01-31 08:23:44 +01:00
Andrea Marchesini
c4b257cdc6
Bug 1432963 - Fixing workers headers - part 12 - WorkerRunnable without workers namespace, r=smaug
2018-01-31 08:22:56 +01:00
Andrea Marchesini
3513d1c407
Bug 1413112 - Renaming Workers.h to WorkerCommon.h, r=bkelly
...
--HG--
rename : dom/workers/Workers.h => dom/workers/WorkerCommon.h
2018-01-30 10:10:04 +01:00
Gurzau Raul
ea1ff80377
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-01-25 19:08:48 +02:00
Yury Delendik
0cc3f8ba82
Bug 1431864 - Use Response.url as WebAssembly module URL. r=bkelly,luke
...
MozReview-Commit-ID: 2xAasdmpIKX
--HG--
extra : rebase_source : a4664e04930eda6dc1a4429be5b9a3c3467cd71b
2018-01-22 14:55:30 -06:00
Andrea Marchesini
c6da271117
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
Andrea Marchesini
f3ba47cb22
Bug 1432713 - PerformanceResouceTiming entries should have initiatorType set to 'fetch' if related to Fetch method requests, r=smaug
2018-01-24 12:45:59 +01:00
Brindusan Cristian
368c3d5b6b
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
6480b95ba3
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Tom Schuster
37c5443f1e
Bug 1283427 - Remove SEC_NORMAL completely. r=ckerschb
...
--HG--
extra : rebase_source : 09099a01a8812a575e455dbd09a04ebe43309e43
extra : histedit_source : 8e0159f9c25fa86e3519b8e17b8ad9924e0351ad
2018-01-22 16:35:01 +01:00
Ben Kelly
ede8f70716
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
1a6be56766
Bug 1432272 Make Fetch API use the global's base URL instead of the entry document's base URL. r=bz
...
The fetch spec used to use the entry settings as the base for parsing relative
Request/Response URL's, but this is no longer the case. This was changed in:
https://github.com/whatwg/fetch/issues/367
Update our code to match this behavior. We basically convert GetEntryDocument()
to QI the global to nsGlobalWindowInner and use its ExtantDoc instead.
No changes are needed for workers since its not possible to perform cross-global
javascript access in worker threads.
2018-01-23 09:38:21 -05:00
Luke Crouch
30b0ae88f8
Bug 587523: remove branching logic; comment fixups r=valentin
...
MozReview-Commit-ID: J8LGTUMehZA
--HG--
extra : rebase_source : bd14c0a652c06e6cdb73c6c52034a4fd2f3abbef
2018-01-18 09:57:14 -06:00
Luke Crouch
c95e646b6b
Bug 587523: update Fetch API referrer to check for private browsing pref r=valentin
...
MozReview-Commit-ID: 2DFYcWuXfnn
--HG--
extra : rebase_source : 05bf93b54e25ea7962379a6b6b51c46d73d660b6
2018-01-16 15:26:26 -06:00
Hiroyuki Ikezoe
7ec737b816
Bug 1431295 - Drop 'undef None' macro in dom/. r=baku
...
MozReview-Commit-ID: Fmd4A2c7yUu
--HG--
extra : rebase_source : fdad8ac6276efa1a3612eb1c9a2a9478270d426d
2018-01-18 14:12:51 +09:00
Xidorn Quan
2bf366e30a
Bug 1303025 - Accept null for body param in constructor of Response. r=bkelly
...
MozReview-Commit-ID: LeEFcQzPJlv
--HG--
extra : rebase_source : 37980f7601143692989d17a2e715f0c5284730a4
2018-01-13 14:20:50 +11:00
Ben Kelly
18648deb01
Bug 1425965 P3 Make ServiceWorkerManager::FlushReportsToAllClients() use FlushReportsToConsoleForServiceWorkerScope(). r=asuth
2018-01-12 12:16:04 -05:00
Andrea Marchesini
58646af781
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
Andrew Sutherland
8244fa6b69
Bug 1416879 - Part 5: FetchStreamReader needs to cancel its reader when it encounters write errors. r=baku, f=bkelly
...
Currently, FetchStreamReader never signals to the JS stream code that
the reader has been closed. This means that when a ServiceWorker
passes a ReadableStream to respondWith and the HTTP Channel gets
canceled, the JS code will keep generating the stream without ever
realizing the data's not going anywhere. It's necessary to cancel
the reader. Or do something like that, this seems to work!
--HG--
extra : rebase_source : 88952a917c48b9fa7e421f640b7fb57b15cf7d4d
extra : source : 994dc643a2ab62f03fef780a58971b476a4b6f4a
2018-01-04 18:09:32 -05:00
Andrew Sutherland
f3a816271e
Bug 1416879 - Part 4: FetchDriver needs to propagate write failures. r=baku
...
In the scenario where a ServiceWorker returns a pass-through fetch via
`evt.respondWith(fetch("underlying"))`, in order for the "underlying"
HTTP channel to be canceled when the outer HTTP channel is canceled,
FetchDriver's OnDataAvailable method needs to return an error when
the output pipe experiences an error.
Unfortunately, the contract for ReadSegments is effectively that it
returns NS_OK regardless of what the rv of the write handler returned,
so relying on the returned rv is insufficient. And because various
Write*() methods will all fast-path to returning NS_OK if a count of 0
is passed, it's necessary to infer a closed/broken pipe by noticing
that we tried to write more than 0 bytes of data but 0 bytes were
written. (This is safe because the pipe we write into was created
by FetchDriver::OnStartRequest which explicitly creates an infinite
pipe, so it's not possible for the write to fail due to lack of space
in the pipe.)
--HG--
extra : rebase_source : 0a1f9f7a4c244934ff255a07e78608c8ea6fef0e
extra : source : 8e4fd74e7f5e69df7363bdb560f79dde347ce082
2018-01-04 18:04:55 -05:00
Andrea Marchesini
7970f659de
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 18 - FetchObserver API enabled, r=asuth
2018-01-08 14:05:05 +01:00
Andrea Marchesini
aacb9ccdfb
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 14 - Request Context enabled, r=asuth
2018-01-08 14:05:05 +01:00
Brindusan Cristian
f42618c99d
Backed out 6 changesets (bug 1416879) for bc permafailures on windows on browser_multie10s_update.js r=backout a=backout
...
Backed out changeset 840a6e04bcea (bug 1416879)
Backed out changeset 994dc643a2ab (bug 1416879)
Backed out changeset 8e4fd74e7f5e (bug 1416879)
Backed out changeset 5453b8a58f0c (bug 1416879)
Backed out changeset d156f6b687e1 (bug 1416879)
Backed out changeset 714d3942fb10 (bug 1416879)
2018-01-07 11:55:44 +02:00
Andrew Sutherland
31246a1058
Bug 1416879 - Part 5: FetchStreamReader needs to cancel its reader when it encounters write errors. r=baku, f=bkelly
...
Currently, FetchStreamReader never signals to the JS stream code that
the reader has been closed. This means that when a ServiceWorker
passes a ReadableStream to respondWith and the HTTP Channel gets
canceled, the JS code will keep generating the stream without ever
realizing the data's not going anywhere. It's necessary to cancel
the reader. Or do something like that, this seems to work!
--HG--
extra : rebase_source : 559af90ba766ebd4deb5d99b6696cd2207215f9f
2018-01-04 18:09:32 -05:00
Andrew Sutherland
8da7ba26dd
Bug 1416879 - Part 4: FetchDriver needs to propagate write failures. r=baku
...
In the scenario where a ServiceWorker returns a pass-through fetch via
`evt.respondWith(fetch("underlying"))`, in order for the "underlying"
HTTP channel to be canceled when the outer HTTP channel is canceled,
FetchDriver's OnDataAvailable method needs to return an error when
the output pipe experiences an error.
Unfortunately, the contract for ReadSegments is effectively that it
returns NS_OK regardless of what the rv of the write handler returned,
so relying on the returned rv is insufficient. And because various
Write*() methods will all fast-path to returning NS_OK if a count of 0
is passed, it's necessary to infer a closed/broken pipe by noticing
that we tried to write more than 0 bytes of data but 0 bytes were
written. (This is safe because the pipe we write into was created
by FetchDriver::OnStartRequest which explicitly creates an infinite
pipe, so it's not possible for the write to fail due to lack of space
in the pipe.)
--HG--
extra : rebase_source : 788dab679298841fc03bb054458b6f8cc4a0a8d9
2018-01-04 18:04:55 -05:00
Andrea Marchesini
2e497a02f6
Bug 1418074 - Introducing a WorkerHolder to release AbortSignal on the correct thread, r=bkelly
2017-12-22 10:06:47 +01:00
Andrea Marchesini
d3e4e6067c
Bug 1418074 - Get rid of friend classes in WorkerFetchResolver, r=bkelly
2017-12-22 10:05:48 +01:00
Eden Chuang
4dddce09c7
Bug 1350359
- Part 6: Make sure releasing nsICacheInfoChannel of InternalResponse on the main thread. r=bkelly
...
Using nsMainThreadPtrHandle to hold the nsICacheInfoChannel in the
InternalResponse.
--HG--
extra : histedit_source : 125f31c63fce1cbd9995d29688e7795efad3a417
2017-12-06 01:13:54 +08:00
Eden Chuang
7f3b4d6b1a
Bug 1350359
- Part 4: Fix a crash caused by off-main-thread destruction of a HttpChannelChild. r=bkelly
...
Setting the InternalResponse's mCacheInfoChannel while needed, to avoid
keeping unnecessary nsICacheInfoChannel alive.
--HG--
extra : histedit_source : 39f9339b69db52b0278495d5247bc99ffd1d8f79
2017-12-04 14:39:26 +08:00
Eden Chuang
4a65d93564
Bug 1350359
- Part 2: Fetch and save alterntative data to InternalResponse. r=bkelly
...
Create a new class AlternativeDataStreamListener for alternative data and
main data overlap loading.
AlternativeDataStreamListener coorperates with FetchDriver to handle
following situations
1. There is no preferred alternative data type in InternalRequest
Directly using FetchDriver to listen on the opened channel
2. If preferred alternative data type exists in InternalRequest, but no
saved data in cache.
AlternativeDataStreamListener is constructed to listen on the channel,
but its status would be set as FALLBACK and redirect callbacks to
FetchDriver.
3. If preferred alternative data type exists in InternalRequest, and the
data also exists in the cache.
AlternativeDataStreamListener is constructed to listen on the channel
for loading the alternative data. And also open a channel listened by
FetchDriver for loading the main data when AlternativeDataStreamListener::
OnStartRequest is called.
If the cacheEntryId is different between main data channel and
alternative data channel, we will cancel the alternative data loading.
2017-12-04 14:39:15 +08:00
Eden Chuang
7211e8c25c
Bug 1350359
- Part 1: Set alternative data type from InterceptedChannel to InternalRequest. r=bkelly
2017-12-04 14:39:10 +08:00
Cosmin Sabou
5c4663243d
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
ff3102232c
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 19 - FetchObserver API enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
4f8c375ea7
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 15 - Request Context enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
1fd1731f81
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug
2017-11-22 11:18:57 +01:00
Edouard Oger
6341dc253c
Bug 1419146 - Respect mozErrors in Request. r=bkelly
...
MozReview-Commit-ID: Lbx395q7BYF
--HG--
extra : rebase_source : 9928a998378b4f84914f0b45ebb2266f34b04230
2017-11-20 17:07:26 -05:00
Edouard Oger
ee0f18811d
Bug 1416842 - Allow fetch to reject with nsresult in chrome code. r=bkelly
...
MozReview-Commit-ID: FD2NUJZtAhT
--HG--
extra : rebase_source : cff033ea3d7e9581112392e7725290819fbec18b
2017-11-15 14:53:42 -05:00
Andrea Marchesini
97baa05333
Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb, r=tanvi
2017-11-16 12:27:01 +01:00
Sebastian Hengst
6c1d6be6fb
Backed out 3 changesets (bug 1398229) for failing own browser-chrome browser/components/contextualidentity/test/browser/browser_saveLink.js. r=backout on a CLOSED TREE
...
Backed out changeset 5b3b0a38b2d1 (bug 1398229)
Backed out changeset a726fc7506ca (bug 1398229)
Backed out changeset 53dae7764e58 (bug 1398229)
2017-11-15 20:49:09 +02:00
Andrea Marchesini
11eefa61bb
Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb
2017-11-15 18:16:29 +01:00
Andrea Marchesini
73712f7d05
Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth
2017-11-15 07:58:38 +01:00
Andrew McCreight
1d0acbdb9b
Bug 1412125, part 1 - Manually add mode lines and MPL to files that were missing them entirely. r=qdot
...
These were detected by the script used to generate part 2.
MozReview-Commit-ID: VMcT154f6f
--HG--
extra : rebase_source : 2f5fc8a314302fcacac840a8dbe0ff874d518e51
2017-10-26 14:54:59 -07:00
Ben Kelly
9d8fb37a12
Bug 1380255 P2 Don't fire FetchDriverObserver::OnDataAvailable() for every FetchDriver ODA callback. r=baku
2017-10-12 19:23:16 -07:00
Catalin Badea
6a9fd06ae6
Bug 1380255 - FetchDriver should have threadsafe refcounting. r=baku
2017-09-26 11:53:00 +01:00
Jonathan Watt
24b417787f
Bug 1406820 part 1. Initialize InternalRequest::mBodyLength in the fetch code. r=qdot
2017-10-11 00:46:17 +01:00
Luke Wagner
cf897d6fcb
Bug 1347644 - Baldr: implement ConsumeStreamCallback in browser (r=bkelly)
...
MozReview-Commit-ID: DXv2MegefDw
--HG--
extra : rebase_source : aca4d6e40ae9af03e05520ec8bdef92889e44acc
2017-10-10 14:41:24 -05:00
Ben Kelly
47571637f3
Bug 1391693 P4 Don't count internal redirects towards Response.redirected r=tt
2017-10-09 10:03:40 -07:00
Sebastian Hengst
15b8e9a53b
Backed out changeset 097c44e15165 (bug 1371699)
2017-10-05 13:10:55 +02:00
Andrea Marchesini
1867437172
Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj
2017-10-03 07:20:18 +02:00
Sebastian Hengst
e8e914baa7
Backed out changeset c033bdb24e14 (bug 1371699)
2017-10-03 16:55:02 +02:00
Andrea Marchesini
ff3b280260
Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj
2017-10-03 07:20:18 +02:00
Andrea Marchesini
baa04d619a
Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug
2017-08-06 20:47:00 +03:00
Sebastian Hengst
fa921ed2a3
Backed out changeset 22a322b57f50 (bug 1380255) for asserting and failing mochitest-plain toolkit/components/extensions/test/mochitest/test_ext_webrequest_responseBody.html. r=backout
2017-09-26 15:45:24 +02:00
Catalin Badea
32e27f63b8
Bug 1380255 - FetchDriver should have threadsafe refcounting. r=baku
2017-09-26 12:52:53 +01:00
Andrea Marchesini
53d31f2d9c
Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug
2017-09-26 07:21:44 +02:00
Andrea Marchesini
86c5c52e0e
Bug 1402888 - Remove nsIStreamTransportService::createInputStream startOffset and readLimit params, r=smaug
2017-09-26 07:21:27 +02:00
Chris Peterson
a6a56ed916
Bug 870698 - Part 6: Replace Append(NS_LITERAL_CSTRING("")) with AppendLiteral(""). r=erahm
...
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.
MozReview-Commit-ID: F750v6NN81s
--HG--
extra : rebase_source : 714dd78df0f4c33e23e5b117615bd8fd561674c5
extra : source : 742bda9e6b1ddaf34d09894204ad18ce798b79b7
2017-09-07 18:25:25 -07:00
Andrea Marchesini
4753d050bd
Bug 1396848 - Iterating a Header object returns sorted and combined values, r=qdot
2017-09-17 11:18:20 +02:00
Andrea Marchesini
157334f4b0
Bug 1397627 - Fetch API and other components should pass the length of the stream to necko when known, r=smaug
2017-09-08 16:06:26 +02:00
Shawn Huang
00788aac72
Bug 1396300 - Use fallible allocation in GetAsStream. r=bkelly
2017-09-08 11:59:46 +08:00
Tom Tung
a1e22fa9e7
Bug 1290481 - P5: Implement a function to generate padding size. r=bkelly
...
MozReview-Commit-ID: 6poDeyErBjc
--HG--
extra : rebase_source : 982139c536c17a6699d700df7c8b3071939bb3c0
2017-07-10 17:03:24 +08:00
Tom Tung
9321dc629d
Bug 1290481 - P1: Make InternalResponse and CacheResponse be able to keep padding size. r=bkelly
...
MozReview-Commit-ID: LIxkSdfPZtf
--HG--
extra : rebase_source : ff52bdc1cc813ebc4d5ec679b4bac3dfb52550ac
2017-07-10 17:11:29 +08:00
Andrea Marchesini
ec603f10be
Bug 1381748 - Cleanup FetchConsumer workflow - part 3 - shutdown workflow, r=catalinb
2017-09-04 17:06:47 +02:00
Andrea Marchesini
08253b4c69
Bug 1381748 - Cleanup FetchConsumer workflow - part 2 - cleanup RegisterWorkerHolder, r=catalinb
2017-09-04 17:06:31 +02:00
Andrea Marchesini
0af2f0aa2c
Bug 1381748 - Cleanup FetchConsumer workflow - part 1 - no mBody, r=catalinb
2017-09-04 17:06:18 +02:00
Sebastian Hengst
e2f54c0cd7
merge mozilla-central to autoland. r=merge a=merge
2017-09-01 10:43:32 +02:00
Honza Bambas
8d492fe637
Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana
2017-08-31 06:07:00 -04:00
Tom Tung
f3b0f175ac
Bug 1393439 - P2: Correct the variable naming. r=bkelly
...
MozReview-Commit-ID: 1DblOV82nEd
--HG--
extra : rebase_source : e03fc7b091d7aa4a6076660416f2c9514ad8894b
2017-08-29 16:00:35 +08:00
Tom Tung
85b52e428b
Bug 1393439 - P1: Don't return TypeError for no-cors mode and don't check SRI for the hidden opaque body. r=bkelly
...
MozReview-Commit-ID: 1IspF2IlqqP
--HG--
extra : rebase_source : acee9a04c1be416fa8c779308062d3aebdba8b6a
2017-08-25 16:36:59 +08:00
Andrea Marchesini
76ea37870c
Bug 1390717
- FetchStream should not have an extra JS::Heap<ReadableStream>, r=jonco
2017-08-31 16:29:02 +02:00
Andrea Marchesini
7c7bc057d2
Bug 1395220 - FetchStream must support multiple read requests, r=bkelly
2017-08-31 15:36:18 +02:00
Honza Bambas
4263c50db2
Bug 1358060 - Allow postponing of unimportant resources opening during page load, class-of-service Tail flag. r=dragana
...
--HG--
extra : rebase_source : 1ab691fe066e641c948aa5f42827305411579708
2017-08-30 09:32:00 -04:00
Andrea Marchesini
1df07a3979
Bug 1395141 - RequestInit dictionary must have AbortSignal as optional, r=bkelly
2017-08-30 18:47:23 +02:00
Andrew McCreight
78807d8776
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
--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Andrea Marchesini
508c8078ce
Bug 1378342 - AbortSignal/AbortController - part 10 - Reject the fetch() promise if AbortSignal is already aborted, r=bkelly
2017-08-29 11:31:07 +02:00
Andrea Marchesini
3e5de60a22
Bug 1378342 - AbortSignal/AbortController - part 9 - Request.signal should not be a reference of RequestInit.signal, r=bkelly
2017-08-29 11:31:07 +02:00
Andrea Marchesini
a441d6f43c
Bug 1378342 - AbortSignal/AbortController - part 8 - Aborting ReadableStream when AbortSignal is aborted, r=bkelly
2017-08-29 11:31:06 +02:00
Andrea Marchesini
f533937740
Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly
2017-08-29 11:31:06 +02:00
Andrea Marchesini
186795d3eb
Bug 1378342 - AbortSignal/AbortController - part 2 - Renaming FetchController/FetchSignal, r=bkelly
...
--HG--
rename : dom/abort/FetchController.cpp => dom/abort/AbortController.cpp
rename : dom/abort/FetchController.h => dom/abort/AbortController.h
rename : dom/abort/FetchSignal.cpp => dom/abort/AbortSignal.cpp
rename : dom/abort/FetchSignal.h => dom/abort/AbortSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/abort/tests/file_abort_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/abort/tests/test_abort_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/abort/tests/worker_abort_controller.js
rename : dom/webidl/FetchController.webidl => dom/webidl/AbortController.webidl
rename : dom/webidl/FetchSignal.webidl => dom/webidl/AbortSignal.webidl
2017-08-29 11:31:06 +02:00
Andrea Marchesini
bf4a05e410
Bug 1378342 - AbortSignal/AbortController - part 1 - Moving FetchController/FetchSignal into dom/abort, r=bkelly
...
--HG--
rename : dom/fetch/FetchController.cpp => dom/abort/FetchController.cpp
rename : dom/fetch/FetchController.h => dom/abort/FetchController.h
rename : dom/fetch/FetchSignal.cpp => dom/abort/FetchSignal.cpp
rename : dom/fetch/FetchSignal.h => dom/abort/FetchSignal.h
rename : dom/tests/mochitest/fetch/file_fetch_controller.html => dom/abort/tests/file_fetch_controller.html
rename : dom/tests/mochitest/fetch/test_fetch_controller.html => dom/abort/tests/test_fetch_controller.html
rename : dom/tests/mochitest/fetch/worker_fetch_controller.js => dom/abort/tests/worker_fetch_controller.js
2017-08-29 11:31:05 +02:00
Sebastian Hengst
784834cf76
Backed out changeset 81c100a42bb6 (bug 1378342) for linting failures, e.g. in file_abort_controller.html. r=backout
...
--HG--
rename : dom/abort/FetchController.cpp => dom/fetch/FetchController.cpp
rename : dom/abort/FetchController.h => dom/fetch/FetchController.h
rename : dom/abort/FetchSignal.cpp => dom/fetch/FetchSignal.cpp
rename : dom/abort/FetchSignal.h => dom/fetch/FetchSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/tests/mochitest/fetch/file_fetch_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/tests/mochitest/fetch/test_fetch_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/tests/mochitest/fetch/worker_fetch_controller.js
2017-08-29 09:17:57 +02:00
Sebastian Hengst
ffe4336403
Backed out changeset e5c6f95530f2 (bug 1378342)
...
--HG--
rename : dom/abort/AbortController.cpp => dom/abort/FetchController.cpp
rename : dom/abort/AbortController.h => dom/abort/FetchController.h
rename : dom/abort/AbortSignal.cpp => dom/abort/FetchSignal.cpp
rename : dom/abort/AbortSignal.h => dom/abort/FetchSignal.h
rename : dom/abort/tests/file_abort_controller.html => dom/abort/tests/file_fetch_controller.html
rename : dom/abort/tests/test_abort_controller.html => dom/abort/tests/test_fetch_controller.html
rename : dom/abort/tests/worker_abort_controller.js => dom/abort/tests/worker_fetch_controller.js
rename : dom/webidl/AbortController.webidl => dom/webidl/FetchController.webidl
rename : dom/webidl/AbortSignal.webidl => dom/webidl/FetchSignal.webidl
2017-08-29 09:17:21 +02:00
Sebastian Hengst
80e618e605
Backed out changeset 2c6f49d73935 (bug 1378342)
2017-08-29 09:16:59 +02:00
Sebastian Hengst
03d1665672
Backed out changeset 64d0dbf9706b (bug 1378342)
2017-08-29 09:16:48 +02:00
Sebastian Hengst
db728bce54
Backed out changeset 4c41e61d6763 (bug 1378342)
2017-08-29 09:16:43 +02:00
Sebastian Hengst
f8f91f8942
Backed out changeset 68192e795b74 (bug 1378342)
2017-08-29 09:16:37 +02:00
Andrea Marchesini
b2983e07a6
Bug 1378342 - AbortSignal/AbortController - part 10 - Reject the fetch() promise if AbortSignal is already aborted, r=bkelly
2017-08-29 07:30:21 +02:00
Andrea Marchesini
b89d4f379a
Bug 1378342 - AbortSignal/AbortController - part 9 - Request.signal should not be a reference of RequestInit.signal, r=bkelly
2017-08-29 07:30:21 +02:00
Andrea Marchesini
268b173378
Bug 1378342 - AbortSignal/AbortController - part 8 - Aborting ReadableStream when AbortSignal is aborted, r=bkelly
2017-08-29 07:30:21 +02:00
Andrea Marchesini
afa1c0c6c4
Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly
2017-08-29 07:30:21 +02:00
Andrea Marchesini
9b66f91da8
Bug 1378342 - AbortSignal/AbortController - part 2 - Renaming FetchController/FetchSignal, r=bkelly
...
--HG--
rename : dom/abort/FetchController.cpp => dom/abort/AbortController.cpp
rename : dom/abort/FetchController.h => dom/abort/AbortController.h
rename : dom/abort/FetchSignal.cpp => dom/abort/AbortSignal.cpp
rename : dom/abort/FetchSignal.h => dom/abort/AbortSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/abort/tests/file_abort_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/abort/tests/test_abort_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/abort/tests/worker_abort_controller.js
rename : dom/webidl/FetchController.webidl => dom/webidl/AbortController.webidl
rename : dom/webidl/FetchSignal.webidl => dom/webidl/AbortSignal.webidl
2017-08-29 07:30:19 +02:00
Andrea Marchesini
ac5b9df285
Bug 1378342 - AbortSignal/AbortController - part 1 - Moving FetchController/FetchSignal into dom/abort, r=bkelly
...
--HG--
rename : dom/fetch/FetchController.cpp => dom/abort/FetchController.cpp
rename : dom/fetch/FetchController.h => dom/abort/FetchController.h
rename : dom/fetch/FetchSignal.cpp => dom/abort/FetchSignal.cpp
rename : dom/fetch/FetchSignal.h => dom/abort/FetchSignal.h
rename : dom/tests/mochitest/fetch/file_fetch_controller.html => dom/abort/tests/file_fetch_controller.html
rename : dom/tests/mochitest/fetch/test_fetch_controller.html => dom/abort/tests/test_fetch_controller.html
rename : dom/tests/mochitest/fetch/worker_fetch_controller.js => dom/abort/tests/worker_fetch_controller.js
2017-08-29 07:30:19 +02:00
Ben Kelly
8b54ffc436
Bug 1128959 - Implement the WHATWG Streams spec - part 18 - cycle collect FetchStreamReader r=bz
2017-08-10 18:04:56 -07:00
Andrea Marchesini
98f34badee
Bug 1128959 - Implement the WHATWG Streams spec - part 17 - Creating FetchStream as a out param in order to avoid JS hazards, r=bz
2017-08-10 18:04:56 -07:00
Andrea Marchesini
6e330b0360
Bug 1128959 - Implement the WHATWG Streams spec - part 16 - report stream errors during consumption r=bkelly
2017-08-10 18:04:56 -07:00
Andrea Marchesini
76f69afc03
Bug 1128959 - Implement the WHATWG Streams spec - part 15 - setting the correct global when ReadableStream.getReader() is called, r=bz
2017-08-10 18:04:56 -07:00
Andrea Marchesini
cb3c4dda07
Bug 1128959 - Implement the WHATWG Streams spec - part 12 - starting body consuming and passing the JSContext down from the binding entrypoints to where the ReadableStream could be read, r=bz
...
This patch does 2 things:
. when SetBodyUsed() is called, the pump for the stream reading is activated.
. Just because of the reading of the stream could end up executing JS code, we
need to pass the JSContext in the correct state down to SetBodyUsed.
2017-08-10 18:04:55 -07:00