mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1192128 - In DOM memory reporter, handle WindowID() being a uint64_t. r=mccr8.
This commit is contained in:
parent
d67f59b6ae
commit
e27e95ebeb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user