mirror of https://github.com/gorhill/uBlock.git
Raise the limit for detection of stale content scripts
This commit is contained in:
parent
fc1f0b771a
commit
38b325ecce
|
@ -22,10 +22,6 @@
|
||||||
|
|
||||||
// For non-background page
|
// For non-background page
|
||||||
|
|
||||||
/* globals browser */
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
// https://github.com/chrisaljoudi/uBlock/issues/456
|
// https://github.com/chrisaljoudi/uBlock/issues/456
|
||||||
|
@ -203,7 +199,7 @@ vAPI.messaging = {
|
||||||
// the main process is no longer reachable: memory leaks and bad
|
// the main process is no longer reachable: memory leaks and bad
|
||||||
// performance become a risk -- especially for long-lived, dynamic
|
// performance become a risk -- especially for long-lived, dynamic
|
||||||
// pages. Guard against this.
|
// pages. Guard against this.
|
||||||
if ( this.pending.size > 50 ) {
|
if ( this.pending.size > 1000 ) {
|
||||||
vAPI.shutdown.exec();
|
vAPI.shutdown.exec();
|
||||||
}
|
}
|
||||||
const port = this.getPort();
|
const port = this.getPort();
|
||||||
|
|
Loading…
Reference in New Issue