[mac] title bar disappears when a window of type popup|panel|detached_panel has >1 tab
Categories
(WebExtensions :: Frontend, defect, P3)
Tracking
(Not tracked)
People
(Reporter: dietrich, Unassigned)
References
Details
(Whiteboard: [addons-jira])
If you open a window using windows.create() with type = "popup", and then add a new tab to it, the title bar goes away.
I confirmed that the same behavior occurs whether the window type is "popup", "panel" or "detached_panel".
Example code, with comments illustrating the behavior:
const createInfo = { type: "popup" };
const winfo = await browser.windows.create(createInfo);
// At this point, there is a popup window with a title bar with traffic light buttons and an empty tab
const win = await browser.windows.get(winfo.id, { populate: true});
const createProperties = {
url,
windowId: winfo.id
};
const t = await api.tabs.create(createProperties);
// At this point the popup window has multiple tabs (not visually, but via API) but no longer has a title bar any more
If you close a tab (cmd/ctrl+w works) so that there's only one tab, the title bar reappears.
Comment 1•8 months ago
|
||
The severity field is not set for this bug.
:rpl, could you have a look please?
For more information, please visit BugBot documentation.
Comment 2•8 months ago
|
||
It looks like this can only be hit through an extension using the tabs API (e.g. through using browser.tabs.create
to create a new tab, and I'd guess also when moving an existing tab between windows through browser.tabs.move
).
The same kind of window without any tabs bar can also be created from a webpage through window.open, and if a user tries to open a new tab in the window without a tabs bar through the app menu, the new tab is created in another browser window with a tabbar and so it seeems like it would be reasonable for browser.tabs.create/browser.tabs.move API calls trying to open additional tabs in those windows should fail (so that we prevent the extensions from making Firefox to hit a corner case that is not expected to be ever be hit).
Updated•8 months ago
|
Reporter | ||
Comment 3•8 months ago
|
||
Alas, I figured this secret hack for tab bar hiding was too good to be true 😄
Description
•