Reports whether the current document is rendered in a full browser tab
(as opposed to the toolbar popup), based on the ?view=tab
query param set by openExtensionTab.
Opens the extension in a new, focused browser tab and closes the popup.
The opened URL carries the ?view=tab param so isTabView resolves to
true there. Falls back to window.open outside the extension runtime.
If a tab is already open at that URL it is focused instead of duplicated.
Query-string key that flags the full-tab view.
Value of VIEW_PARAM that identifies the full-tab view.
Helpers for detecting and switching the extension's display context.
The same
index.htmlis rendered as the toolbar popup and (via openExtensionTab) a full browser tab. A?view=tabquery param marks the tab view so the UI can resize to fill the window and hide popup-only controls such as the maximize button.Source