Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 908fe01

Browse files
authored
Fix navigation message relay. (#20193)
1 parent 4de0c04 commit 908fe01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/common/engine.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ void Engine::DispatchPlatformMessage(fml::RefPtr<PlatformMessage> message) {
303303
} else if (channel == kSettingsChannel) {
304304
HandleSettingsPlatformMessage(message.get());
305305
return;
306-
} else if (channel == kNavigationChannel) {
306+
} else if (!runtime_controller_->IsRootIsolateRunning() &&
307+
channel == kNavigationChannel) {
307308
// If there's no runtime_, we may still need to set the initial route.
308309
HandleNavigationPlatformMessage(std::move(message));
309310
return;

0 commit comments

Comments
 (0)