Closed Bug 1037709 Opened 11 years ago Closed 4 years ago

Investigate if accesskeys should be handled when element is in a shadow dom bound to in-doc shadow host

Categories

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

29 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: smaug, Assigned: edgar)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Per HTML spec such accesskeys shouldn't be handled, but perhaps shadow DOM or HTML spec need to be changed.

Please support this

Why should accesskey not work within shadow dom. If the UI is usable (i.e. is keyboard controlable) then the use should not know (or care) whether the elements live in shadow dom or normal dom, thus IMO accesskey should be supported since it is supported in normal dom (and can be very useful in web apps since it may save lots of tabbing). It is also a very simple way of attaching a keyboard shortcut to an element!

Attached file t.html
Component: Event Handling → User events and focus handling

This is tracked by https://github.com/whatwg/html/issues/4385 standards-wise and per bug 1588156 comment 2 this is problematic for about:addons. The tentative outcome from the standards discussion is that accesskey should work across tree boundaries.

Hsin-Yi, can you find someone to take this?

Flags: needinfo?(htsai)

(In reply to Anne (:annevk) from comment #3)

This is tracked by https://github.com/whatwg/html/issues/4385 standards-wise and per bug 1588156 comment 2 this is problematic for about:addons. The tentative outcome from the standards discussion is that accesskey should work across tree boundaries.

Hsin-Yi, can you find someone to take this?

Sure, though we probably wouldn't get it to Q4 but put it the queue to prioritize.

Flags: needinfo?(htsai)
Priority: -- → P2

This is tracked by https://github.com/whatwg/html/issues/4385 standards-wise and
the tentative outcome from the standards discussion is that accesskey should work
across tree boundaries.

Depends on D110425

Assignee: nobody → echen
Attachment #9212835 - Attachment description: WIP: Bug 1037709 - Part 1: Remove nsGenericHTMLElement::RegAccessKey/UnregAccessKey; → Bug 1037709 - Part 1: Remove nsGenericHTMLElement::RegAccessKey/UnregAccessKey; r=smaug
Attachment #9212836 - Attachment description: WIP: Bug 1037709 - Part 2: Make element in a shadow DOM also handling accesskey; → Bug 1037709 - Part 2: Make element in a shadow DOM also handling accesskey; r=smaug
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36d3002f77b6 Part 1: Remove nsGenericHTMLElement::RegAccessKey/UnregAccessKey; r=smaug https://hg.mozilla.org/integration/autoland/rev/8bfe6426b2de Part 2: Make element in a shadow DOM also handling accesskey; r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28339 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: