mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
CI: Test ohos on HarmonyOS device (#35006)
* ohos: Add event for page loaded We can use this to check if we succeeded. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * CI: Test OpenHarmony on self-hosted runner Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * fix typo Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com>
This commit is contained in:
parent
1d6bd2570f
commit
e3d347d4b4
2 changed files with 98 additions and 1 deletions
|
@ -695,6 +695,13 @@ impl HostTrait for HostCallbacks {
|
|||
}
|
||||
|
||||
fn on_load_ended(&self) {
|
||||
// Note: It seems that we don't necessarily get 1 `on_load_ended` for each
|
||||
// each time `on_loaded_started` is called. Presumably this requires some API changes,
|
||||
// e.g. including webview id, perhaps URL and some additional investigation effort.
|
||||
// For now we just add a trace event here, so that we can see in the trace if we
|
||||
// successfully loaded **a** page.
|
||||
#[cfg(feature = "tracing-hitrace")]
|
||||
let _scope = hitrace::ScopedTrace::start_trace(&c"PageLoadEndedPrompt");
|
||||
self.prompt_alert("Page finished loading!".to_string(), true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue