зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1192128 - In DOM memory reporter, handle WindowID() being a uint64_t. r=mccr8.
--HG-- extra : rebase_source : 0166b09f8800c8ee2509643573e8f85f01d0b3c0
This commit is contained in:
Родитель
c8f63ccc7b
Коммит
63ee27b690
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче