Currently Environment Objects are cached in `createEnvironmentActor`. That meant DevTools could keep showing an old value for a variable after execution had moved on to a different value. In this change, we keep caching the environment actor name, but make sure the current state is being reflected by refreshing the environment actor data each time. This keeps the actor id stable and is also closer to Firefox behavior. Signed-off-by: atbrakhi <atbrakhi@igalia.com>
atbrakhi
changed the title
devtools: Do not cache environment actors
devtools: Do not cache environment actor values
atbrakhi marked this pull request as ready for review
May 6, 2026 15:32