Changeset 228185 in webkit


Ignore:
Timestamp:
Feb 6, 2018 11:36:40 AM (6 years ago)
Author:
graouts@webkit.org
Message:

[Modern Media Controls] Test at media/modern-media-controls/tracks-panel/tracks-panel-controls-bar-remains-visible-after-clicking-over-it.html fails
https://bugs.webkit.org/show_bug.cgi?id=182425

Reviewed by Dean Jackson.

Source/WebCore:

This test failed because the controls bar would not hit test at the moment we synthesized a mousemove over the controls bar as the first step towards
synthesizing a click on the controls bar to dismiss the tracks panel. Indeed, it would have "pointer-events" set to "none" until the tracks panel was
dismissed, which would only happen after the click event had been propagated. All we need to do is to ensure that none of the controls within the controls
bar get activated as a result of clicking over them when the tracks panel is visible, so we instead set "pointer-events" to "none" on all children of a
controls bar rather than the controls bar itself, which can thus still hit test.

  • Modules/modern-media-controls/controls/media-controls.css:

(.media-controls.shows-tracks-panel > .controls-bar > *,):
(.media-controls.shows-tracks-panel > .controls-bar,): Deleted.

LayoutTests:

Turn the test back on now that it works.

  • platform/mac/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r228184 r228185  
     12018-02-06  Antoine Quint  <graouts@apple.com>
     2
     3        [Modern Media Controls] Test at media/modern-media-controls/tracks-panel/tracks-panel-controls-bar-remains-visible-after-clicking-over-it.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=182425
     5
     6        Reviewed by Dean Jackson.
     7
     8        Turn the test back on now that it works.
     9
     10        * platform/mac/TestExpectations:
     11
    1122018-02-06  Antoine Quint  <graouts@apple.com>
    213
  • trunk/LayoutTests/platform/mac/TestExpectations

    r228150 r228185  
    14631463webkit.org/b/178126 media/modern-media-controls/media-controller/media-controller-auto-hide-mouse-enter-over-controls-bar.html [ Skip ]
    14641464webkit.org/b/178127 media/modern-media-controls/media-controller/media-controller-video-with-only-audio.html [ Skip ]
    1465 webkit.org/b/182425 media/modern-media-controls/tracks-panel/tracks-panel-controls-bar-remains-visible-after-clicking-over-it.html [ Failure ]
    14661465
    14671466# This test relies on the control overlay not being visible in the top left. But the test now fails on Mac because
  • trunk/Source/WebCore/ChangeLog

    r228180 r228185  
     12018-02-06  Antoine Quint  <graouts@apple.com>
     2
     3        [Modern Media Controls] Test at media/modern-media-controls/tracks-panel/tracks-panel-controls-bar-remains-visible-after-clicking-over-it.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=182425
     5
     6        Reviewed by Dean Jackson.
     7
     8        This test failed because the controls bar would not hit test at the moment we synthesized a mousemove over the controls bar as the first step towards
     9        synthesizing a click on the controls bar to dismiss the tracks panel. Indeed, it would have "pointer-events" set to "none" until the tracks panel was
     10        dismissed, which would only happen after the click event had been propagated. All we need to do is to ensure that none of the controls within the controls
     11        bar get activated as a result of clicking over them when the tracks panel is visible, so we instead set "pointer-events" to "none" on all children of a
     12        controls bar rather than the controls bar itself, which can thus still hit test.
     13
     14        * Modules/modern-media-controls/controls/media-controls.css:
     15        (.media-controls.shows-tracks-panel > .controls-bar > *,):
     16        (.media-controls.shows-tracks-panel > .controls-bar,): Deleted.
     17
    1182018-02-06  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/Source/WebCore/Modules/modern-media-controls/controls/media-controls.css

    r226825 r228185  
    9898}
    9999
    100 .media-controls.shows-tracks-panel > .controls-bar,
     100.media-controls.shows-tracks-panel > .controls-bar > *,
    101101.media-controls.shows-tracks-panel > button {
    102102    pointer-events: none;
Note: See TracChangeset for help on using the changeset viewer.