зеркало из https://github.com/mozilla/gecko-dev.git
19 строки
593 B
JavaScript
19 строки
593 B
JavaScript
dump("====================== Content Script Loaded =======================\n");
|
|
|
|
let assistant = Content._formAssistant;
|
|
|
|
AsyncTests.add("TestRemoteAutocomplete:Click", function(aMessage, aJson) {
|
|
let element = content.document.getElementById(aJson.id);
|
|
assistant.open(element);
|
|
assistant._executeDelayed(function(assistant) {
|
|
sendAsyncMessage("FormAssist:AutoComplete", assistant._getJSON());
|
|
});
|
|
return true;
|
|
});
|
|
|
|
AsyncTests.add("TestRemoteAutocomplete:Check", function(aMessage, aJson) {
|
|
let element = content.document.getElementById(aJson.id);
|
|
return element.value;
|
|
});
|
|
|