Skip to content

Commit 7438c55

Browse files
committed
Backed out changeset f2fbfecc33d1 (bug 1724336) for causing mochitest failures at URLPreloader.h CLOSED TREE
UltraBlame original commit: 7dd2e5db976d861f69363f886bfabeabb8807962
1 parent d5cd6c4 commit 7438c55

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

js/xpconnect/loader/URLPreloader.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ class URLPreloader final : public nsIMemoryReporter {
153153
explicit CacheKey(nsIFile* file) : mType(TypeFile) {
154154
nsString path;
155155
MOZ_ALWAYS_SUCCEEDS(file->GetPath(path));
156-
MOZ_DIAGNOSTIC_ASSERT(path.Length() > 0);
157156
CopyUTF16toUTF8(path, mPath);
158157
}
159158

@@ -163,7 +162,6 @@ class URLPreloader final : public nsIMemoryReporter {
163162
template <typename Buffer>
164163
void Code(Buffer& buffer) {
165164
buffer.codeUint8(*reinterpret_cast<uint8_t*>(&mType));
166-
MOZ_DIAGNOSTIC_ASSERT(mPath.Length() > 0);
167165
buffer.codeString(mPath);
168166
}
169167

0 commit comments

Comments
 (0)