public static class WebExtension.CreateTabDetails extends Object
tabs.create
.
See also:
WebExtensions/API/tabs/create
.
Whenever a field is not passed in by the extension that value will be null
.Modifier and Type | Field and Description |
---|---|
Boolean |
active
Whether the tab should become active.
|
String |
cookieStoreId
The CookieStoreId used for the tab.
|
Boolean |
discarded
Whether the tab is created and made visible in the tab bar
without any content loaded into memory, a state known as
discarded.
|
Integer |
index
The position the tab should take in the window.
|
Boolean |
openInReaderMode
If true, open this tab in Reader Mode.
|
Boolean |
pinned
Whether the tab should be pinned.
|
String |
url
The url that the tab will be navigated to.
|
Modifier | Constructor and Description |
---|---|
protected |
CreateTabDetails()
For testing.
|
@Nullable public final Boolean active
true
,
non-active highlighted tabs should stop being highlighted. If
false
, does nothing.@Nullable public final String cookieStoreId
@Nullable public final Boolean discarded
@Nullable public final Integer index
@Nullable public final Boolean openInReaderMode
@Nullable public final Boolean pinned
@Nullable public final String url
GeckoSession
will be navigated
to the right URL after returning GeckoResult.ALLOW
from
WebExtension.TabDelegate.onNewTab(org.mozilla.geckoview.WebExtension, org.mozilla.geckoview.WebExtension.CreateTabDetails)