fix(cdp): adapt navigation to optional runtime owner slots

Use the updated optional owner slot API when preparing beforeunload and completing navigation. Include the operation and case in ancestor-navigation realm assertion diagnostics.
This commit is contained in:
ldm0
2026-11-03 18:08:15 +08:00
parent be6a90f58b
commit ecf52639f9
@@ -282,7 +282,10 @@ async fn check_in_local_set(operation: &str, case: Case, allowed: bool) {
);
assert_eq!(result["conversions"], usize::from(location));
if !allowed && location {
assert_eq!(result["localException"], true);
assert_eq!(
result["localException"], true,
"{operation}/{case:?}: {result}"
);
}
if operation == "open" {
assert_eq!(result["returnedTarget"], allowed);