Title: [231997] trunk/Source/WebCore
Revision
231997
Author
[email protected]
Date
2018-05-19 08:12:29 -0700 (Sat, 19 May 2018)

Log Message

Unreviewed, rolling out r231996.
https://bugs.webkit.org/show_bug.cgi?id=185799

 Broke the GTK build (Requested by eric_carlson on #webkit).

Reverted changeset:

"Improve NowPlaying "title""
https://bugs.webkit.org/show_bug.cgi?id=185680
https://trac.webkit.org/changeset/231996

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (231996 => 231997)


--- trunk/Source/WebCore/ChangeLog	2018-05-19 04:22:03 UTC (rev 231996)
+++ trunk/Source/WebCore/ChangeLog	2018-05-19 15:12:29 UTC (rev 231997)
@@ -1,3 +1,16 @@
+2018-05-19  Commit Queue  <[email protected]>
+
+        Unreviewed, rolling out r231996.
+        https://bugs.webkit.org/show_bug.cgi?id=185799
+
+         Broke the GTK build (Requested by eric_carlson on #webkit).
+
+        Reverted changeset:
+
+        "Improve NowPlaying "title""
+        https://bugs.webkit.org/show_bug.cgi?id=185680
+        https://trac.webkit.org/changeset/231996
+
 2018-05-18  Eric Carlson  <[email protected]>
 
         Improve NowPlaying "title"

Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (231996 => 231997)


--- trunk/Source/WebCore/html/HTMLMediaElement.cpp	2018-05-19 04:22:03 UTC (rev 231996)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp	2018-05-19 15:12:29 UTC (rev 231997)
@@ -72,7 +72,6 @@
 #include "PageGroup.h"
 #include "PlatformMediaSessionManager.h"
 #include "ProgressTracker.h"
-#include "PublicSuffix.h"
 #include "RenderLayerCompositor.h"
 #include "RenderTheme.h"
 #include "RenderVideo.h"
@@ -7453,25 +7452,17 @@
     if (!document().page() || document().page()->usesEphemeralSession())
         return emptyString();
 
-    auto title = String(attributeWithoutSynchronization(titleAttr)).stripWhiteSpace().simplifyWhiteSpace();
-    if (!title.isEmpty())
-        return title;
+    if (hasAttributeWithoutSynchronization(titleAttr)) {
+        auto title = attributeWithoutSynchronization(titleAttr);
+        if (!title.isEmpty())
+            return title;
+    }
 
-    title = document().title().stripWhiteSpace().simplifyWhiteSpace();
+    auto title = document().title();
     if (!title.isEmpty())
         return title;
 
-    title = m_currentSrc.host();
-#if ENABLE(PUBLIC_SUFFIX_LIST)
-    if (!title.isEmpty()) {
-        title = decodeHostName(title);
-        auto domain = topPrivatelyControlledDomain(title);
-        if (!domain.isEmpty())
-            title = domain;
-    }
-#endif
-
-    return title;
+    return m_currentSrc.host();
 }
 
 uint64_t HTMLMediaElement::mediaSessionUniqueIdentifier() const

Modified: trunk/Source/WebCore/platform/PublicSuffix.h (231996 => 231997)


--- trunk/Source/WebCore/platform/PublicSuffix.h	2018-05-19 04:22:03 UTC (rev 231996)
+++ trunk/Source/WebCore/platform/PublicSuffix.h	2018-05-19 15:12:29 UTC (rev 231997)
@@ -34,7 +34,6 @@
 
 WEBCORE_EXPORT bool isPublicSuffix(const String& domain);
 WEBCORE_EXPORT String topPrivatelyControlledDomain(const String& domain);
-String decodeHostName(const String& domain);
 
 } // namespace WebCore
 

Modified: trunk/Source/WebCore/platform/mac/PublicSuffixMac.mm (231996 => 231997)


--- trunk/Source/WebCore/platform/mac/PublicSuffixMac.mm	2018-05-19 04:22:03 UTC (rev 231996)
+++ trunk/Source/WebCore/platform/mac/PublicSuffixMac.mm	2018-05-19 15:12:29 UTC (rev 231997)
@@ -60,11 +60,6 @@
     return String();
 }
 
-String decodeHostName(const String& domain)
-{
-    return decodeHostName(static_cast<NSString*>(domain));
 }
 
-}
-
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to