Don't leak a hidden browser for every single imported text/HTML file
It is possible we have been doing this for a very long time. (Only local imports were affected, not snapshot saving.)
This commit is contained in:
parent
2eb5430ed3
commit
190fe8ba05
1 changed files with 1 additions and 0 deletions
|
@ -1345,6 +1345,7 @@ Zotero.Attachments = new function(){
|
||||||
// Chain fulltext indexer inside the charset callback,
|
// Chain fulltext indexer inside the charset callback,
|
||||||
// since it's asynchronous and a prerequisite
|
// since it's asynchronous and a prerequisite
|
||||||
Zotero.Fulltext.indexDocument(browser.contentDocument, itemID);
|
Zotero.Fulltext.indexDocument(browser.contentDocument, itemID);
|
||||||
|
Zotero.Browser.deleteHiddenBrowser(browser);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Since the callback can be called during an import process that uses
|
// Since the callback can be called during an import process that uses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue