From ff627ea54e0867330f4a0bdd336ea4121b30fb14 Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 2 Oct 2025 11:10:03 +0100 Subject: [PATCH] `prefer-global-this` Add navigation to `windowSpecificAPIs` --- rules/prefer-global-this.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/prefer-global-this.js b/rules/prefer-global-this.js index e24bffde6e..c0fdefe971 100644 --- a/rules/prefer-global-this.js +++ b/rules/prefer-global-this.js @@ -62,6 +62,7 @@ const windowSpecificAPIs = new Set([ 'open', 'originAgentCluster', 'postMessage', + 'navigation', // Events commonly associated with "window" ...[...windowSpecificEvents].map(event => `on${event}`),