Title: [275584] trunk/Source/WebCore
Revision
275584
Author
[email protected]
Date
2021-04-06 18:32:14 -0700 (Tue, 06 Apr 2021)

Log Message

Fix logic error in MediaMetadataInit
https://bugs.webkit.org/show_bug.cgi?id=224252
<rdar://problem/76291386>

Reviewed by Eric Carlson.

Fix inverted logic error in decode that would have caused it to return early.

* Modules/mediasession/MediaMetadataInit.h:
(WebCore::MediaMetadataInit::decode):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (275583 => 275584)


--- trunk/Source/WebCore/ChangeLog	2021-04-07 01:28:54 UTC (rev 275583)
+++ trunk/Source/WebCore/ChangeLog	2021-04-07 01:32:14 UTC (rev 275584)
@@ -1,3 +1,16 @@
+2021-04-06  Jean-Yves Avenard  <[email protected]>
+
+        Fix logic error in MediaMetadataInit
+        https://bugs.webkit.org/show_bug.cgi?id=224252
+        <rdar://problem/76291386>
+
+        Reviewed by Eric Carlson.
+
+        Fix inverted logic error in decode that would have caused it to return early.
+
+        * Modules/mediasession/MediaMetadataInit.h:
+        (WebCore::MediaMetadataInit::decode):
+
 2021-04-06  Sihui Liu  <[email protected]>
 
         [ Catalina WK2 Release ] http/tests/IndexedDB/storage-limit-1.https.html is a flaky failure

Modified: trunk/Source/WebCore/Modules/mediasession/MediaMetadataInit.h (275583 => 275584)


--- trunk/Source/WebCore/Modules/mediasession/MediaMetadataInit.h	2021-04-07 01:28:54 UTC (rev 275583)
+++ trunk/Source/WebCore/Modules/mediasession/MediaMetadataInit.h	2021-04-07 01:32:14 UTC (rev 275584)
@@ -57,7 +57,7 @@
 {
     Optional<String> title;
     decoder >> title;
-    if (title)
+    if (!title)
         return { };
 
     Optional<String> artist;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to