【发布时间】:2020-01-29 09:37:47
【问题描述】:
我们正在尝试使用 Cobalt (20.stable) 浏览器作为我们 Web SPA 应用程序的浏览器。 我的要求是能够在运行时更改 URL,我能够在代码中找到: 是:
starboard::shared::starboard::Application::Link(const char* link_data)
最终发送:
kSbEventTypeLink
不幸的是,这不起作用,因为代码忽略了调用;处理达到目的:
// TODO: Remove this when terminal application states are properly handled.
if (deep_link_event->IsH5vccLink()) {
browser_module_->Navigate(GURL(deep_link_event->link()));
}
就我而言,我正在尝试将 URL 更改为 https://www.example.com。 应该有一种方法可以做到这一点,因为在导航时我们总是可以有一个链接导致浏览器转到某个 URL?
【问题讨论】:
标签: cobalt