<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>221854</bug_id>
          
          <creation_ts>2021-02-12 15:58:35 -0800</creation_ts>
          <short_desc>Cues displayed during end time</short_desc>
          <delta_ts>2022-06-17 16:19:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joey Parrish">joeyparrish</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1728829</commentid>
    <comment_count>0</comment_count>
      <attachid>420187</attachid>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2021-02-12 15:58:35 -0800</bug_when>
    <thetext>Created attachment 420187
A simple page (45 lines) to repro the issue

Safari version 14

What steps will reproduce the problem?
(1) Open the attached HTML repro case (45 lines total)
(2) Optional: observe the sequence of events in the dev console logs

What is the expected result?

The repro page will insert two cues (1-2s and 2-3s), then seek to exactly 2s.
Only one cue should be displayed at time 2s (the second one).

What happens instead?

In Chrome/Edge 88 and Safari 14, both are displayed at once.  In Firefox 84, only the second cue is displayed (correct behavior).


Additional context:

It recently was pointed out to us in Shaka Player that our DOM-UI-based cue display got this wrong, too.  The fix turned out to be a single character (&gt; instead of &gt;=).  You may find something similar in WebKit.  https://github.com/google/shaka-player/pull/3152/files</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1728830</commentid>
    <comment_count>1</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2021-02-12 15:59:32 -0800</bug_when>
    <thetext>Corresponding Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1178026</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1729687</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2021-02-16 08:48:44 -0800</bug_when>
    <thetext>Thanks for the report Joey!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1729725</commentid>
    <comment_count>3</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2021-02-16 09:39:19 -0800</bug_when>
    <thetext>Happy to help!  Thanks for taking a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731654</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-19 15:59:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/74541188&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869806</commentid>
    <comment_count>5</comment_count>
    <who name="Youssef Soliman">y_soliman</who>
    <bug_when>2022-05-17 14:32:30 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/694</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876552</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-17 16:19:24 -0700</bug_when>
    <thetext>Committed r295647 (251652@main): &lt;https://commits.webkit.org/251652@main&gt;

Reviewed commits have been landed. Closing PR #694 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>420187</attachid>
            <date>2021-02-12 15:58:35 -0800</date>
            <delta_ts>2021-02-12 15:58:35 -0800</delta_ts>
            <desc>A simple page (45 lines) to repro the issue</desc>
            <filename>cue-edge-case.html</filename>
            <type>text/html</type>
            <size>1525</size>
            <attacher name="Joey Parrish">joeyparrish</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgogIDx2aWRlbyBpZD0idmlkZW8iCiAgICAgIHN0eWxlPSJ3aWR0aDogMTAw
JTsgaGVpZ2h0OiAxMDAlOyIKICAgICAgc3JjPSJodHRwczovL3N0b3JhZ2UuZ29vZ2xlYXBpcy5j
b20vc2hha2EtZGVtby1hc3NldHMvc2ludGVsLW1wNC1vbmx5L3YtMDE0NHAtMDEwMGstbGlieDI2
NC5tcDQiIC8+CjwvYm9keT4KPHNjcmlwdD4KCihhc3luYyAoKSA9PiB7CiAgY29uc29sZS5sb2co
J0luc2VydGluZyBjdWVzLicpOwogIHRleHRUcmFjayA9IHZpZGVvLmFkZFRleHRUcmFjaygnc3Vi
dGl0bGVzJyk7CiAgdGV4dFRyYWNrLm1vZGUgPSAnc2hvd2luZyc7CiAgdGV4dFRyYWNrLmFkZEN1
ZShuZXcgVlRUQ3VlKDEsIDIsICdUaGlzIHNob3VsZCBiZSBnb25lIGJ5IDJzLicpKTsKICB0ZXh0
VHJhY2suYWRkQ3VlKG5ldyBWVFRDdWUoMiwgMywgJ1RoaXMgc2hvdWxkIGFwcGVhciBhbG9uZSBh
dCAycy4nKSk7CgogIC8vIFNvbWUgYnJvd3NlcnMgZG9uJ3QgZGlzcGxheSBjdWVzIHVudGlsIHRo
ZSB2aWRlbyBwbGF5cy4gIFNvIHBsYXkgaXQgYQogIC8vIGxpdHRsZSBmaXJzdC4KICBjb25zb2xl
LmxvZygnUGxheWluZy4nKTsKICBhd2FpdCB2aWRlby5wbGF5KCk7CiAgaWYgKHZpZGVvLnJlYWR5
U3RhdGUgPCBIVE1MTW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