Tooru Fujisawa
5bb4928c8f
Bug 2031200 - Part 8: Remove ScriptHashKey constructor with LoadedScript. r=bthrall
...
The subsequent patches will remove the fields from LoadedScript, and then
use the ScriptLoadRequest::mFetchInfo instead.
The LoadedScript variant of ScriptHashKey is no longer necessary.
Differential Revision: https://phabricator.services.mozilla.com/D294340
2026-04-21 15:58:03 +00:00
Tooru Fujisawa
0011dfbdcc
Bug 2031200 - Part 7: Use ScriptFetchInfo for the script private and module private instead of LoadedScript. r=bthrall,allstarschh,dom-worker-reviewers,asuth
...
Replace the all places that stores and uses the script/module private to use
ScriptFetchInfo instead of LoadedScript/ModuleScript, so that the
LoadedScript/ModuleScript can be released earlier.
Differential Revision: https://phabricator.services.mozilla.com/D294339
2026-04-21 15:57:59 +00:00
Tooru Fujisawa
0e8a2f1032
Bug 2031200 - Part 6: Do not pass private value to JS::UpdateDebugMetadata. r=bthrall
...
There are two places that try to put the script private:
* JS::UpdateDebugMetadata, performed conditionally
* LoadedScript::AssociateWithScript, performed unconditionally,
except for conditionally on the script private itself
The former is unnecessary, so that the latter covers all cases.
Differential Revision: https://phabricator.services.mozilla.com/D294338
2026-04-21 15:57:56 +00:00
Tooru Fujisawa
813e954edf
Bug 2024970 - Enable stencil navigation code on all branches, behind the pref. r=nbp,extension-reviewers,devtools-reviewers,whimboo,robwu,nchevobbe
...
Differential Revision: https://phabricator.services.mozilla.com/D291096
2026-04-01 08:03:58 +00:00
Atila Butkovits
ff6ad8cf18
Revert "Bug 2027803 - Enable stencil navigation cache on nightly. r=nbp" for causing high frequency failures at browser_dbg-event-breakpoints.js.
...
This reverts commit 6990290e13 .
Revert "Bug 2024970 - Enable stencil navigation code on all branches, behind the pref. r=nbp,extension-reviewers,devtools-reviewers,whimboo,robwu,nchevobbe"
This reverts commit d2dd54d562 .
2026-03-31 16:15:18 +00:00
Tooru Fujisawa
d2dd54d562
Bug 2024970 - Enable stencil navigation code on all branches, behind the pref. r=nbp,extension-reviewers,devtools-reviewers,whimboo,robwu,nchevobbe
...
Differential Revision: https://phabricator.services.mozilla.com/D291096
2026-03-31 11:47:13 +00:00
Eemeli Aro
674f183bab
Bug 2022830 - Handle text module type in DOM loaders. r=dminor,dom-worker-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D287349
2026-03-26 19:42:52 +00:00
Emilio Cobos Álvarez
5016086e1a
Bug 2025089 - Remove some includes from nsINode.h and Element.h. r=dom-core,dom-storage-reviewers,firefox-svg-reviewers,janv,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D289049
2026-03-22 23:45:55 +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
Tooru Fujisawa
d70f1f6c0e
Bug 2019337 - Part 4: Collect ref count telemetry for cached LoadedScript. r=nbp,denispal
...
Differential Revision: https://phabricator.services.mozilla.com/D285183
2026-03-06 08:28:57 +00:00
Tooru Fujisawa
3133642cd0
Bug 2019337 - Part 3: Collect per-process SharedScriptCache usage telemetry. r=nbp,denispal
...
Differential Revision: https://phabricator.services.mozilla.com/D285647
2026-03-06 08:28:54 +00:00
Tooru Fujisawa
ba079e276d
Bug 2019337 - Part 2: Collect per-document SharedScriptCache usage telemetry. r=nbp,denispal
...
Differential Revision: https://phabricator.services.mozilla.com/D285028
2026-03-06 08:28:51 +00:00
Tooru Fujisawa
37c32e86de
Bug 2019337 - Part 1: Use default member initializers in ScriptLoader. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D285027
2026-03-06 08:28:48 +00:00
Tooru Fujisawa
39a8e3b5bd
Bug 2020958 - Use the correct fetch option when nonce is different than the cached one. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D286010
2026-03-05 08:21:06 +00:00
serge-sans-paille
b093ca6e20
Bug 2020581 - Replace copy assignment by move assignment in dom/ r=media-playback-reviewers,webrtc-reviewers,dom-worker-reviewers,dom-core,asuth,padenot,smaug,bwc
...
Commit automatically generated through clang-tidy's
performance-use-std-move new pass.
- Maybe type has a dedicated move operator
- And TimingParams also have a dedicated move operator because of Maybe
members
- OwningAnimationTarget benefits from being moved
- nsCOMPtr benefits from being moved
- std::vector benefits from being moved
- std::string benefits from being moved
- SMILTimeValueSpecParams benefits from being moved
Differential Revision: https://phabricator.services.mozilla.com/D285674
2026-03-05 00:58:38 +00:00
Daniel Minor
f0d6eb0c61
Bug 2016369 - Improve CSS module script error message; r=dom-core,edgar
...
The current error message is bad, we should at least mention that it
was the CSS module compilation that failed.
I've also added some basic logging for when the module mime type check
fails, even though I'm familiar with the code, it took me more time
than it should have to realize this was what was causing the css module
in the extension to fail loading.
Differential Revision: https://phabricator.services.mozilla.com/D284112
2026-03-04 16:56:04 +00:00
Andreea Silaghi
df905fef77
Revert "Bug 2020587 - Replace copy assignment by move assignment in xpcom/ r=xpcom-reviewers,jstutte" for causing failures at TestFileSystemHelpers This reverts commit d3c7b9c4d1.
...
This reverts commit 38c02da27e .
2026-03-04 08:20:03 +00:00
serge-sans-paille
38c02da27e
Bug 2020581 - Replace copy assignment by move assignment in dom/ r=media-playback-reviewers,webrtc-reviewers,dom-worker-reviewers,dom-core,asuth,padenot,smaug,bwc
...
Commit automatically generated through clang-tidy's
performance-use-std-move new pass.
- Maybe type has a dedicated move operator
- And TimingParams also have a dedicated move operator because of Maybe
members
- OwningAnimationTarget benefits from being moved
- nsCOMPtr benefits from being moved
- std::vector benefits from being moved
- std::string benefits from being moved
- SMILTimeValueSpecParams benefits from being moved
Differential Revision: https://phabricator.services.mozilla.com/D285674
2026-03-04 07:00:30 +00:00
Tom Schuster
5da523c2c7
Bug 2017102 - Integrate WAICT with script loading. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D283675
2026-03-04 01:09:06 +00:00
Serban Stanca
d2b0e0df0e
Revert "Bug 2017102 - Integrate WAICT with script loading. r=arai" for causing build bustages in SiteIntegrityService.h.
...
This reverts commit e64e92aee9 .
This reverts commit 11aa1b2a8e .
This reverts commit ba19d2f5eb .
This reverts commit 3f66d522f4 .
2026-03-03 21:56:30 +00:00
Tom Schuster
e64e92aee9
Bug 2017102 - Integrate WAICT with script loading. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D283675
2026-03-03 20:12:23 +00:00
Yoshi Cheng-Hao Huang
2ed834694e
Bug 1916277 - Part 13: Reset preloaded module graphs before registering an import map. r=jonco
...
When registering an import map, we must remove any preloaded scripts
because their resolved URLs may no longer be valid under the new import
map.
Differential Revision: https://phabricator.services.mozilla.com/D272783
2026-03-03 00:52:56 +00:00
Yoshi Cheng-Hao Huang
f10f564f7b
Bug 1916277 - Part 11: Add preloaded specifiers into global's resolved set. r=jonco
...
When the preloaded request is reused during parsing, merge the preloaded
resolved module set into the global resolved module set to ensure consistency.
Differential Revision: https://phabricator.services.mozilla.com/D275178
2026-03-03 00:52:52 +00:00
Yoshi Cheng-Hao Huang
ada725c0a3
Bug 1916277 - Part 5: Update RegisterImportMap. r=jonco
...
Add a request parameter to construct the ReportWarningHelper.
Differential Revision: https://phabricator.services.mozilla.com/D272780
2026-03-03 00:52:38 +00:00
Yoshi Cheng-Hao Huang
27a8d5f100
Bug 1916277 - Part 2: Check the pref before DisallowImportMaps. r=jonco
...
Calling DisallowImportMaps() conditionally if the pref is off.
Differential Revision: https://phabricator.services.mozilla.com/D278655
2026-03-03 00:52:32 +00:00
Tooru Fujisawa
373ae124bc
Bug 2019876 - Use different log text for NoCacheEntryFound branches in TryUseCache. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D285203
2026-03-02 12:25:02 +00:00
Tooru Fujisawa
6da85a9107
Bug 2017100 - Part 5. Pass the ScriptHashKey to http-on-resource-cache-response notification. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D283563
2026-02-24 10:06:56 +00:00
Tooru Fujisawa
e30403aad7
Bug 2017100 - Part 4: Remove obsolete comment. r=nbp
...
Given that the source retrievability differs between JS and CSS, we cannot
merge the logic between them.
Differential Revision: https://phabricator.services.mozilla.com/D283562
2026-02-24 10:06:53 +00:00
Tooru Fujisawa
2246ae01b4
Bug 2017100 - Part 3: Populate channel and loadInfo fields for http-on-resource-cache-response notification. r=nbp
...
Especially the nonce and the hint charset are used by the later patch.
Differential Revision: https://phabricator.services.mozilla.com/D283561
2026-02-24 10:06:50 +00:00
Tooru Fujisawa
30563b34bb
Bug 2017100 - Part 2: Prepare http-on-resource-cache-response parameters only when observer exists. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D283560
2026-02-24 10:06:47 +00:00
Tooru Fujisawa
212aac6e6c
Bug 2017052 - Part 2: Put SRIMetadata into LoadedScript. r=nbp
...
This makes the SRIMetadata for the first request a part of LoadedScript,
with defaulting to a nullptr for empty SRIMetadata.
The next patch will remove SRIMetadata from ScriptCacheKey, which allows
reducing the size of the cache when SRIMetadata is not given.
Differential Revision: https://phabricator.services.mozilla.com/D283541
2026-02-24 02:24:24 +00:00
Valentin Gosu
f63efb7efe
Bug 2009204 - Deregister scriptLoader preload when it fails r=dom-core,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D284222
2026-02-20 21:12:13 +00:00
Lando
bb7d3d6ce9
Bug 2014919: apply code formatting via Lando
...
# ignore-this-changeset
2026-02-20 17:06:09 +00:00
Matthew Gaudet
b24b7d3bb4
Bug 2014919 - Remove ShadowRealm integration code r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D283058
2026-02-20 17:05:47 +00:00
agoloman
71879caf1d
Revert "Bug 2014919: apply code formatting via Lando" for causing marionette failures @test_evalscript.html.
...
This reverts commit df3fdef2fe .
Revert "Bug 2014919 - Remove ShadowRealm integration code r=arai"
This reverts commit 38d1521df4 .
Revert "Bug 2014919 - Remove testing for ShadowRealms r=dminor"
This reverts commit 4715ebd9c2 .
Revert "Bug 2014919 - Remove JS support for Shadowrealms r=dminor"
This reverts commit 1d01568223 .
Revert "Bug 2014919 - Remove DOM ShadowRealms support r=edgar,smaug,webidl,dom-worker-reviewers"
This reverts commit 54dde4590a .
2026-02-19 22:58:33 +00:00
Lando
df3fdef2fe
Bug 2014919: apply code formatting via Lando
...
# ignore-this-changeset
2026-02-19 21:29:26 +00:00
Matthew Gaudet
38d1521df4
Bug 2014919 - Remove ShadowRealm integration code r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D283058
2026-02-19 21:29:05 +00:00
Tooru Fujisawa
59748be59b
Bug 2015374 - Part 2: Handle ScriptLoader::mDiskCacheableDependencyModules in cycle collection. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D282409
2026-02-12 04:32:38 +00:00
Tooru Fujisawa
4da303ffff
Bug 2015374 - Part 1: Reorder ScriptLoader cycle collection logic to match the field order. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D282408
2026-02-12 04:32:35 +00:00
Tooru Fujisawa
e67d277ab2
Bug 2014418 - Part 2: Clear SharedScriptCache and SharedStyleSheetCache on memory pressure. r=nbp,emilio,firefox-style-system-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D281957
2026-02-12 04:31:56 +00:00
Daniel Minor
6d26170c97
Bug 2007672 - Support eWasmBytes in script loader; r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D278170
2026-01-29 22:14:18 +00:00
Serban Stanca
1963fb1616
Revert "Bug 2007672 - Compile wasm modules as bytes; r=allstarschh,dom-worker-reviewers,edenchuang" for causing non-unified build bustages in ScriptLoadHandler.cpp.
...
This reverts commit d538496d6f .
This reverts commit fd4fd6566a .
This reverts commit 96e631a782 .
This reverts commit 01b786e3f5 .
2026-01-29 02:38:21 +00:00
Daniel Minor
fd4fd6566a
Bug 2007672 - Support eWasmBytes in script loader; r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D278170
2026-01-28 23:26:54 +00:00
Tom Schuster
9131e1c430
Bug 2012158 - Simplify the ScriptLoader by passing around an nsIChannel instead of nsIIncrementalStreamLoader. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D280284
2026-01-26 09:43:27 +00:00
Tooru Fujisawa
f57a9dc0e5
Bug 2011125 - Check the max disk cache size before sending the script cache to necko. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D279514
2026-01-20 18:26:31 +00:00
Tooru Fujisawa
09a4be89e2
Bug 2010255 - Update the expected disk cache size for scripts. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D279513
2026-01-20 18:26:28 +00:00
Tooru Fujisawa
fede51ae88
Bug 2007053 - Part 2: Yield to other tasks before processing long async scripts/modules before FCP. r=nbp
...
Apply the same logic as the defer scripts, to the async script processing.
Differential Revision: https://phabricator.services.mozilla.com/D278088
2026-01-15 07:34:40 +00:00
Tooru Fujisawa
1c3679c2d6
Bug 2007053 - Part 1: Yield to other tasks before processing long defer modules before FCP. r=nbp
...
Reuse the existing logic for classic script, with moving the code to
calculate the time to the shared code.
Differential Revision: https://phabricator.services.mozilla.com/D278087
2026-01-15 07:34:37 +00:00
Tooru Fujisawa
b59addd1d1
Bug 2009355 - Add comment about the asynchronous error handling of OpenAlternativeOutputStream. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D278479
2026-01-14 12:11:37 +00:00
Tooru Fujisawa
19cb218c7f
Bug 2009353 - Do not try to cache too large script which does not fit the necko cache. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D278478
2026-01-14 12:11:35 +00:00