From 569337c9db8a93aec5ce7d699c40a7a4a159bbc8 Mon Sep 17 00:00:00 2001 From: Euclid Ye Date: Sat, 18 Oct 2025 15:08:50 +0800 Subject: [PATCH] Script execution: Add error handling for invalid reference argument --- index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.html b/index.html index a35c9cd4..cf112528 100644 --- a/index.html +++ b/index.html @@ -3391,6 +3391,9 @@

Contexts

the web frame identifier property from object. +
  • If reference is not a String, + return an error with error code invalid argument. +

  • Let browsing context be the browsing context whose window handle is reference, or null if no such browsing context exists. @@ -3414,6 +3417,9 @@

    Contexts

    the web window identifier property from object. +
  • If reference is not a String, + return an error with error code invalid argument. +

  • Let browsing context be the browsing context whose window handle is reference, or null if no such @@ -4475,6 +4481,9 @@

    Elements

    getting the web element identifier property from object. +
  • If reference is not a String, + return an error with error code invalid argument. +

  • Let element be the result of trying to get a known element with session and reference. @@ -4785,6 +4794,9 @@

    Shadow Roots

    the shadow root identifier property from object. +
  • If reference is not a String, + return an error with error code invalid argument. +

  • Let shadow be the result of trying to get a known shadow root with session and reference.