Bug 1192128 - In DOM memory reporter, handle WindowID() being a uint64_t. r=mccr8.

This commit is contained in:
Nicholas Nethercote 2015-08-06 22:09:30 -07:00
parent d67f59b6ae
commit e27e95ebeb

View File

@ -169,7 +169,7 @@ AppendWindowURI(nsGlobalWindow *aWindow, nsACString& aStr, bool aAnonymize)
if (uri) {
if (aAnonymize && !aWindow->IsChromeWindow()) {
aStr.AppendPrintf("<anonymized-%d>", aWindow->WindowID());
aStr.AppendPrintf("<anonymized-%llu>", aWindow->WindowID());
} else {
nsCString spec;
uri->GetSpec(spec);
@ -278,9 +278,7 @@ CollectWindowReports(nsGlobalWindow *aWindow,
if (top) {
windowPath += NS_LITERAL_CSTRING("top(");
AppendWindowURI(top, windowPath, aAnonymize);
windowPath += NS_LITERAL_CSTRING(", id=");
windowPath.AppendInt(top->WindowID());
windowPath += NS_LITERAL_CSTRING(")");
windowPath.AppendPrintf(", id=%llu)", top->WindowID());
aTopWindowPaths->Put(aWindow->WindowID(), windowPath);