Skip to content

Replace all uses of loadDocuments with HiddenBrowser and add artificial delay#15

Merged
dstillman merged 8 commits intozotero:masterfrom
AbeJellinek:use-hidden-browser
Apr 13, 2023
Merged

Replace all uses of loadDocuments with HiddenBrowser and add artificial delay#15
dstillman merged 8 commits intozotero:masterfrom
AbeJellinek:use-hidden-browser

Conversation

@AbeJellinek
Copy link
Copy Markdown
Member

The new HiddenBrowser is sometimes just a little too fast, so we need to slow
it down artificially for detection to work in all cases where it worked before.
Be nice if we could use Symbols instead of strings so they could be WeakMap
keys and we wouldn't need dispose() at all, but those can't be structuredCloned
across processes.
This fixes tests. Because remoteTranslate.js was loaded by zotero-service.js on
each initialization, it would try to re-register its window actor between tests,
which would cause an error and halt test execution. Better to do what
HiddenBrowser.jsm does and make ourselves a module that only gets initialized
once.
@dstillman dstillman merged commit e91d91b into zotero:master Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants