Open Bug 1920523 Opened 2 months ago Updated 2 months ago

NixOS with Hyprland window manager error opening a new window from add-on

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

Thunderbird 128
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: m, Unassigned)

Details

Steps to reproduce:

Opening a new window from an add-on using this code:

await browser.windows.create({
url: browser.runtime.getURL('api_webchat/index.html?llm='+prefs.connection_type+'&call_id='+rand_call_id2),
type: "popup",
width: prefs.chatgpt_win_width,
height: prefs.chatgpt_win_height
});

Full code here: https://github.com/micz/ThunderAI/blob/b9806f984f0b52d38001d26f2c19c6e96f38cbf7/mzta-background.js#L221

Actual results:

The window briefly opens but then closes immediately.
In the log there is this error:
WebExtensions: Window manager refused to set window to state 3. ext-mail.js:1619

Full issue here: https://github.com/micz/ThunderAI/issues/137#issuecomment-2364735358

Expected results:

The window opens and stays open.

The user that reported the bug, tested a modified version that worked.

I modified the call this way:

await browser.windows.create({
url: browser.runtime.getURL('api_webchat/index.html?llm='+prefs.connection_type+'&call_id='+rand_call_id2),
type: "popup",
});

Without setting the dimensions, the window remains open.

You need to log in before you can comment on or make changes to this bug.