diff --git a/shell/platform/glfw/platform_handler.cc b/shell/platform/glfw/platform_handler.cc index 5e9f41ed21f..39c8b4708cd 100644 --- a/shell/platform/glfw/platform_handler.cc +++ b/shell/platform/glfw/platform_handler.cc @@ -12,6 +12,7 @@ static constexpr char kChannelName[] = "flutter/platform"; static constexpr char kGetClipboardDataMethod[] = "Clipboard.getData"; static constexpr char kSetClipboardDataMethod[] = "Clipboard.setData"; +static constexpr char kSystemNavigatorPopMethod[] = "SystemNavigator.pop"; static constexpr char kTextPlainFormat[] = "text/plain"; static constexpr char kTextKey[] = "text"; @@ -73,6 +74,9 @@ void PlatformHandler::HandleMethodCall( } glfwSetClipboardString(window_, itr->value.GetString()); result->Success(); + } else if (method.compare(kSystemNavigatorPopMethod) == 0) { + exit(EXIT_SUCCESS); + result->Success(); } else { result->NotImplemented(); }