mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
Make sure journal slot pointers are properly reset
For when the same page store is recycled later.
This commit is contained in:
parent
873054435b
commit
752191a04f
@ -357,6 +357,7 @@ const PageStore = class {
|
|||||||
}
|
}
|
||||||
this.journal = [];
|
this.journal = [];
|
||||||
this.journalLastUncommittedOrigin = undefined;
|
this.journalLastUncommittedOrigin = undefined;
|
||||||
|
this.journalLastCommitted = this.journalLastUncommitted = -1;
|
||||||
if ( pageStoreJunkyard.length < pageStoreJunkyardMax ) {
|
if ( pageStoreJunkyard.length < pageStoreJunkyardMax ) {
|
||||||
pageStoreJunkyard.push(this);
|
pageStoreJunkyard.push(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user