Open Bug 1802570 Opened 2 years ago Updated 2 years ago

Focus may not be able to work when load event fires if RecvActivate doesn't run

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

defect

Tracking

()

People

(Reporter: sefeng, Unassigned)

References

Details

This particular autofocus WPT expects we can focus elements when the load event fires, however this doesn't always hold.

One possibility is that the GetActiveBrowsingContext() call returns null, so nsFocusManager thinks the element is not in an active window. Looks like we expect the parent process sends the Activate IPC message, however this seems a bit racy.

hsivonen: Could you take a look or just set the priority and severity?

Component: DOM: Core & HTML → DOM: UI Events & Focus Handling
Flags: needinfo?(hsivonen)
Severity: -- → S3
Flags: needinfo?(hsivonen)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.