From 1a7f1816590984ee3482d5136a033d0b200f35ff Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 2 Feb 2022 13:54:16 +0100 Subject: [PATCH] Remove concept of "expressly inert" It seems a remnant of control groups, which were removed in #3647. All uses are replaced with the concept of "inert". Also cleaning up "When a key event is to be routed in a top-level browsing context", which also seems to have remnants of when control groups allowed inert elements inside an inert dialog to be focusable. Fixes #7564. --- source | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/source b/source index a2fb0bdf235..e838d510d2e 100644 --- a/source +++ b/source @@ -74904,10 +74904,6 @@ END:VCARD nested browsing context's active document, and all nodes in that Document, must be marked as inert.

-

An element - is expressly inert if it is inert and its node document is - not inert.

-

A Document document is blocked by a modal dialog subject if subject is the topmost dialog element in document's top layer. While document is so blocked, every node @@ -75245,7 +75241,7 @@ END:VCARD

  • the element is not actually disabled;
  • -
  • the element is not expressly inert;
  • +
  • the element is not inert;
  • the element is either being rendered or being used as relevant canvas fallback content.
  • @@ -75262,8 +75258,7 @@ END:VCARD The shapes of area elements in an image map associated with an - img element that is being rendered and is not expressly - inert. + img element that is being rendered and is not inert. The img element. @@ -75283,8 +75278,7 @@ END:VCARD The user-agent provided subwidgets of elements that are being rendered and are not - actually disabled or expressly - inert. + actually disabled or inert. The element for which the focusable area is a subwidget. @@ -75299,9 +75293,9 @@ END:VCARD The scrollable regions of elements that are being rendered and are not - expressly inert. + inert. The element for which the box that the scrollable region scrolls was created. @@ -76034,8 +76028,8 @@ END:VCARD

    Focus fixup rule: When the designated focused area of the document is removed from that Document in some way (e.g. it stops being a focusable area, it is removed from the DOM, it becomes - expressly inert, etc.), designate the Document's viewport - to be the new focused area of the document.

    + inert, etc.), designate the Document's viewport to be the + new focused area of the document.

    For example, this might happen because an element is removed from its Document, or has a hidden attribute added. It might @@ -76171,8 +76165,7 @@ END:VCARD data-x="tlbc system focus">system focus.

  • If target area is a focusable area, let target - node be target area's DOM anchor. Otherwise, target area is a dialog; let target node be - target area.

  • + node be target area's DOM anchor.

  • If target node is a Document that has a It is possible for the currently focused area of a top-level browsing - context to be inert, for example if a modal dialog is shown, and then that dialog - element is made inert. It is likely to be the result of a logic error in the - application, though.

    -
    1. Let canHandle be the result of dispatching the key event at target @@ -128185,6 +128171,7 @@ INSERT INTERFACES HERE Olli Pettay, Ondřej Žára, Ori Avtalion, + Oriol Brufau, oSand, Pablo Flouret, Patrick Dark,