nsDocShell.cpp (basilisk-2021.12.14-source.tar.xz) | : | nsDocShell.cpp (basilisk-2022.01.27-source.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 5386 | skipping to change at line 5386 | |||
} | } | |||
// If we're being flooded with reload requests, we should abort early | // If we're being flooded with reload requests, we should abort early | |||
// from the reload logic. | // from the reload logic. | |||
if (IsReloadFlooding()) { | if (IsReloadFlooding()) { | |||
// Report a warning to the console to tell developers why their reload | // Report a warning to the console to tell developers why their reload | |||
// failed. | // failed. | |||
// Do this only if not yet marked reported so we only report it once per | // Do this only if not yet marked reported so we only report it once per | |||
// flood interval. | // flood interval. | |||
if (!mReloadFloodGuardReported) { | if (!mReloadFloodGuardReported) { | |||
#if 0 | ||||
nsContentUtils::ReportToConsole(nsIScriptError::warningFlag, | nsContentUtils::ReportToConsole(nsIScriptError::warningFlag, | |||
NS_LITERAL_CSTRING("Reload"), | NS_LITERAL_CSTRING("Reload"), | |||
GetDocument(), | GetDocument(), | |||
nsContentUtils::eDOM_PROPERTIES, | nsContentUtils::eDOM_PROPERTIES, | |||
"ReloadFloodingPrevented"); | "ReloadFloodingPrevented"); | |||
#endif | ||||
mReloadFloodGuardReported = true; | mReloadFloodGuardReported = true; | |||
} | } | |||
return NS_OK; | return NS_OK; | |||
} | } | |||
if (!canReload) { | if (!canReload) { | |||
return NS_OK; | return NS_OK; | |||
} | } | |||
/* If you change this part of code, make sure bug 45297 does not re-occur */ | /* If you change this part of code, make sure bug 45297 does not re-occur */ | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |