Commit Graph
147 Commits
Author SHA1 Message Date
Norisz Fay 271fa84237 Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing wpt failures @ response-cancel-stream.any.html
This reverts commit c5c27e3b19.
2026-06-09 11:12:27 +00:00
Eden Chuang c5c27e3b19 Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-06-09 09:24:36 +00:00
Silaghi b9f314650e Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing wpt failures at fetch resource.
This reverts commit f72009dfed.
2026-06-03 12:11:37 +00:00
Eden Chuang f72009dfed Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-06-03 11:28:33 +00:00
pstanciu 5527bf5992 Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing wpt failures @ response-cancel-stream.any.html
This reverts commit a3f0447ebf.
2026-06-02 18:06:13 +00:00
Eden Chuang a3f0447ebf Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-06-02 10:57:07 +00:00
Silaghi c4bae850e7 Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing wpt failures at fetch/api/crashtests
This reverts commit 44234dd7c4.
2026-05-28 15:16:59 +00:00
Eden Chuang 44234dd7c4 Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-05-28 11:22:39 +00:00
Eden Chuang bf0fb2fe06 Bug 2039221 - Remove InternalRequest::SnapshotUnfilteredHeaders(). r=asuth,dom-worker-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D300343
2026-05-15 08:55:33 +00:00
Eden Chuang 336e0aa704 Bug 2024439 - Serialize InternalResponse to IPCInternalResponse in FetchEventOp::ResolvedCallback. r=asuth,dom-worker-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D294079
2026-04-25 10:56:13 +00:00
Nika Layzell 8970f43dd4 Bug 2005247 - Part 1: Get the BlobImpl from the BlobURLChannel, r=asuth,media-playback-reviewers,padenot
This requires some changes to the various places which currently directly read
the BlobImpl from the BlobURLChannel.

This requires a change to how MediaResource handles Blob URL loads, as the
existing code was avoiding creating a BlobURLChannel entirely when loading a
Blob URL. This could be improved in the future in a similar manner to how
HTTP(s) URLs are handled for ChannelMediaResource, but that was left as
out-of-scope for this bug.

Differential Revision: https://phabricator.services.mozilla.com/D276059
2026-04-24 19:42:21 +00:00
agoloman 2c4ccb3049 Revert "Bug 2005247, Bug 2005002 - Part 4: Stop sending BlobImpl data to content processes, r=asuth" for causing mda failures @process_watcher_posix_sigchld.cc.
This reverts commit 47367770c3.

Revert "Bug 2005247 - Part 3: Always read BlobURL info over IPC, r=asuth"

This reverts commit df37ac38f8.

Revert "Bug 2005247 - Part 2: Validate BlobURL ContentLength header during channel fetch, r=asuth,necko-reviewers,valentin"

This reverts commit 45e63e6920.

Revert "Bug 2005247 - Part 1: Get the BlobImpl from the BlobURLChannel, r=asuth,media-playback-reviewers,padenot"

This reverts commit 440a33211b.

Revert "Bug 2005002 - Part 5: sec-fetch-storage-access not implemented for workers, r=manuel"

This reverts commit 5654faf8a0.

Revert "Bug 2005002 - Part 4: Fix devtools tests for blob: URL dedicated worker changes, r=devtools-reviewers,ochameau"

This reverts commit 9c9c197990.

Revert "Bug 2005002 - Part 3: Extension content scripts for Blob URLs no longer match with full paths, r=extension-reviewers,robwu"

This reverts commit 55f399175f.

Revert "Bug 2005002 - Part 2: Infer Blob URL principal from URL when possible, r=asuth,extension-reviewers,necko-reviewers,home-newtab-reviewers,robwu,mconley,kershaw,bvandersloot"

This reverts commit d3022ec470.

Revert "Bug 2005002 - Part 1: Support do_QueryObject for nsSimpleURI and subclasses, r=necko-reviewers,valentin,asuth"

This reverts commit 3d1199b4d4.
2026-04-21 02:07:55 +00:00
Nika Layzell 440a33211b Bug 2005247 - Part 1: Get the BlobImpl from the BlobURLChannel, r=asuth,media-playback-reviewers,padenot
This requires some changes to the various places which currently directly read
the BlobImpl from the BlobURLChannel.

This requires a change to how MediaResource handles Blob URL loads, as the
existing code was avoiding creating a BlobURLChannel entirely when loading a
Blob URL. This could be improved in the future in a similar manner to how
HTTP(s) URLs are handled for ChannelMediaResource, but that was left as
out-of-scope for this bug.

Differential Revision: https://phabricator.services.mozilla.com/D276059
2026-04-20 19:55:44 +00:00
Nika Layzell e7bf4a196f Bug 2005006 - Store parsed URIs in InternalRequest/InternalResponse, r=dom-core,dom-worker-reviewers,necko-reviewers,smaug,kershaw,edenchuang
This patch updates InternalRequest and InternalResponse such that it parses the
URL passed to it at creation time, rather than when the channel is created.
This should improve the behaviour of these types around Blob URLs, so that
extra state, such as the "revoked" flag, is calculated at the correct time
as-per spec.

While making this change, I noticed that a previous Cache DB migration could
insert an "" URL in the DB when migrating from a single response URL to a URL
list, rather than storing an empty URL list. The choice was made to do
filtering when reading, rather than performing a migration, to avoid migration
first-time start-up overhead.

Differential Revision: https://phabricator.services.mozilla.com/D276047
2026-04-10 19:23:59 +00:00
Randell Jesup a3ebd272fe Bug 2025379: Take a snapshot of headers r=necko-reviewers,dom-worker-reviewers,valentin,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D289257
2026-04-07 12:34:43 +00:00
Sylvestre Ledru 9eb1a31a98 Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Atila Butkovits 0788652569 Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing failures at huge-fetch.any.serviceworker.html.
This reverts commit 48b1ed7a2c.
2026-03-16 17:13:39 +00:00
Eden Chuang 48b1ed7a2c Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-03-16 10:54:45 +00:00
rperta 7e833aa933 Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing fetch related failures
This reverts commit 78b3b826ac.
2026-03-11 12:49:59 +00:00
Eden Chuang 78b3b826ac Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-03-11 09:01:36 +00:00
iulian moraru e177b4eebe Revert "Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz." for causing wpt crashes.
This reverts commit df2ddc9eaa.
2026-02-18 20:36:25 +00:00
Eden Chuang df2ddc9eaa Bug 2005113 - Creating FetchBodyBase::mReadableStream with a cloned body. r=saschanaz.
Differential Revision: https://phabricator.services.mozilla.com/D280568
2026-02-18 14:46:31 +00:00
Emilio Cobos Álvarez 791917d8af Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
Nika Layzell 2a3bd2d81e Bug 1901851 - Part 2: Remove unnecessary BackgroundParent arguments from response serializations, r=dom-worker-reviewers,asuth
These arguments were already unused, and are no longer necessary since previous
changes to input stream serialization.

Differential Revision: https://phabricator.services.mozilla.com/D213332
2024-06-24 23:19:26 +00:00
Aron Cseh b01be1057e Backed out 9 changesets (bug 1901851, bug 1728331) for causing remote worker crashes. a=backout
Backed out changeset 30bbda0eb197 (bug 1728331)
Backed out changeset dabd7d6836c8 (bug 1728331)
Backed out changeset 9e04f49c926e (bug 1728331)
Backed out changeset 779ac735736c (bug 1728331)
Backed out changeset 1d413fe340a0 (bug 1728331)
Backed out changeset 15608efcbeb6 (bug 1901851)
Backed out changeset f711bbec11b2 (bug 1901851)
Backed out changeset 8bb1d267d08f (bug 1901851)
Backed out changeset b29282956a04 (bug 1901851)
2024-06-22 00:52:24 +03:00
Nika Layzell 0097b7ffcb Bug 1901851 - Part 2: Remove unnecessary BackgroundParent arguments from response serializations, r=dom-worker-reviewers,asuth
These arguments were already unused, and are no longer necessary since previous
changes to input stream serialization.

Differential Revision: https://phabricator.services.mozilla.com/D213332
2024-06-20 19:24:49 +00:00
Cristian Tuns cd4bca3a0a Backed out 8 changesets (bug 1901851, bug 1728331) for causing bc failures in browser_docshell_type_editor.js CLOSED TREE
Backed out changeset 2cf5cad90099 (bug 1728331)
Backed out changeset d920c2d72d00 (bug 1728331)
Backed out changeset 9e5bd0186aa6 (bug 1728331)
Backed out changeset 45735575df21 (bug 1728331)
Backed out changeset fbafea1663e3 (bug 1901851)
Backed out changeset 30bdf88d3bb7 (bug 1901851)
Backed out changeset 1d994915bd71 (bug 1901851)
Backed out changeset 0b3249432b9c (bug 1901851)
2024-06-19 20:51:53 -04:00
Nika Layzell 3d917065cd Bug 1901851 - Part 2: Remove unnecessary BackgroundParent arguments from response serializations, r=dom-worker-reviewers,asuth
These arguments were already unused, and are no longer necessary since previous
changes to input stream serialization.

Differential Revision: https://phabricator.services.mozilla.com/D213332
2024-06-19 20:14:47 +00:00
Peter Van der Beken 0fd890a605 Bug 1690111 - Improve nsIRandomGenerator APIs. r=mccr8,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D185067
2023-09-20 09:41:58 +00:00
Cosmin Sabou c3effd7450 Backed out 13 changesets (bug 1690111) for causing fetch related crashes.
Backed out changeset 5f2c25d194ad (bug 1690111)
Backed out changeset 76c408bcd053 (bug 1690111)
Backed out changeset 6d0649fdafff (bug 1690111)
Backed out changeset c1330b5e8c43 (bug 1690111)
Backed out changeset 5fa36d8fd2a5 (bug 1690111)
Backed out changeset daf7d747853a (bug 1690111)
Backed out changeset f70e09a7f5c6 (bug 1690111)
Backed out changeset 40c6d6eed7f8 (bug 1690111)
Backed out changeset 692f2a759573 (bug 1690111)
Backed out changeset 7140866dd9f6 (bug 1690111)
Backed out changeset 2865fe682139 (bug 1690111)
Backed out changeset 9dcd2416f8a5 (bug 1690111)
Backed out changeset 9c411bf84079 (bug 1690111)
2023-09-11 17:55:24 +03:00
Peter Van der Beken 00c102bdb2 Bug 1690111 - Improve nsIRandomGenerator APIs. r=mccr8,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D185067
2023-09-11 12:52:18 +00:00
Eden Chuang 7398b1510f Bug 1833795 - Handle the case that InternalResponse.body/alternativeBody serialization fail. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D178788
2023-05-31 23:14:11 +00:00
Eden Chuang 6f4cd78191 Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
Depends on D142436

Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-20 09:09:17 +00:00
Eden Chuang 63943fa116 Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
Depends on D138813

Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-20 09:09:17 +00:00
Noemi Erli 64b4ccc119 Backed out 5 changesets (bug 1351231) for causing multiple wpt failures CLOSED TREE
Backed out changeset 257553919696 (bug 1351231)
Backed out changeset 4fd92351d64b (bug 1351231)
Backed out changeset 7a4e3f5f674a (bug 1351231)
Backed out changeset 9da00c1364a5 (bug 1351231)
Backed out changeset 19b78046ffef (bug 1351231)
2023-01-18 18:16:01 +02:00
Eden Chuang 5d56464868 Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
Depends on D142436

Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-18 00:50:20 +00:00
Eden Chuang c2efe11797 Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
Depends on D138813

Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-18 00:50:19 +00:00
Marian-Vasile Laza 36626c8b7e Backed out 5 changesets (bug 1351231) for causing multiple wpt failures. CLOSED TREE
Backed out changeset a41252141399 (bug 1351231)
Backed out changeset 6cbb442f4772 (bug 1351231)
Backed out changeset dbdca4661a35 (bug 1351231)
Backed out changeset ea27cd66fefd (bug 1351231)
Backed out changeset 8c21c9468949 (bug 1351231)
2023-01-17 19:53:09 +02:00
Eden Chuang 32eac38347 Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
Depends on D142436

Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-17 15:13:46 +00:00
Eden Chuang cd876611a6 Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
Depends on D138813

Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-17 15:13:45 +00:00
Butkovits Atila 24e4985a7a Backed out 5 changesets (bug 1351231) for causing fetch related failures. CLOSED TREE
Backed out changeset da5c4a821428 (bug 1351231)
Backed out changeset 66b279e5a513 (bug 1351231)
Backed out changeset 3eb8fdd0ba6d (bug 1351231)
Backed out changeset a1fcf22a2a0e (bug 1351231)
Backed out changeset fd2a843599d1 (bug 1351231)
2023-01-12 20:20:14 +02:00
Eden Chuang 2bafa9b267 Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
Depends on D142436

Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-12 17:24:28 +00:00
Eden Chuang 51fa5725c5 Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
Depends on D138813

Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-12 17:24:28 +00:00
Stanca Serban 937d8d1fd4 Backed out 5 changesets (bug 1351231) for Fetch related failures. CLOSED TREE
Backed out changeset cc26eeeaf3dd (bug 1351231)
Backed out changeset c0cb3c17f246 (bug 1351231)
Backed out changeset 84162d09eef8 (bug 1351231)
Backed out changeset 5c3b5a384f2f (bug 1351231)
Backed out changeset d8fa8a006948 (bug 1351231)
2023-01-12 18:56:25 +02:00
Eden Chuang b62bded106 Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
Depends on D142436

Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-12 15:09:45 +00:00
Eden Chuang 739cd1b8e3 Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
Depends on D138813

Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-12 15:09:45 +00:00
Dana Keeler 6c116bbd08 Bug 1789494 - use the concrete type nsITransportSecurityInfo instead of IPCChannelInfo r=mccr8
See bug 1787319. Before this change, IPCChannelInfo consisted solely of
`nsCString securityInfo`. Now, instead of using IPCChannelInfo,
nsITransportSecurityInfo is used directly.

Differential Revision: https://phabricator.services.mozilla.com/D156607
2022-09-09 22:14:18 +00:00
Sean Feng b63d0b992d Bug 1731778 - Implement COEP: credentialless for cache storage r=edenchuang
Spec: https://fetch.spec.whatwg.org/#ref-for-cross-origin-resource-policy-internal-check

This purpose of this patch is just to implement the spec.

One noticeable thing I did in the patch is I made `CacheResponse` to
include the `credentials mode` of the initial request. Consider the
below scenario:

  1. Create a fetch request with a URL and a specific credential_mode, and put it into cache
  2. Call cache.match by using a URL, but without credential_mode
  3. cache.match() result should be filtered according to the initial request's credential_mode

When applying the `response’s request-includes-credentials is true`
check, the initial request's `credential_mode` is needed because
`request-includes-credentials` is judged by the `credential_mode`.

The rest of the changes are just normal spec alignments.

Differential Revision: https://phabricator.services.mozilla.com/D147803
2022-06-27 17:07:15 +00:00
Iulian Moraru 044b3acd91 Backed out 3 changesets (bug 1731778) for causing COEP related failures on embedding.tentative.https.window.html.
Backed out changeset c30f5751d54c (bug 1731778)
Backed out changeset 0eec19308453 (bug 1731778)
Backed out changeset 7c14fa8a4804 (bug 1731778)
2022-06-22 22:00:17 +03:00
Sean Feng 4a4cbd8e23 Bug 1731778 - Implement COEP: credentialless for cache storage r=edenchuang
Spec: https://fetch.spec.whatwg.org/#ref-for-cross-origin-resource-policy-internal-check

This purpose of this patch is just to implement the spec.

One noticeable thing I did in the patch is I made `CacheResponse` to
include the `credentials mode` of the initial request. Consider the
below scenario:

  1. Create a fetch request with a URL and a specific credential_mode, and put it into cache
  2. Call cache.match by using a URL, but without credential_mode
  3. cache.match() result should be filtered according to the initial request's credential_mode

When applying the `response’s request-includes-credentials is true`
check, the initial request's `credential_mode` is needed because
`request-includes-credentials` is judged by the `credential_mode`.

The rest of the changes are just normal spec alignments.

Differential Revision: https://phabricator.services.mozilla.com/D147803
2022-06-22 13:13:39 +00:00