Unreviewed build fix after r220376.
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Aug 2017 16:13:48 +0000 (16:13 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Aug 2017 16:13:48 +0000 (16:13 +0000)
Don't attempt to use isPublicSuffix when building without that
feature enabled.

* dom/Document.cpp:
(WebCore::Document::domainIsRegisterable const):

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

Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp

index a1ef4f85851bf693d527936f09a193eb6689d654..f44f9e8b9412ccbae01236d4084b8e2ead928892 100644 (file)
@@ -1,3 +1,13 @@
+2017-08-08  Brent Fulgham  <bfulgham@apple.com>
+
+        Unreviewed build fix after r220376.
+
+        Don't attempt to use isPublicSuffix when building without that
+        feature enabled.
+
+        * dom/Document.cpp:
+        (WebCore::Document::domainIsRegisterable const):
+
 2017-08-08  Michael Catanzaro  <mcatanzaro@igalia.com>
 
         [CMake] Properly test if compiler supports compiler flags
index b74e5efbc5e9c9c9f0eea119d80c1384f518030f..c893bcd1bfeceee162c253983d99192c71f18e04 100644 (file)
@@ -4475,7 +4475,11 @@ bool Document::domainIsRegisterable(const String& newDomain) const
     if (potentialPublicSuffix.startsWith('.'))
         potentialPublicSuffix.remove(0, 1);
 
+#if ENABLE(PUBLIC_SUFFIX_LIST)
     return !isPublicSuffix(potentialPublicSuffix);
+#else
+    return true;
+#endif
 }
 
 ExceptionOr<void> Document::setDomain(const String& newDomain)