Bug 171653 - Invalid MediaSource duration value should throw TyperError instead of InvalidStateError
Summary: Invalid MediaSource duration value should throw TyperError instead of Invalid...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nael Ouedraogo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-04 05:32 PDT by Nael Ouedraogo
Modified: 2017-05-15 02:14 PDT (History)
5 users (show)

See Also:


Attachments
Patch (9.33 KB, patch)
2017-05-04 05:44 PDT, Nael Ouedraogo
no flags Details | Formatted Diff | Diff
Patch (11.26 KB, patch)
2017-05-11 07:47 PDT, Nael Ouedraogo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nael Ouedraogo 2017-05-04 05:32:44 PDT
Invalid MediaSource duration value should throw TyperError instead of InvalidStateError.
Comment 1 Nael Ouedraogo 2017-05-04 05:44:28 PDT
Created attachment 309037 [details]
Patch
Comment 2 Nael Ouedraogo 2017-05-04 09:59:20 PDT
I am going to fix the remaining failing tests in  bug 171668. I think the timeout for mac ports is not related to this patch since it happens also without this patch.
Comment 3 youenn fablet 2017-05-05 19:47:51 PDT
Comment on attachment 309037 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=309037&action=review

> LayoutTests/ChangeLog:16
> +        * platform/mac/imported/w3c/web-platform-tests/media-source/mediasource-duration-boundaryconditions-expected.txt: Added.

Why are we not rebasing LayoutTests/imported/w3c/web-platform-tests/media-source/mediasource-duration-boundaryconditions-expected.txt?
Comment 4 Nael Ouedraogo 2017-05-09 08:27:53 PDT
Thanks for the review.

> Why are we not rebasing
> LayoutTests/imported/w3c/web-platform-tests/media-source/mediasource-
> duration-boundaryconditions-expected.txt?

Currently, failure are different for mac and gtk ports. Mac port has a timeout issue when setting duration to zero. Gtk port fails to set duration to POSITIVE_INFINITY. I am going to fix remaining failures for gtk port (bug 171668 and bug 171860 ) and then remove the expected results for gtk platform.
Comment 5 WebKit Commit Bot 2017-05-09 08:58:13 PDT
Comment on attachment 309037 [details]
Patch

Clearing flags on attachment: 309037

Committed r216508: <http://trac.webkit.org/changeset/216508>
Comment 6 WebKit Commit Bot 2017-05-09 08:58:14 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Matt Lewis 2017-05-09 12:10:28 PDT
Unsure if this is expected but Sierra is failing but El Capitan is passing. 

https://build.webkit.org/results/Apple%20Sierra%20Release%20WK2%20(Tests)/r216515%20(1315)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=imported%2Fw3c%2Fweb-platform-tests%2Fmedia-source%2Fmediasource-duration-boundaryconditions.html

--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/media-source/mediasource-duration-boundaryconditions-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/media-source/mediasource-duration-boundaryconditions-actual.txt
@@ -1,5 +1,3 @@
-
-Harness Error (TIMEOUT), message = null
 
 PASS Set duration to 2^31 - 1 
 PASS Set duration to 1 
@@ -12,6 +10,6 @@
 PASS Set duration to lowest value. 
 PASS Set duration to a negative double. 
 PASS Set duration to a positive double. 
-TIMEOUT Set duration to zero Test timed out
+PASS Set duration to zero 
 PASS Set duration to NaN
Comment 8 Matt Lewis 2017-05-09 12:15:35 PDT
Reverted r216508 for reason:

The layout test enabled in this change is failing on Sierra.

Committed r216532: <http://trac.webkit.org/changeset/216532>
Comment 9 Nael Ouedraogo 2017-05-11 07:47:45 PDT
Created attachment 309709 [details]
Patch
Comment 10 Nael Ouedraogo 2017-05-11 09:16:50 PDT
> Reverted r216508 for reason:
> 
> The layout test enabled in this change is failing on Sierra.
Sorry for the trouble.

In uploaded patch, I rebased LayoutTests/imported/w3c/web-platform-tests/media-source/mediasource-duration-boundaryconditions-expected.txt so that it passes on Sierra. I added new expected results for El Capitan and I updated Gtk's results.
Comment 11 Chris Dumez 2017-05-12 14:13:34 PDT
Comment on attachment 309709 [details]
Patch

r=me
Comment 12 Nael Ouedraogo 2017-05-15 01:45:42 PDT
Thanks for the review.
Comment 13 WebKit Commit Bot 2017-05-15 02:14:29 PDT
Comment on attachment 309709 [details]
Patch

Clearing flags on attachment: 309709

Committed r216860: <http://trac.webkit.org/changeset/216860>
Comment 14 WebKit Commit Bot 2017-05-15 02:14:31 PDT
All reviewed patches have been landed.  Closing bug.