Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 646a36b53a65645d7d145b0ce1565c7bb7008fb3..0bc54b1b9749f9fc418cff2509343ec5083135b4 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4192,6 +4192,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&) |