From 38b325ecce0d954d1e5f87db3788d4bc9579917f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 17 Mar 2024 13:02:19 -0400 Subject: [PATCH] Raise the limit for detection of stale content scripts --- platform/common/vapi-client.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platform/common/vapi-client.js b/platform/common/vapi-client.js index 9375e88a3..ca125b584 100644 --- a/platform/common/vapi-client.js +++ b/platform/common/vapi-client.js @@ -22,10 +22,6 @@ // For non-background page -/* globals browser */ - -'use strict'; - /******************************************************************************/ // https://github.com/chrisaljoudi/uBlock/issues/456 @@ -203,7 +199,7 @@ vAPI.messaging = { // the main process is no longer reachable: memory leaks and bad // performance become a risk -- especially for long-lived, dynamic // pages. Guard against this. - if ( this.pending.size > 50 ) { + if ( this.pending.size > 1000 ) { vAPI.shutdown.exec(); } const port = this.getPort();