fx-compat: Fix <tab> keyboard nav, move CE imports to single file (#2756)

Having a single customElements.js file that we import everywhere we need it
helps with organization, and it gives us a single place to put things like the
<tab> fix.

We could switch to using setElementCreationCallback() like Firefox if the number
of imports gets out of hand, but the overhead right now should be small.
This commit is contained in:
Abe Jellinek 2023-04-12 23:09:40 -04:00 committed by GitHub
parent 33ef7b1641
commit 01b9a3c268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 80 additions and 39 deletions

View file

@ -68,7 +68,7 @@
}
// Custom elements
Services.scriptloader.loadSubScript("chrome://global/content/customElements.js", this);
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
</script>
<commandset id="mainCommandSet">