mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 10:37:35 +00:00
fix: retire extension iframe event listeners with native frame (#35011)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,9 @@ export const BROWSER_EXTENSION_INVOKE_CHANNEL = 'browserExtension:invoke'
|
||||
/** Main → extension context, only for events that context registered. Payload: BrowserExtensionEventPayload. */
|
||||
export const BROWSER_EXTENSION_EVENT_CHANNEL = 'browserExtension:event'
|
||||
|
||||
/** Main → listening frame. The transferred port owns the frame's listener registrations. */
|
||||
export const BROWSER_EXTENSION_FRAME_LIFETIME_CHANNEL = 'browserExtension:frameLifetime'
|
||||
|
||||
export type BrowserExtensionInvokeRequest =
|
||||
| { type: 'call'; namespace: string; method: string; args: unknown[] }
|
||||
// Why: lets main skip contexts with no listener and restart a stopped worker only when it listens.
|
||||
|
||||
Reference in New Issue
Block a user