diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-18 07:58:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 12:58:59 +0000 |
commit | 7e9f7e2616973418cc50f7706bd8f644cb9d5559 (patch) | |
tree | 8f8bec7a777a2df33a0a26ef53022c50d2327ef8 /types | |
parent | 4aaa9f15d97668203741c1731f15e710ae8b8294 (diff) |
Application data refactor (#699)
* Pass tabId and frameId to Application
* Remove casts
* Remove redundant frameInformationGet calls
* Expose tabId and frameId
* Remove unsed
* Simplify
* Update FrameAncestryHandler to not need a direct frameId
* Remove frameId from FrameOffsetForwarder
* Remove frameId from PopupFactory
* Remove frameId from Frontend
* Remove frameId from PopupPreviewFrame
* Fix PopupFactory and Frontend constructor
* Remove frameId from Display
* Remove frameId from SearchDisplayController
* Restore if check
Diffstat (limited to 'types')
-rw-r--r-- | types/ext/application.d.ts | 4 | ||||
-rw-r--r-- | types/ext/extension.d.ts | 4 | ||||
-rw-r--r-- | types/ext/frontend.d.ts | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/types/ext/application.d.ts b/types/ext/application.d.ts index 930220f0..96f76714 100644 --- a/types/ext/application.d.ts +++ b/types/ext/application.d.ts @@ -81,7 +81,7 @@ export type ApiSurface = { }; frontendRequestReadyBroadcast: { params: { - frameId: number; + frameId: number | null; }; return: void; }; @@ -101,7 +101,7 @@ export type ApiSurface = { }; frontendReady: { params: { - frameId: number; + frameId: number | null; }; return: void; }; diff --git a/types/ext/extension.d.ts b/types/ext/extension.d.ts index dc4657f0..c5e34d61 100644 --- a/types/ext/extension.d.ts +++ b/types/ext/extension.d.ts @@ -18,8 +18,8 @@ export type HtmlElementWithContentWindow = HTMLIFrameElement | HTMLFrameElement | HTMLObjectElement; export type ContentOrigin = { - tabId?: number; - frameId?: number; + tabId: number | null; + frameId: number | null; }; export type ChromeRuntimeOnMessageCallback<TMessage = unknown> = ( diff --git a/types/ext/frontend.d.ts b/types/ext/frontend.d.ts index 17f3d121..ca07e30c 100644 --- a/types/ext/frontend.d.ts +++ b/types/ext/frontend.d.ts @@ -29,10 +29,6 @@ export type ConstructorDetails = { popupFactory: PopupFactory; /** The nesting depth value of the popup. */ depth: number; - /** The tab ID of the host tab. */ - tabId: number | undefined; - /** The frame ID of the host frame. */ - frameId: number; /** The popup ID of the parent popup if one exists, otherwise null. */ parentPopupId: string | null; /** The frame ID of the parent popup if one exists, otherwise null. */ |