From d9520c8a1267b64d7c02a6d755833cecf81cc1d9 Mon Sep 17 00:00:00 2001 From: chensi10 Date: Fri, 4 Nov 2022 16:20:40 +0800 Subject: [PATCH] w3c import-maps bugfix Signed-off-by: chensi10 --- renderer/core/loader/preload_helper.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renderer/core/loader/preload_helper.cc b/renderer/core/loader/preload_helper.cc index aa62c8c2f..042fac354 100644 --- a/renderer/core/loader/preload_helper.cc +++ b/renderer/core/loader/preload_helper.cc @@ -406,7 +406,10 @@ void PreloadHelper::ModulePreloadIfNeeded( DCHECK(modulator); if (!modulator) return; - + #if defined(OS_OHOS) + modulator->SetAcquiringImportMapsState( + Modulator::AcquiringImportMapsState::kAfterModuleScriptLoad); + #endif // Step 2. "Let destination be the current state of the as attribute (a // destination), or "script" if it is in no state." [spec text] // Step 3. "If destination is not script-like, then queue a task on the -- Gitee