<?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>173515</bug_id>
          
          <creation_ts>2017-06-17 12:47:42 -0700</creation_ts>
          <short_desc>REGRESSION(r218438): Caused imported/w3c/web-platform-tests/media-source/mediasource* tests to fail (Requested by smfr on #webkit).</short_desc>
          <delta_ts>2017-06-17 23:00:01 -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>New Bugs</component>
          <version>WebKit Nightly Build</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>173505</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="WebKit Commit Bot">commit-queue</reporter>
          <assigned_to name="WebKit Commit Bot">commit-queue</assigned_to>
          <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1320413</commentid>
    <comment_count>0</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-17 12:47:42 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/218438 broke the build:
Caused imported/w3c/web-platform-tests/media-source/mediasource* tests to fail (Requested by smfr on #webkit).

This is an automatic bug report generated by webkitbot. If this bug
report was created because of a flaky test, please file a bug for the flaky
test (if we don&apos;t already have one on file) and dup this bug against that bug
so that we can track how often these flaky tests fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320415</commentid>
    <comment_count>1</comment_count>
      <attachid>313207</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-17 12:47:46 -0700</bug_when>
    <thetext>Created attachment 313207
ROLLOUT of r218438

Any committer can land this patch automatically by marking it commit-queue+.  The commit-queue will build and test the patch before landing to ensure that the rollout will be successful.  This process takes approximately 15 minutes.

If you would like to land the rollout faster, you can use the following command:

  webkit-patch land-attachment ATTACHMENT_ID

where ATTACHMENT_ID is the ID of this attachment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320417</commentid>
    <comment_count>2</comment_count>
      <attachid>313207</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-06-17 12:48:37 -0700</bug_when>
    <thetext>Comment on attachment 313207
ROLLOUT of r218438

Failures: https://build.webkit.org/results/Apple%20Sierra%20Release%20WK1%20(Tests)/r218438%20(2552)/results.html

also affecting EWS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320420</commentid>
    <comment_count>3</comment_count>
      <attachid>313207</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-17 12:50:54 -0700</bug_when>
    <thetext>Comment on attachment 313207
ROLLOUT of r218438

Clearing flags on attachment: 313207

Committed r218454: &lt;http://trac.webkit.org/changeset/218454&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320421</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-17 12:50:55 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320480</commentid>
    <comment_count>5</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2017-06-17 22:58:39 -0700</bug_when>
    <thetext>I found the underlying issue behind the test failures, and it has nothing to do with this patch, except in that this patch causes it to happen much more frequently.

When a client specifies a timestamp offset, the SourceBuffer code stores the current presentation time as a float (because a MediaTime + float = float).  But the sample itself store it as a MediaTime.  Generally speaking, we use the sample&apos;s presentation time as the key to our storage, but in one instance (the decodeQueue) we are using the local value of presentation time (the float). This leads to a mismatch later when it comes time to remove those samples from the decode queue, so the samples are left in the decode queue, which causes a decode error, which breaks this test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320481</commentid>
    <comment_count>6</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2017-06-17 22:59:32 -0700</bug_when>
    <thetext>(BTW, I&apos;m pretty sure that this is the cause of some existing flakiness of some of these tests.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320482</commentid>
    <comment_count>7</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2017-06-17 23:00:01 -0700</bug_when>
    <thetext>Gah, I should really be commenting in the related radar. :(</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>313207</attachid>
            <date>2017-06-17 12:47:46 -0700</date>
            <delta_ts>2017-06-17 12:50:54 -0700</delta_ts>
            <desc>ROLLOUT of r218438</desc>
            <filename>bug-173515-20170617154745.patch</filename>
            <type>text/plain</type>
            <size>2061</size>
            <attacher name="WebKit Commit Bot">commit-queue</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE4NDUzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNTcyMjE0ZmEyOWVkMWM5
MjY4NmEzMzY2Y2Q1NzRiNzYwODJlM2Y3MC4uNDJlNmU5MWEwMDE4YzI5ZWU2OWY5MWNhODhmYWVj
NDI3ZTI0YTZjNyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5n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