Index: Source/core/fileapi/File.h |
diff --git a/Source/core/fileapi/File.h b/Source/core/fileapi/File.h |
index 615286101720ba7df1f02f93e1b32c2e7030b323..f2dd0feabfad11e20a5ce0178368afa988f6002e 100644 |
--- a/Source/core/fileapi/File.h |
+++ b/Source/core/fileapi/File.h |
@@ -150,7 +150,8 @@ private: |
double lastModifiedMS() const; |
#if ENABLE(ASSERT) |
- bool hasValidFileSystemURL() const { return hasBackingFile(); } |
+ // Instances backed by a file must have an empty file system URL. |
+ bool hasValidFileSystemURL() const { return !hasBackingFile() || m_fileSystemURL.isEmpty(); } |
// Instances not backed by a file must have an empty path set. |
bool hasValidFilePath() const { return hasBackingFile() || m_path.isEmpty(); } |
#endif |