Moonchild
0603b037ef
Issue #2678 - Remove NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED
...
This no longer does anything at this point, except add indirection.
2025-01-18 16:15:51 +01:00
Moonchild
8e4ce9b800
Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy)
...
Resolves #2641
2024-10-21 12:37:01 +02:00
Brian Smith
830a634cec
Issue #2402 - Don't call WorkerPrivate::WorkerName() to get service worker scope.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1350433
2024-01-07 07:34:05 -06:00
Brian Smith
80207d6d3f
Issue #2402 - importScripts should be governed by script-src in Web Workers.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1322111
Add TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS content policy.
Update the Cache API schema to account for new nsIContentPolicy type.
2024-01-06 15:32:04 -06:00
Brian Smith
2b14856b57
Issue #2402 - Move code to fill InternalHeaders from an nsIChannel response into utility method.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-06 15:32:03 -06:00
Brian Smith
054f135a54
Issue #1442 - Part 26 - FetchStreamReader needs to cancel its reader when it encounters write errors.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1416879 Part 5
Also same fix as in Part 24 for FetchStream but in FetchStreamReader.
2023-10-03 01:45:08 -05:00
Brian Smith
5c8336d123
Issue #1442 - Part 25b - Second try that hopefully doesn't break Windows.
2023-10-02 18:38:02 -04:00
Brian Smith
0f0adfa1b4
Issue #1442 - Part 25 - Fix bustage on X11 platforms.
2023-10-02 18:08:46 -04:00
Brian Smith
ec38250eea
Issue #1442 - Part 24 - Prevent FetchStream from incorrectly running on the main thread.
...
This prevents a deadlock and JSContext related crashes, however this should eventually
be replaced by an EventTargetFor() call when the Dispatcher API is implemented.
Also now that ReadableStream appears stable, toggle the preferences true by default.
2023-10-02 04:42:24 -05:00
Brian Smith
b7a5d73ba9
Issue #1442 - Part 23 - Align FetchStream with Firefox 68ESR.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1612308
https://bugzilla.mozilla.org/show_bug.cgi?id=1445587
Partial part 2 implementing synchronization changes.
2023-09-30 11:19:06 -05:00
Brian Smith
bc4d5cec6a
Issue #1442 - Part 21 - Fix debug builds by removing an invalid assert.
2023-09-29 13:09:28 -05:00
Brian Smith
7d55641d43
Issue #1442 - Part 20 - FetchStream should not have an extra JS::Heap<ReadableStream>.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1390717
2023-09-29 09:25:52 -05:00
Brian Smith
3f799def4d
Issue #1442 - Part 19 - FetchStream must support multiple read requests.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1395220
2023-09-29 09:12:08 -05:00
Brian Smith
796863b719
Issue #1442 - Part 18 - Cycle collect FetchStreamReader.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 22:17:06 -05:00
Brian Smith
aced9bbc94
Issue #1442 - Part 17 - Creating FetchStream as a out param in order to avoid JS hazards
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 22:06:25 -05:00
Brian Smith
b1d111ab6b
Issue #1442 - Part 16 - Report stream errors during consumption.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 21:18:27 -05:00
Brian Smith
99c25d8e98
Issue #1442 - Part 15 - Setting the correct global when ReadableStream.getReader() is called.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 19:51:09 -05:00
Brian Smith
8a45238908
Issue #1442 - Part 14 - Starting body consuming and passing the JSContext down
...
from the binding entrypoints to where the ReadableStream could be read.
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 19:35:59 -05:00
Brian Smith
c9020fed9c
Issue #1442 - Part 13 - Implement FetchStreamReader.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
2023-09-28 17:36:52 -05:00
Brian Smith
1fd5023fdc
Issue #1442 - Part 12 - Label FetchBody.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1363318
FetchSignal is not in our tree so this is a partial patch to get mOwner changes.
Pre-requisite for Part 13.
2023-09-28 16:54:19 -05:00
Brian Smith
8a0c7bde63
Issue #1442 - Part 11 - Response.body handling.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Use BufferSource in webIDL.
https://bugzilla.mozilla.org/show_bug.cgi?id=1337722
2023-09-28 14:05:55 -05:00
Brian Smith
03ec9c095b
Issue #1442 - Part 10b - Use nsIXHRSendable instead Blob/FormData/URLSearchParams.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Pre-requisite for Part 11.
2023-09-27 23:22:06 -05:00
Brian Smith
24edfc1652
Issue #1442 - Part 10a - Unify body extraction in Fetch/Beacon/XHR.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Pre-requisite for Part 11.
2023-09-27 22:58:24 -05:00
Brian Smith
efd2b96387
Issue #1442 - Part 9: Stream shutdown handling.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-27 19:24:08 -05:00
Brian Smith
4a179ff885
Issue #1442 - Part 8: Fetch implementation of streams.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
+worker-friendly pref checking for the DOM API.
2023-09-27 19:20:08 -05:00
Brian Smith
8c5a0f0de9
Issue #1442 - Part 7: Use of ReadableStream in WebIDL files.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-27 19:08:24 -05:00
FranklinDM
80a323d747
Bug 1432272 - Make Fetch API use the global's base URL instead of the entry document's base URL
2023-04-28 20:52:48 +08:00
Moonchild
8778d48290
[Network, DOM] Align our implementation with the current CORS/Fetch spec.
2022-11-18 20:00:59 +00:00
Moonchild
84d3226fb1
Issue #2024 - Part 1: Add wildcard to Access-Control-Expose-Headers
...
For requests without credentials, add wildcard to Access-Control-Expose-Headers.
2022-11-06 12:31:17 +00:00
Moonchild
3d99e06afe
Issue #80 - Re-unify most of DOM
2022-09-08 06:49:09 +00:00
Moonchild
51117c2b62
Bug 1679987 - Remove unused includes of nsCharSeparatedTokenizer.h.
2022-05-17 19:42:24 +00:00
Moonchild
a95439db61
Issue #1822 - Part 3: Remove LOAD_CLASSIFIER_URI and various
...
helper functions.
2022-04-01 16:03:01 +02:00
Moonchild
33a402947c
[DOM Fetch] Detect broken pipes and propagate that write error to the caller.
2020-10-21 23:48:32 +00:00
Moonchild
3e59623312
[DOM Fetch] Improve stability of Fetch API.
2020-10-21 20:35:07 +00:00
Moonchild
d5a2c45aad
Issue #1656 - Part 6: Clean up the build files
2020-09-23 15:52:00 +00:00
Moonchild
7572f37186
Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.
...
The poor fellows got lost in an ASCII-interpretation of the world.
2020-09-23 14:52:16 +00:00
Moonchild
a680bdc637
Issue #1656 - Part 1: Nuke most vim config lines in the tree.
...
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-23 13:55:00 +00:00
Moonchild
62640d775a
Fix line endings.
2020-07-25 17:37:05 +00:00
Moonchild
f0ef003f36
Issue #1587 Part 12 (followup 2): Allow clearing of signal by setting to null.
2020-07-25 17:31:58 +00:00
Moonchild
84cb854842
Issue #1587 Part 11 (followup 1): Implement multithreaded signals for workers.
2020-07-24 11:09:54 +00:00
Moonchild
1c97314804
Issue #1587 - Part 9: Immediately reject an already-aborted signal
2020-06-12 01:46:48 +00:00
Moonchild
e97a29a656
Issue #1587 - Part 7: Rename FetchController to AbortController
...
Also renames FetchSignal to AbortSignal. Includes renaming the various
controlling prefs to enable.
2020-06-11 23:20:52 +00:00
Moonchild
1620ec1965
Issue #1587 - Part 6: Move FetchController/Signal to its own dir
...
Since it is specced separately from fetch.
2020-06-11 12:43:17 +00:00
Moonchild
fdc11c731c
Issue #1587 - Part 5: Hook FetchObserver up to the Fetch API
2020-06-11 08:51:07 +00:00
Moonchild
ec792e2ac7
Issue #1587 - Part 4: Implement FetchObserver
2020-06-11 08:22:04 +00:00
Moonchild
1ca6039fb8
Issue #1587 - Part 3: Hook FetchSignal up to the Fetch API
2020-06-10 21:51:44 +00:00
Moonchild
be82b33318
Issue #1587 - Part 2: Implement controller follow/unfollow
2020-06-10 21:33:47 +00:00
Moonchild
a8602cc877
Issue #1587 - Part 1: Implement FetchController/FetchSignal interface
2020-06-10 21:08:58 +00:00
Matt A. Tobin
62c0cea342
Put Request.cpp and Response.cpp back into UNIFIED in dom/fetch due to linux linker errors
...
Reference:
15:03.06 ../../build/unix/gold/ld: error: /home/mattatobin/development/.obj/trunk-master/navigator-x64-gtk3/toolkit/library/../../dom/fetch/Request.o: requires dynamic R_X86_64_PC32 reloc against '_ZN7mozilla3dom9FetchBodyINS0_7RequestEED2Ev' which may overflow at runtime; recompile with -fPIC
15:03.06 ../../build/unix/gold/ld: error: /home/mattatobin/development/.obj/trunk-master/navigator-x64-gtk3/toolkit/library/../../dom/fetch/Response.o: requires dynamic R_X86_64_PC32 reloc against '_ZN7mozilla3dom9FetchBodyINS0_8ResponseEED2Ev' which may overflow at runtime; recompile with -fPIC
15:03.06 ../../build/unix/gold/ld: error: read-only segment has dynamic relocations
15:03.07 /home/mattatobin/development/.obj/trunk-master/navigator-x64-gtk3/toolkit/library/../../dom/fetch/Request.o:Request.cpp:function mozilla::dom::Request::~Request(): error: undefined reference to 'mozilla::dom::FetchBody<mozilla::dom::Request>::~FetchBody()'
15:03.07 /home/mattatobin/development/.obj/trunk-master/navigator-x64-gtk3/toolkit/library/../../dom/fetch/Response.o:Response.cpp:function mozilla::dom::Response::~Response(): error: undefined reference to 'mozilla::dom::FetchBody<mozilla::dom::Response>::~FetchBody()'
2020-04-19 12:50:46 -04:00
wolfbeast
1169a05684
Issue #80 - De-unify dom/fetch
...
Running into the same problem as with dom/canvas: derived template
classes not being happy about being non-unified. Kept unified for now
to prevent linking errors.
2020-04-19 16:45:01 +02:00