From ecf52639f9367a3ba68f2c69c8bc819fa22f709a Mon Sep 17 00:00:00 2001 From: ldm0 Date: Mon, 19 Oct 2026 18:56:08 +0800 Subject: [PATCH] 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. --- .../page/tests/same_document_history/ancestor_navigation.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/moli-protocol/src/domains/page/tests/same_document_history/ancestor_navigation.rs b/moli-protocol/src/domains/page/tests/same_document_history/ancestor_navigation.rs index bb01e2722d0..17976cd0719 100644 --- a/moli-protocol/src/domains/page/tests/same_document_history/ancestor_navigation.rs +++ b/moli-protocol/src/domains/page/tests/same_document_history/ancestor_navigation.rs @@ -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);