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

--HG--
extra : rebase_source : 0166b09f8800c8ee2509643573e8f85f01d0b3c0
This commit is contained in:
Nicholas Nethercote 2015-08-06 22:09:30 -07:00
parent c8f63ccc7b
commit 63ee27b690

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);