From a1b2e086b379dd9bbd278ddfaf96345027ae78a1 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Tue, 24 Oct 2023 13:52:41 +0200 Subject: [PATCH] [PreloadScripts] Block empty contexts list --- index.bs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.bs b/index.bs index 9dd27b7a6..f2b8e02b1 100644 --- a/index.bs +++ b/index.bs @@ -7633,6 +7633,10 @@ The [=remote end steps=] given |session| and |command parameters| are: 1. If |contexts| is not null: + 1. If |contexts| is an empty [=/list=]: + + 1. Return an [=error=] with [=error code=] [=invalid argument=]. + 1. For each |context id| of |contexts|: 1. Let |context| be the result of [=trying=] to [=get a browsing context=] with |context id|.