Newly opened chrome window is not activated/focused with Focusmanager test mode enabled and Firefox in the background
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: whimboo, Unassigned)
References
Details
Reporter | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Reporter | ||
Comment 5•6 years ago
|
||
Ok, so at least that works for me now and the patch is going to be landed soon on bug 1504756.
But do you know why I cannot just call win.focus()
but have to do it via a setTimeout with 0ms?
win.setTimeout(() => win.focus(), 0);
If I just call win.focus() it crashes with bug 1509234. Do you have an idea, or could you help with that?
Or should I better try to set the focus via Services.focus.activeWindow
? But I haven't tested that yet, and it may also crash.
Comment 6•6 years ago
|
||
That's an accessibility crash that happening when a refresh occurs. I don't really know about this, sorry.
Reporter | ||
Comment 7•6 years ago
|
||
(In reply to Neil Deakin from comment #6)
That's an accessibility crash that happening when a refresh occurs. I don't really know about this, sorry.
Ok, I will try to find someone on the other bug to have a look at it.
(In reply to Henrik Skupin (:whimboo) from comment #5)
Or should I better try to set the focus via
Services.focus.activeWindow
? But I haven't tested that yet, and it may also crash.
Do you have any final hint for me what is best here? Using win.focus() or the focusmanager to set the focus of a chrome window.
Comment 8•6 years ago
|
||
They will both do the same thing, so you should just use window.focus()
Reporter | ||
Comment 9•6 years ago
|
||
Thanks. So I will close this bug as Wontfix then.
Assignee | ||
Updated•6 years ago
|
Description
•