Files
orca/resources/plugins/declarative
8e25dbee86 fix(plugins): treat cross-drive paths as outside the plugin root in plugin testing (#43200)
On Windows, path.relative() returns an absolute path when the plugin root
and the file are on different drives or UNC roots. The plugin test hooks
and panel-check stack locator only treated '..'-prefixed results as
outside the plugin, so Orca's bundled testing runtime was resolved as a
plugin file and panel issues pointed at Orca frames.

Add a shared pathInsidePluginRoot helper (also backing isInsidePluginRoot)
that rejects empty, '..', '..<sep>' and absolute relative paths, use it at
both call sites, regenerate orca-test-hooks.mjs, and add win32-mocked
regression tests.

Fixes #43195

Co-authored-by: alaya <21375302+AlayaElla@users.noreply.github.com>
Co-authored-by: Neil <neil@stably.ai>
2026-11-16 11:03:25 -08:00
..