mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
e65756d2ac
So that we can share the same FormAssistant instance with other components defined in content.js. Updated chrome tests accordingly.
19 lines
592 B
JavaScript
19 lines
592 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;
|
|
});
|
|
|