Commit Graph
11 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez 8141eeb3e0 Bug 2023628 - Remove FakeString. r=smaug,dom-worker-reviewers,asuth,webidl
The reasoning for having it was faster / inline constructor / destructor
behavior, but bug 2025271 inlines the string destructor, so there isn't
a need for this anymore, and perf profiles agree.

There were some unsound checks like not checking for adopted strings
etc.

There's a subtle loss of functionality in which we can't depend on
another string so easily. However this only affects
non-StringBuffer-backed strings, and it was misused (some of the callers
used it with a temporary string which is clearly wrong). Also most
callers can be trivially tweaked to avoid the copy anyways.

Differential Revision: https://phabricator.services.mozilla.com/D288003
2026-04-13 16:51:46 +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
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
Harveer Singh d85b09dc8f Bug 1967540: BoundStorageKeyCacheStorage and BoundStorageKeyCache to use new CacheOpChild ctor taking in MozProme.r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D258302
2025-08-25 15:48:10 +00:00
Cristina Horotan 0feab2799f Revert "Bug 1967540: apply code formatting via Lando" for causing build bustage on CacheOpChild.cpp
This reverts commit 6a6fa9d976.

Revert "Bug 1967540: Merged duplicated code in WorkerScriptLoader::DispatchLoadScript and DispatchLoadScripts.r=edenchuang"

This reverts commit 881e3fe972.

Revert "Bug 1967540: BoundStorageKeyCacheStorage and BoundStorageKeyCache to use new CacheOpChild ctor taking in MozProme.r=edenchuang"

This reverts commit 11a691b1a4.

Revert "Bug 1967540: Extended CacheOpChild to include the support for MozPromise alongside JS::Promise.r=edenchuang"

This reverts commit 5f9e7f4655.
2025-08-22 08:01:43 +00:00
Harveer Singh 11a691b1a4 Bug 1967540: BoundStorageKeyCacheStorage and BoundStorageKeyCache to use new CacheOpChild ctor taking in MozProme.r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D258302
2025-08-22 03:31:48 +00:00
Atila Butkovits ec3f29696a Revert "Bug 1967540: apply code formatting via Lando" for causing bustages at CacheOpChild.cpp.
This reverts commit acd4e26b86.

Revert "Bug 1967540: Merged duplicated code in WorkerScriptLoader::DispatchLoadScript and DispatchLoadScripts.r=edenchuang"

This reverts commit ceddca9ac6.

Revert "Bug 1967540: BoundStorageKeyCacheStorage and BoundStorageKeyCache to use new CacheOpChild ctor taking in MozProme.r=edenchuang"

This reverts commit 7803a0b264.

Revert "Bug 1967540: Extended CacheOpChild to include the support for MozPromise alongside JS::Promise.r=edenchuang"

This reverts commit 3a40e09e99.
2025-08-20 18:47:16 +00:00
Harveer Singh 7803a0b264 Bug 1967540: BoundStorageKeyCacheStorage and BoundStorageKeyCache to use new CacheOpChild ctor taking in MozProme.r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D258302
2025-08-20 18:05:36 +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
Lando ee3153d0a9 Bug 1967540, 1969120, 1976000: apply code formatting via Lando
# ignore-this-changeset
2025-07-21 14:39:24 +00:00
Harveer Singh 3274fc4627 Bug 1976000: Created new BoundStorageKeyCache and BoundStorageKeyCacheStorage classes to access Cache APIs between child and parent.r=edenchuang.
Differential Revision: https://phabricator.services.mozilla.com/D256331
2025-07-21 14:39:05 +00:00