Closed Bug 1850341 Opened 2 years ago Closed 2 years ago

[popover] Improve focus handling in hidepopover

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed
firefox120 --- fixed

People

(Reporter: zsun, Assigned: zsun)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

No description provided.
Blocks: popover
Depends on: 1849689

[1] Fix the previous handling of checking if focus is within the hierarchy.
[2] Including the condition for escape key to return to previous focus in hidepopover.

The test .ini file shows more faiulures. Actually, Popover button click focus tests have gone
further and should pass when light dismiss func is in. Due to this, corner cases followed
are affected as they are exepcting to start out hidden. These faiulures should all be sorted
once light dismiss func is done.

Assignee: nobody → zsun
Attachment #9350452 - Attachment description: WIP: Bug 1850341 - Improve focus handling in hidepopover. → Bug 1850341 - Improve focus handling in hidepopover. r=emilio
Status: NEW → ASSIGNED

This fixes the tests not working properly when our code follows the
spec.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f52abfa68b37 Make popover tests don't shift focus when sending keypress events. r=zsun

Backed out for causing wpt failures on popover-top-layer-combinations.html.

[task 2023-09-21T00:00:49.877Z] 00:00:49     INFO - TEST-START | /eventsource/format-comments.any.worker.html
[task 2023-09-21T00:00:49.914Z] 00:00:49     INFO - Closing window dfd690bc-44cf-45f2-8cb9-6c2395748406
[task 2023-09-21T00:00:50.110Z] 00:00:50     INFO - 
[task 2023-09-21T00:00:50.110Z] 00:00:50     INFO - TEST-PASS | /html/semantics/popovers/popover-top-layer-combinations.html | Popover combination: Popover Dialog 
[task 2023-09-21T00:00:50.111Z] 00:00:50     INFO - TEST-PASS | /html/semantics/popovers/popover-top-layer-combinations.html | Popover combination: Open Non-modal Popover Dialog 
[task 2023-09-21T00:00:50.111Z] 00:00:50     INFO - TEST-UNEXPECTED-FAIL | /html/semantics/popovers/popover-top-layer-combinations.html | Popover combination: Fullscreen Popover - promise_test: Unhandled rejection with value: object "Error: element click intercepted error"
[task 2023-09-21T00:00:50.112Z] 00:00:50     INFO - ..
[task 2023-09-21T00:00:50.112Z] 00:00:50     INFO - TEST-OK | /html/semantics/popovers/popover-top-layer-combinations.html | took 3893ms
[task 2023-09-21T00:00:50.112Z] 00:00:50     INFO - PID 20291 | 1695254450109	Marionette	INFO	Stopped listening on port 33774
[task 2023-09-21T00:00:50.386Z] 00:00:50     INFO - .
[task 2023-09-21T00:00:50.388Z] 00:00:50     INFO - TEST-OK | /eventsource/format-comments.any.worker.html | took 509ms
[task 2023-09-21T00:00:50.390Z] 00:00:50     INFO - TEST-START | /eventsource/format-data-before-final-empty-line.any.html
Flags: needinfo?(emilio)

@emilio, test /html/semantics/popovers/popover-top-layer-combinations.html fails only for Linux. See https://bugzilla.mozilla.org/show_bug.cgi?id=1838636. I haven't managed to figure out why yet.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e98350675c5a Make popover tests don't shift focus when sending keypress events. r=zsun
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42150 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by zsun@igalia.com: https://hg.mozilla.org/integration/autoland/rev/8c2ed68b21eb Improve focus handling in hidepopover. r=emilio
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Pushed by zsun@igalia.com: https://hg.mozilla.org/integration/autoland/rev/82960246f224 Check if a dialog is opened as a popover in ESC key handling. r=emilio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: