Fix segfault when hyphenating text in main process (#3388)

This commit is contained in:
Abe Jellinek 2023-09-14 02:48:50 -04:00 committed by GitHub
parent 78fe68164f
commit 8d825f641a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<browser remote="false" />
<script>
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
document.querySelector('browser').loadURI('chrome://zotero-unit/content/hyphenationTestContent.html', {
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal()
});
</script>
</window>