-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MediaFragmentURIParser rejects valid NPT strings if 'hours' is define…
…d using 1 digit https://bugs.webkit.org/show_bug.cgi?id=160199 Reviewed by Eric Carlson. This patch aligns WebKit with Blink / Chromium and web specification [1]: Merge: https://chromium.googlesource.com/chromium/src/+/139d93b86c305ec60e9f41890cefcb4972dd8e7f [1] https://www.w3.org/TR/media-frags/#naming-time "Minutes and seconds must be specified as exactly two digits, hours and fractional seconds can be any number of digits." As above, and also per RFC2326 [2], 'hours' can be single digit. [2] https://www.ietf.org/rfc/rfc2326.txt Refer: > npt-hh = 1*DIGIT ; any positive number * Source/WebCore/html/MediaFragmentURIParser.cpp: (MediaFragmentURIParser::parseNPTTime): * LayoutTests/media/media-fragments/TC0095.html: Add Test Case * LayoutTests/media/media-fragments/TC0095-expected.txt: Add Test Case Expectation * LayoutTests/media/media-fragments/media-fragments.js: Update Test script Canonical link: https://commits.webkit.org/278951@main
- Loading branch information
Ahmad Saleem
committed
May 18, 2024
1 parent
d41105b
commit 1b08c7e
Showing
4 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
Title: TC0095 | ||
Fragment: 't=0:00:03,0:00:07' | ||
Comment: The media is requested from a to b. | ||
EVENT(canplaythrough) | ||
EXPECTED (video.currentTime == '3') OK | ||
RUN(video.play()) | ||
EVENT(pause) | ||
EXPECTED (video.currentTime - fragmentEndTime <= '0.75') OK | ||
END OF TEST | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src=../media-file.js></script> | ||
<script src=../video-test.js></script> | ||
<script src=media-fragments.js></script> | ||
</head> | ||
<body onload="start()"> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters