Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 4bd356449867a7b8652b9dc66869cdd11ce155ea..1769b070541d4a0e41c744d0daa970b810b8edc5 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4193,6 +4193,8 @@ KURL Document::completeURL(const String& url) const |
KURL Document::completeURLWithOverride(const String& url, const KURL& baseURLOverride) const |
{ |
+ ASSERT(baseURLOverride.isEmpty() || baseURLOverride.isValid()); |
+ |
// Always return a null URL when passed a null string. |
// FIXME: Should we change the KURL constructor to have this behavior? |
// See also [CSS]StyleSheet::completeURL(const String&) |