Changeset 271671 in webkit


Ignore:
Timestamp:
Jan 20, 2021 1:41:50 PM (3 years ago)
Author:
Manuel Rego Casasnovas
Message:

[WPE] focus-visible-003.html and focus-visible-004.html are timing out in input tags
https://bugs.webkit.org/show_bug.cgi?id=220578

Reviewed by Javier Fernandez.

Source/WebCore:

Dispatch "focus" event for form controls when they are focused via mouse click.
This was already done in GTK+ but was not yet in WPE.

This works different on Mac ports as it's a particularity of how focus works on Mac platforms
(see https://webkit.org/b/22261 for details).

  • html/HTMLFormControlElement.cpp:

(WebCore::HTMLFormControlElement::isMouseFocusable const): Add PLATFORM(WPE).

LayoutTests:

  • platform/wpe/TestExpectations: Unskip tests that are not failing anymore.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r271669 r271671  
     12021-01-20  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [WPE] focus-visible-003.html and focus-visible-004.html are timing out in input tags
     4        https://bugs.webkit.org/show_bug.cgi?id=220578
     5
     6        Reviewed by Javier Fernandez.
     7
     8        * platform/wpe/TestExpectations: Unskip tests that are not failing anymore.
     9
    1102021-01-20  Alex Christensen  <achristensen@webkit.org>
    211
  • trunk/LayoutTests/platform/wpe/TestExpectations

    r271645 r271671  
    167167# Flexbox layout
    168168webkit.org/b/215502 fast/flexbox/image-percent-max-height.html [ Failure Pass ImageOnlyFailure ]
    169 
    170 # Focus-visible
    171 webkit.org/b/220578 imported/w3c/web-platform-tests/css/selectors/focus-visible-003.html [ Failure ]
    172 webkit.org/b/220578 imported/w3c/web-platform-tests/css/selectors/focus-visible-004.html [ Failure ]
    173169
    174170# Link target
  • trunk/Source/WebCore/ChangeLog

    r271670 r271671  
     12021-01-20  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [WPE] focus-visible-003.html and focus-visible-004.html are timing out in input tags
     4        https://bugs.webkit.org/show_bug.cgi?id=220578
     5
     6        Reviewed by Javier Fernandez.
     7
     8        Dispatch "focus" event for form controls when they are focused via mouse click.
     9        This was already done in GTK+ but was not yet in WPE.
     10
     11        This works different on Mac ports as it's a particularity of how focus works on Mac platforms
     12        (see https://webkit.org/b/22261 for details).
     13
     14        * html/HTMLFormControlElement.cpp:
     15        (WebCore::HTMLFormControlElement::isMouseFocusable const): Add PLATFORM(WPE).
     16
    1172021-01-20  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Source/WebCore/html/HTMLFormControlElement.cpp

    r269587 r271671  
    392392bool HTMLFormControlElement::isMouseFocusable() const
    393393{
    394 #if PLATFORM(GTK)
     394#if (PLATFORM(GTK) || PLATFORM(WPE))
    395395    return HTMLElement::isMouseFocusable();
    396396#else
Note: See TracChangeset for help on using the changeset viewer.