Package org.mozilla.geckoview
Class WebExtension.CreateTabDetails
Object
org.mozilla.geckoview.WebExtension.CreateTabDetails
- Enclosing class:
- WebExtension
Provides details about creating a tab with
tabs.create
. See also:
WebExtensions/API/tabs/create .
Whenever a field is not passed in by the extension that value will be null
.
-
Field Summary
Modifier and TypeFieldDescriptionfinal Boolean
Whether the tab should become active.final String
The CookieStoreId used for the tab.final Boolean
Whether the tab is created and made visible in the tab bar without any content loaded into memory, a state known as discarded.final Integer
The position the tab should take in the window.final Boolean
If true, open this tab in Reader Mode.final Boolean
Whether the tab should be pinned.final String
The url that the tab will be navigated to. -
Constructor Summary
-
Method Summary
-
Field Details
-
active
Whether the tab should become active. Iftrue
, non-active highlighted tabs should stop being highlighted. Iffalse
, does nothing. -
cookieStoreId
The CookieStoreId used for the tab. This option is only available if the extension has the "cookies" permission. -
discarded
Whether the tab is created and made visible in the tab bar without any content loaded into memory, a state known as discarded. The tab’s content should be loaded when the tab is activated. -
index
The position the tab should take in the window. -
openInReaderMode
If true, open this tab in Reader Mode. -
pinned
Whether the tab should be pinned. -
url
The url that the tab will be navigated to. This url is provided just for informational purposes, there is no need to load the URL manually. The correspondingGeckoSession
will be navigated to the right URL after returningGeckoResult.ALLOW
fromWebExtension.TabDelegate.onNewTab(org.mozilla.geckoview.WebExtension, org.mozilla.geckoview.WebExtension.CreateTabDetails)
-
-
Constructor Details
-
CreateTabDetails
protected CreateTabDetails()For testing.
-