Files
orca/src/main/browser/browser-error.ts
T
Kelvin Amoaba eb55a5a6d3 feat(browser): --expect-url refuses a browser command when the page is at another URL (#37575)
* feat(browser): guard page commands with an expected URL

* fix(browser): refuse an empty --expect-url and check it on dialogs and the forwarding desktop

* fix(browser): recheck the expected URL right before keys go out

* refactor(browser): drop duplicate session type, dialog alias and per-capability sidecar fields

* chore(browser): satisfy the changed-code gates for the expected URL guard
2026-11-03 02:11:23 +00:00

11 lines
243 B
TypeScript

// Keep this error independent of Electron so Node hosts can load the runtime.
export class BrowserError extends Error {
constructor(
readonly code: string,
message: string,
readonly data?: unknown
) {
super(message)
}
}