Bug 1803810 - Part 1: Rename ComponentModuleLoader to SyncModuleLoader. r=jonco

The behavior is longer tightly associated with "component".

Differential Revision: https://phabricator.services.mozilla.com/D199453
This commit is contained in:
Tooru Fujisawa
2024-02-14 02:01:36 +00:00
parent f81b418d9a
commit ae9c578ace
9 changed files with 66 additions and 71 deletions

View File

@@ -130,10 +130,9 @@ mozilla::dom::ScriptLoadContext* ScriptLoadRequest::GetScriptLoadContext() {
return mLoadContext->AsWindowContext();
}
mozilla::loader::ComponentLoadContext*
ScriptLoadRequest::GetComponentLoadContext() {
mozilla::loader::SyncLoadContext* ScriptLoadRequest::GetSyncLoadContext() {
MOZ_ASSERT(mLoadContext);
return mLoadContext->AsComponentContext();
return mLoadContext->AsSyncContext();
}
mozilla::dom::WorkerLoadContext* ScriptLoadRequest::GetWorkerLoadContext() {