mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Bug 1159003 - setResourceTimingBufferSize shouldn't affect user timing, but we should clean user markers if we have memory pressure, r=bz
This commit is contained in:
parent
6beccbf6ce
commit
bc3eb89dee
5 changed files with 40 additions and 17 deletions
|
|
@ -6441,14 +6441,23 @@ WorkerPrivate::MemoryPressureInternal()
|
|||
{
|
||||
AssertIsOnWorkerThread();
|
||||
|
||||
RefPtr<Console> console = mScope ? mScope->GetConsoleIfExists() : nullptr;
|
||||
if (console) {
|
||||
console->ClearStorage();
|
||||
if (mScope) {
|
||||
RefPtr<Console> console = mScope->GetConsoleIfExists();
|
||||
if (console) {
|
||||
console->ClearStorage();
|
||||
}
|
||||
|
||||
RefPtr<Performance> performance = mScope->GetPerformanceIfExists();
|
||||
if (performance) {
|
||||
performance->MemoryPressure();
|
||||
}
|
||||
}
|
||||
|
||||
console = mDebuggerScope ? mDebuggerScope->GetConsoleIfExists() : nullptr;
|
||||
if (console) {
|
||||
console->ClearStorage();
|
||||
if (mDebuggerScope) {
|
||||
RefPtr<Console> console = mDebuggerScope->GetConsoleIfExists();
|
||||
if (console) {
|
||||
console->ClearStorage();
|
||||
}
|
||||
}
|
||||
|
||||
for (uint32_t index = 0; index < mChildWorkers.Length(); index++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue