Matthew Gaudet
ad845e0b67
Bug 1757241 - Remove !MOZ_DOM_STREAMS code from most files r=smaug
...
I've also tested to verify that JS Streams remains enabled in the JS Shell package
Differential Revision: https://phabricator.services.mozilla.com/D142620
2022-04-13 18:57:48 +00:00
Yury Delendik
cc226dc063
Bug 1757999 - Disable fetch HTTP wasm caching if wasm debug enabled. r=necko-reviewers,lth,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140401
2022-03-09 21:49:52 +00:00
Bryan Thrall
d64b59843d
Bug 1734174 - Remove unneeded JSContext parameter from AcquireReadableStreamDefaultReader() r=mgaudet
...
Depends on D139871
Differential Revision: https://phabricator.services.mozilla.com/D139872
2022-02-28 22:31:41 +00:00
Kagami Sascha Rosylight
7815723a1d
Bug 1756070 - Part 1: Add missing override keywords r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D139166
2022-02-21 13:50:12 +00:00
Eden Chuang
fe1a5665bf
Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
...
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.
Depends on 132800
Depends on D132800
Differential Revision: https://phabricator.services.mozilla.com/D133483
2022-01-25 08:53:03 +00:00
Eden Chuang
7509ed0566
Bug 1744025: Remove only assertion-relevant mWorkerPrivate from FetchBody. r=dom-worker-reviewers,edenchuang
...
Depends on D132711
Differential Revision: https://phabricator.services.mozilla.com/D132795
2022-01-25 08:53:01 +00:00
Kagami Sascha Rosylight
4c8630b10b
Bug 1751453 - Part 2: Remove WorkerSignalFollower r=smaug
...
I originally intended to remove the cycle collection only, but then I found that there's zero use of this class.
Differential Revision: https://phabricator.services.mozilla.com/D136659
2022-01-24 13:18:34 +00:00
Kagami Sascha Rosylight
14c00e5e01
Bug 1751453 - Part 1: Remove AbortFollower::Unlink() r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136658
2022-01-24 13:18:33 +00:00
Kagami Sascha Rosylight
5af4408463
Bug 1660555 - Make AbortFollower::mFollowingSignal a WeakPtr r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136446
2022-01-21 14:40:38 +00:00
Kagami Sascha Rosylight
f44ce935ef
Bug 1750543 - Don't abort by signal if consuming request body by DOM methods r=smaug
...
There are two cases when reading request body by DOM methods:
1. It's being read before fetch()
2. or after fetch()
The first case shouldn't be affected by abort signal per the spec, since the abort step is added only within fetch().
https://fetch.spec.whatwg.org/#ref-for-abortsignal-add
The second case should still fail but with `TypeError: Body has already been consumed`, not AbortError.
Differential Revision: https://phabricator.services.mozilla.com/D136262
2022-01-21 11:18:17 +00:00
Jan Varga
f064e6e5a2
Bug 1750931 - Fix non-unified-build bustage in dom/events, dom/fetch and dom/streams; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136315
2022-01-19 11:09:55 +00:00
Matthew Gaudet
9e76758612
Bug 1750606 - Use script boundaries to make DOM streams buildable r=saschanaz
...
This gets us back to the state we were in with JS Streams. There's a fair
amount of work to get this annotation correct, and some tricky cases to
handle.
Differential Revision: https://phabricator.services.mozilla.com/D136178
2022-01-18 14:39:45 +00:00
Matthew Gaudet
7cf26082b1
Bug 1734873 - Fetch/Response/Blob ReadableStream integration r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D131550
2022-01-14 21:09:20 +00:00
Jens Stutte
d600f5b7bb
Bug 1741182: Harmonize WorkerRunnable derived classes' overrides of Cancel. r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D135679
2022-01-12 14:43:09 +00:00
Eden Chuang
3dc1794ccf
Bug 1725567 - P3 Implement FetchDriverOberser internface for FetchInstance. r=dom-worker-reviewers,jesup
...
This patch makes FetchInstance inherits FetchDriverObserver, such that FatchInstance can resolve the PreloadResponse promise once FetchDriver finishes fetching.
This patch only implements the necessary interface for navigation preload.
OnResponseEnd()
OnResponseAvailableInternal()
Other methods such as NeededOnDataAvailable(), OnDataAvailable is not implemented.
But these methods should be implemented with PFatch implementation.
Depends on D128223
Differential Revision: https://phabricator.services.mozilla.com/D129808
2022-01-04 14:42:34 +00:00
Norisz Fay
20994191cc
Backed out 9 changesets (bug 1744025) for causing wpt failures on CheckedUnsafePtr.h CLOSED TREE
...
Backed out changeset 89dca4fc5940 (bug 1744025)
Backed out changeset 7aa395dcdbe4 (bug 1744025)
Backed out changeset 1580a4ea1a85 (bug 1744025)
Backed out changeset af171636a87f (bug 1744025)
Backed out changeset a5edfa1c9cd6 (bug 1744025)
Backed out changeset 8abd6ba69815 (bug 1744025)
Backed out changeset cfb822df5b3f (bug 1744025)
Backed out changeset 5598943a94fd (bug 1744025)
Backed out changeset 43186fbbf8b4 (bug 1744025)
2021-12-15 18:46:01 +02:00
Eden Chuang
08515f6937
Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
...
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.
Depends on 132800
Depends on D132800
Differential Revision: https://phabricator.services.mozilla.com/D133483
2021-12-15 13:48:19 +00:00
Jens Stutte
3850e0d206
Bug 1744025: Remove only assertion-relevant mWorkerPrivate from FetchBody. r=dom-worker-reviewers,edenchuang
...
Depends on D132711
Differential Revision: https://phabricator.services.mozilla.com/D132795
2021-12-15 13:48:18 +00:00
Kagami Sascha Rosylight
2e54d55872
Bug 1737771 - Implement AbortSignal.reason r=mgaudet,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D132281
2021-12-13 21:08:55 +00:00
Sandor Molnar
f526e5603d
Backed out 8 changesets (bug 1744025) for causing bp-hybrid bustages in dom/clients/api/Clients.cpp. CLOSED TREE
...
Backed out changeset b6452430763d (bug 1744025)
Backed out changeset 46e9f06636da (bug 1744025)
Backed out changeset 913cdee4824f (bug 1744025)
Backed out changeset e1bc4e2066c7 (bug 1744025)
Backed out changeset e6b99af4b7ca (bug 1744025)
Backed out changeset e9b749f80ec2 (bug 1744025)
Backed out changeset 26d3176a00ef (bug 1744025)
Backed out changeset 2c8941fdcee5 (bug 1744025)
2021-12-08 01:30:06 +02:00
Jens Stutte
1ebda29991
Bug 1744025: Remove only assertion-relevant mWorkerPrivate from FetchBody. r=dom-worker-reviewers,edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D132795
2021-12-07 16:47:17 +00:00
Eden Chuang
d545418095
Bug 1577346 - P3 Make InternalResponse be SafeRefcounted. r=dom-worker-reviewers,ytausky
...
Depends on D126243
Differential Revision: https://phabricator.services.mozilla.com/D126244
2021-11-08 13:29:32 +00:00
Matthew Gaudet
616369e40b
Bug 1730589 - Initial Implementation of ReadableStreams using WebIDL and DOM technologies r=smaug
...
This patch begins re-implements ReadableStreams using WebIDL and DOM technology (vs the existing JS streams implementation). Some more background is [here](https://docs.google.com/document/d/1MWRkF32KV60ngOY-Ip4PnKbCMvl6VK_Y9QLED8MJJxg/edit# )
This is guarded under a configure flag `--enable-dom-streams`
1. ByteStreams and ReadableStream.tee will come in future patches.
2. I intentionally crash in other parts of the DOM that require streams (Fetch, Response, Blob), until the integration work is done in future patches.
My current plan for that integration doesn't involve re-creating the alternative 'external streams' API from SpiderMonkey's implementation, but I have yet to do enough development to verify that will work.
Differential Revision: https://phabricator.services.mozilla.com/D122643
2021-10-06 18:43:01 +00:00
Andreas Pehrson
fb37c7ba81
Bug 1729964 - Fix linker error. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D126918
2021-10-06 14:33:40 +00:00
Andi-Bogdan Postelnicu
926f898b02
Bug 1725145 - fixes for linking in the hybrid build env. r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D122344
2021-08-22 10:21:56 +00:00
Sebastian Hengst
69ef0237d3
Backed out 3 changesets (bug 1660555) on request from evilpie
...
Backed out changeset 973fbed4566f (bug 1660555)
Backed out changeset 4e42fc2c7ff3 (bug 1660555)
Backed out changeset 86e154074372 (bug 1660555)
2021-04-29 16:55:15 +02:00
Eden Chuang
29f276ffaa
Bug 1686154 - Fix the race condition on WorkerFetchResolver::mFetchObserver. r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D111525
2021-04-13 13:23:57 +00:00
Noemi Erli
b17f1c477a
Backed out changeset 6483ed81fc50 (bug 1686154) for causing build bustages in Fetch.cpp CLOSED TREE
2021-04-13 15:18:46 +03:00
Eden Chuang
8c084a70b2
Bug 1686154 - Fix the race condition on WorkerFetchResolver::mFetchObserver. r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D111525
2021-04-13 12:06:27 +00:00
Tim Huang
94ea9d385d
Bug 1695050 - Part 11: Update the call-sites of CookieJarSettings::Create() for Fetch and XHR. r=smaug
...
This patch updates all call-sites to pass the principal for Fetch and XHR.
Differential Revision: https://phabricator.services.mozilla.com/D109054
2021-03-29 11:01:54 +00:00
Tom Schuster
12abf21208
Bug 1660555 - Null mSignalProxy after calling Shutdown in WorkerFetchResolver. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D109605
2021-03-24 12:31:01 +00:00
Jeff Walden
9a280b6371
Bug 1660555 - |AbortSignalProxy| doesn't need to be |nsISupports|, just threadsafe-ly refcounted. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93893
2021-03-24 12:31:01 +00:00
Jeff Walden
86dd36a29b
Bug 1660555 - Make |WorkerSignalFollower| do the following. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93892
2021-03-24 12:31:00 +00:00
Dimi Lee
a4b2ea0e4a
Bug 1166995 - P1. Notify DOMDocFetchSuccess when a fetch or XHR request completes successfully r=smaug,sfoster
...
The goal of this series of patches is to address the cases where sites
don't use standard form submission events.
The basic idea is inferring a form is submitted when the form is removed
from the DOM tree, but with one premise:
There must be a successful fetch or XHR request sent in the document before the
form is removed.
This is because websites usually send the credentials with a fetch or an
XHR. After the request succeeds, the website removes the form.
In summary, this patch does the following:
1. Add NotifyFetchOrXHRSuccess API in Document. The API sends a
"DOMDocFetchSuccess" event to who registers the event listener.
2. When a fetch request or a XMLHttpReuqest completes and succeeds,
call NotifyFetchOrXHRSuccess().
3. LoginMangerChild listen to `DOMDocFetchSuccess` event only when there
is an user interaction on the password field.
Differential Revision: https://phabricator.services.mozilla.com/D106024
2021-03-16 09:15:19 +00:00
Noemi Erli
a28bf43fbb
Backed out 2 changesets (bug 1660555) for causing crashes in [@ mozilla::dom::AbortFollower::Unfollow] Bug 1692362 a=backout
...
Backed out changeset e5fc911da9c9 (bug 1660555)
Backed out changeset bbd35b96ab6f (bug 1660555)
2021-02-12 11:09:01 +02:00
Jeff Walden
ca4985f507
Bug 1660555 - |AbortSignalProxy| doesn't need to be |nsISupports|, just threadsafe-ly refcounted. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93893
2021-02-11 01:18:46 +00:00
Jeff Walden
de2ad50e68
Bug 1660555 - Make |WorkerSignalFollower| do the following. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93892
2021-02-11 01:18:46 +00:00
Tom Schuster
6da014df91
Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D101159
2021-01-12 10:38:25 +00:00
Simon Giesecke
814c6294ae
Bug 1679987 - Removed unused includes of nsCharSeparatedTokenizer.h. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D99877
2020-12-16 19:09:58 +00:00
Sylvestre Ledru
68b806d604
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila
a6e7dcc53f
Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE
2020-11-04 10:54:36 +02:00
Sylvestre Ledru
8f709b39e8
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
Jeff Walden
fa9f037727
Bug 1660555 - Make |WorkerSignalFollower| actually an |AbortFollower| (that for the moment does nothing when invoked). r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93891
2020-10-30 20:17:09 +00:00
Jeff Walden
e0f2b266d1
Bug 1660555 - Move the runnable into |WorkerSignalFollower|. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93890
2020-10-30 20:17:21 +00:00
Jeff Walden
ea6cbd5e30
Bug 1660555 - Add a mostly-empty |WorkerSignalFollower| class. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93885
2020-10-30 20:18:15 +00:00
Jeff Walden
fbc5b185b4
Bug 1660555 - Define two member functions in Fetch.cpp out-of-line. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93889
2020-10-29 08:03:27 +00:00
Jeff Walden
50c1a0ba0a
Bug 1660555 - Improve some comments and add a helper function for accessing the main-thread event target. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93887
2020-10-29 08:03:27 +00:00
Jeff Walden
2dd6a7e763
Bug 1660555 - Add correct-thread assertions to all |AbortSignalProxy| member functions. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D93886
2020-10-29 08:02:58 +00:00
Jeff Walden
17b7a1950e
Bug 1660555 - Move traverse/unlink operations on |AbortFollower| and |AbortSignalImpl| into static member functions. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92322
2020-10-29 08:02:58 +00:00
Jeff Walden
98eac548fb
Bug 1660555 - Make |AbortFollower| actually inherit from |nsISupports|. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92323
2020-10-29 08:02:05 +00:00