зеркало из https://github.com/mozilla/pjs.git
Bug 229476 about:cache title capitalization inconsistent
patch by jmd@pobox.com r=bz sr=darin
This commit is contained in:
Родитель
1a8048a611
Коммит
c23df0d02b
|
@ -522,7 +522,7 @@ nsMemoryCacheDeviceInfo::GetUsageReport(char ** result)
|
|||
NS_ENSURE_ARG_POINTER(result);
|
||||
nsCString buffer;
|
||||
|
||||
buffer.Append("\n<tr>\n<td><b>Inactive Storage:</b></td>\n<td><tt> ");
|
||||
buffer.Append("\n<tr>\n<td><b>Inactive storage:</b></td>\n<td><tt> ");
|
||||
buffer.AppendInt(mDevice->mInactiveSize / 1024);
|
||||
buffer.Append(" KiB</tt></td>\n</tr>\n");
|
||||
|
||||
|
|
|
@ -177,21 +177,21 @@ nsAboutCache::VisitDevice(const char *deviceID,
|
|||
|
||||
mBuffer.Append("<table>\n");
|
||||
|
||||
mBuffer.Append("\n<tr>\n<td><b>Number of entries: </b></td>\n");
|
||||
mBuffer.Append("\n<tr>\n<td><b>Number of entries:</b></td>\n");
|
||||
value = 0;
|
||||
deviceInfo->GetEntryCount(&value);
|
||||
mBuffer.Append("<td><tt>");
|
||||
mBuffer.AppendInt(value);
|
||||
mBuffer.Append("</tt></td>\n</tr>\n");
|
||||
|
||||
mBuffer.Append("\n<tr>\n<td><b>Maximum storage size: </b></td>\n");
|
||||
mBuffer.Append("\n<tr>\n<td><b>Maximum storage size:</b></td>\n");
|
||||
value = 0;
|
||||
deviceInfo->GetMaximumSize(&value);
|
||||
mBuffer.Append("<td><tt>");
|
||||
mBuffer.AppendInt(value/1024);
|
||||
mBuffer.Append(" KiB</tt></td>\n</tr>\n");
|
||||
|
||||
mBuffer.Append("\n<tr>\n<td><b>Storage in use: </b></td>\n");
|
||||
mBuffer.Append("\n<tr>\n<td><b>Storage in use:</b></td>\n");
|
||||
mBuffer.Append("<td><tt>");
|
||||
value = 0;
|
||||
deviceInfo->GetTotalSize(&value);
|
||||
|
@ -251,7 +251,7 @@ nsAboutCache::VisitEntry(const char *deviceID,
|
|||
// Entry start...
|
||||
|
||||
// URI
|
||||
mBuffer.Assign("<b> Key: </b><a href=\"");
|
||||
mBuffer.Assign("<b> Key:</b><a href=\"");
|
||||
mBuffer.Append(url);
|
||||
mBuffer.Append("\">");
|
||||
mBuffer.Append(escapedKey);
|
||||
|
@ -262,15 +262,15 @@ nsAboutCache::VisitEntry(const char *deviceID,
|
|||
PRUint32 length = 0;
|
||||
entryInfo->GetDataSize(&length);
|
||||
|
||||
mBuffer.Append("\n<b> Data size: </b>");
|
||||
mBuffer.Append("\n<b> Data size:</b>");
|
||||
mBuffer.AppendInt(length);
|
||||
mBuffer.Append(" Bytes");
|
||||
mBuffer.Append(" bytes");
|
||||
|
||||
// Number of accesses
|
||||
PRInt32 fetchCount = 0;
|
||||
entryInfo->GetFetchCount(&fetchCount);
|
||||
|
||||
mBuffer.Append("\n<b> Fetch count: </b>");
|
||||
mBuffer.Append("\n<b> Fetch count:</b>");
|
||||
mBuffer.AppendInt(fetchCount);
|
||||
|
||||
// vars for reporting time
|
||||
|
@ -278,7 +278,7 @@ nsAboutCache::VisitEntry(const char *deviceID,
|
|||
PRUint32 t;
|
||||
|
||||
// Last modified time
|
||||
mBuffer.Append("\n<b> Last Modified: </b>");
|
||||
mBuffer.Append("\n<b> Last modified:</b>");
|
||||
entryInfo->GetLastModified(&t);
|
||||
if (t) {
|
||||
PrintTimeString(buf, sizeof(buf), t);
|
||||
|
@ -287,7 +287,7 @@ nsAboutCache::VisitEntry(const char *deviceID,
|
|||
mBuffer.Append("No last modified time");
|
||||
|
||||
// Expires time
|
||||
mBuffer.Append("\n<b> Expires: </b>");
|
||||
mBuffer.Append("\n<b> Expires:</b>");
|
||||
entryInfo->GetExpirationTime(&t);
|
||||
if (t < 0xFFFFFFFF) {
|
||||
PrintTimeString(buf, sizeof(buf), t);
|
||||
|
|
Загрузка…
Ссылка в новой задаче