Title: [289323] branches/safari-613-branch
Revision
289323
Author
[email protected]
Date
2022-02-07 18:56:33 -0800 (Mon, 07 Feb 2022)

Log Message

Cherry-pick r288827. rdar://problem/87815745

    Source/WebCore:
    Changed playbackRate and defaultPlaybackRate from unrestricted double
    to double.
    https://bugs.webkit.org/show_bug.cgi?id=235174
    rdar://problem/87815745

    Patch by Takeshi Sone <[email protected]> on 2022-01-31
    Reviewed by Eric Carlson.

    Test: media/video-playbackrate-undefined.html

    * html/HTMLMediaElement.idl:

    LayoutTests:
    Added a test to verify that setting undefined to video.playbackRate
    raises an exception.
    https://bugs.webkit.org/show_bug.cgi?id=235174
    rdar://problem/87815745

    Patch by Takeshi Sone <[email protected]> on 2022-01-31
    Reviewed by Eric Carlson.

    * media/video-playbackrate-undefined-expected.txt: Added.
    * media/video-playbackrate-undefined.html: Added.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288827 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Added Paths

Diff

Modified: branches/safari-613-branch/LayoutTests/ChangeLog (289322 => 289323)


--- branches/safari-613-branch/LayoutTests/ChangeLog	2022-02-08 02:56:29 UTC (rev 289322)
+++ branches/safari-613-branch/LayoutTests/ChangeLog	2022-02-08 02:56:33 UTC (rev 289323)
@@ -1,5 +1,48 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288827. rdar://problem/87815745
+
+    Source/WebCore:
+    Changed playbackRate and defaultPlaybackRate from unrestricted double
+    to double.
+    https://bugs.webkit.org/show_bug.cgi?id=235174
+    rdar://problem/87815745
+    
+    Patch by Takeshi Sone <[email protected]> on 2022-01-31
+    Reviewed by Eric Carlson.
+    
+    Test: media/video-playbackrate-undefined.html
+    
+    * html/HTMLMediaElement.idl:
+    
+    LayoutTests:
+    Added a test to verify that setting undefined to video.playbackRate
+    raises an exception.
+    https://bugs.webkit.org/show_bug.cgi?id=235174
+    rdar://problem/87815745
+    
+    Patch by Takeshi Sone <[email protected]> on 2022-01-31
+    Reviewed by Eric Carlson.
+    
+    * media/video-playbackrate-undefined-expected.txt: Added.
+    * media/video-playbackrate-undefined.html: Added.
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-31  Takeshi Sone  <[email protected]>
+
+            Added a test to verify that setting undefined to video.playbackRate
+            raises an exception.
+            https://bugs.webkit.org/show_bug.cgi?id=235174
+            rdar://problem/87815745
+
+            Reviewed by Eric Carlson.
+
+            * media/video-playbackrate-undefined-expected.txt: Added.
+            * media/video-playbackrate-undefined.html: Added.
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288801. rdar://problem/88186663
 
     (REGRESSION)[IFC][RTL] wpt/css/css-text/white-space/trailing-space-and-text-alignment-rtl-003.html

Added: branches/safari-613-branch/LayoutTests/media/video-playbackrate-undefined-expected.txt (0 => 289323)


--- branches/safari-613-branch/LayoutTests/media/video-playbackrate-undefined-expected.txt	                        (rev 0)
+++ branches/safari-613-branch/LayoutTests/media/video-playbackrate-undefined-expected.txt	2022-02-08 02:56:33 UTC (rev 289323)
@@ -0,0 +1,5 @@
+
+TEST(video.playbackRate = undefined) THROWS('TypeError: The provided value is non-finite') OK
+TEST(video.defaultPlaybackRate = undefined) THROWS('TypeError: The provided value is non-finite') OK
+END OF TEST
+

Added: branches/safari-613-branch/LayoutTests/media/video-playbackrate-undefined.html (0 => 289323)


--- branches/safari-613-branch/LayoutTests/media/video-playbackrate-undefined.html	                        (rev 0)
+++ branches/safari-613-branch/LayoutTests/media/video-playbackrate-undefined.html	2022-02-08 02:56:33 UTC (rev 289323)
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Setting undefined to playbackRate and defaultPlaybackRate</title>
+    </head>
+    <body>
+        <video></video>
+        <script src=""
+        <script>
+            testException(
+                "video.playbackRate = undefined",
+                "'TypeError: The provided value is non-finite'"
+            );
+            testException(
+                "video.defaultPlaybackRate = undefined",
+                "'TypeError: The provided value is non-finite'"
+            );
+            endTest();
+        </script>
+    </body>
+</html>

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289322 => 289323)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:56:29 UTC (rev 289322)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:56:33 UTC (rev 289323)
@@ -1,5 +1,49 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288827. rdar://problem/87815745
+
+    Source/WebCore:
+    Changed playbackRate and defaultPlaybackRate from unrestricted double
+    to double.
+    https://bugs.webkit.org/show_bug.cgi?id=235174
+    rdar://problem/87815745
+    
+    Patch by Takeshi Sone <[email protected]> on 2022-01-31
+    Reviewed by Eric Carlson.
+    
+    Test: media/video-playbackrate-undefined.html
+    
+    * html/HTMLMediaElement.idl:
+    
+    LayoutTests:
+    Added a test to verify that setting undefined to video.playbackRate
+    raises an exception.
+    https://bugs.webkit.org/show_bug.cgi?id=235174
+    rdar://problem/87815745
+    
+    Patch by Takeshi Sone <[email protected]> on 2022-01-31
+    Reviewed by Eric Carlson.
+    
+    * media/video-playbackrate-undefined-expected.txt: Added.
+    * media/video-playbackrate-undefined.html: Added.
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-31  Takeshi Sone  <[email protected]>
+
+            Changed playbackRate and defaultPlaybackRate from unrestricted double
+            to double.
+            https://bugs.webkit.org/show_bug.cgi?id=235174
+            rdar://problem/87815745
+
+            Reviewed by Eric Carlson.
+
+            Test: media/video-playbackrate-undefined.html
+
+            * html/HTMLMediaElement.idl:
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288801. rdar://problem/88186663
 
     (REGRESSION)[IFC][RTL] wpt/css/css-text/white-space/trailing-space-and-text-alignment-rtl-003.html

Modified: branches/safari-613-branch/Source/WebCore/html/HTMLMediaElement.idl (289322 => 289323)


--- branches/safari-613-branch/Source/WebCore/html/HTMLMediaElement.idl	2022-02-08 02:56:29 UTC (rev 289322)
+++ branches/safari-613-branch/Source/WebCore/html/HTMLMediaElement.idl	2022-02-08 02:56:33 UTC (rev 289323)
@@ -75,8 +75,8 @@
     readonly attribute unrestricted double duration;
     Date getStartDate();
     readonly attribute boolean paused;
-    attribute unrestricted double defaultPlaybackRate;
-    attribute unrestricted double playbackRate;
+    attribute double defaultPlaybackRate;
+    attribute double playbackRate;
     readonly attribute TimeRanges played;
     readonly attribute TimeRanges seekable;
     readonly attribute boolean ended;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to