Closed Bug 1623875 Opened 6 years ago Closed 5 months ago

browserAction popup is not focused automatically when opened from the overflow menu

Categories

(WebExtensions :: Frontend, defect, P3)

74 Branch
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: 5i13ghzt462u, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

Steps to reproduce:

When you open the popup, run some .focus() on a text input field. You'll notice it is not actually focused.

Better to reproduce by using the add-on from Bug 1324255, comment https://bugzilla.mozilla.org/show_bug.cgi?id=1324255#c1

If you "move this into the overflow menu" the window is not focused.

Actual results:

window.document.hasFocus() also reports false
keysstrokes are not catched
.focus() focuses the element itself inside the website, i.e. document.activeElement is set to that, but as the popup/whole website is not focused, that does not help and e.g. no cursor is shown in the input field.

Expected results:

Just as when you have the add-on in the usual top bar, the focus works there.

The workaround from Bug 1324255 to focus the body (document.querySelector('body').focus();) does not work!

Fedora 31
GNOME v3.34.4
Wayland

See Also: → 1324255
Flags: needinfo?(lgreco)

I took a look to this and it doesn't seem to be a wayland-specific issue, I can trigger the focus issue consistently even on X11 (and even on linux windows managers other then gnome) when the browserAction popup window is being opened from the overflow menu.

I'm linking this bug to the meta bug where we are collecting the issues related to the overflow menu (and I'm changing the issue summary to reflect that this issue is actually related to the overflow menu).

Blocks: 1459046
Flags: needinfo?(lgreco)
Summary: Popup is not focused on Linux/Wayland in overflow menu → browserAction popup is not focused automatically when opened from the overflow menu

The priority flag is not set for this bug.
:mixedpuppy, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mixedpuppy)
Flags: needinfo?(mixedpuppy)
Priority: -- → P3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

It is no longer possible to add an extension to the overflow menu. So I think this bug can be closed.

Jup, confirming as it seems obsolete.

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.