fx-compat: Change autocomplete-input load method
This commit is contained in:
parent
0079fbdb08
commit
e26fd18450
1 changed files with 5 additions and 4 deletions
|
@ -26,10 +26,11 @@
|
|||
"use strict";
|
||||
|
||||
{
|
||||
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
// Load specific element because customElements.js loads on element creation only
|
||||
Services.scriptloader.loadSubScript("chrome://global/content/elements/autocomplete-input.js", this);
|
||||
// The autocomplete-input CE is defined lazily. Create one now to get
|
||||
// autocomplete-input defined, allowing us to inherit from it.
|
||||
if (!customElements.get("autocomplete-input")) {
|
||||
delete document.createXULElement("autocomplete-input");
|
||||
}
|
||||
|
||||
/**
|
||||
* Extends AutocompleteInput to fix document.activeElement checks that
|
||||
|
|
Loading…
Reference in a new issue