Closed
Bug 1396640
Opened 7 years ago
Closed 7 years ago
Datalist-based text field completion does not work in "about:addons"
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1387624
People
(Reporter: alexander-mozilla, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20170831165232
Steps to reproduce:
I just added a dynamic <datalist> to the "options_ui" page of my WebExtension and while everything seemed to be correctly set up, there is no autocompletion popup appearing below the text field (<input type="text" />) on the extension's options page.
Actual results:
However when double-clicking into the text field (which would normally show the popup), the following message is logged from line 278 of browser.xml into the debugging console of "about:addons":
Empty string passed to getElementById().
Opening the debugger at that line I see:
<property name="autoCompletePopup"
onget="return document.getElementById(this.getAttribute('autocompletepopup'))"
readonly="true"/>
Does this mean that registering an autocomplete popup container for "about:addons" was simply forgotten?
This problem does not happen when opening the same "option_ui" page in a separate browser tab.
Expected results:
The autocomplete popup with the items to autocomplete should appear.
Example of a minimal extension that should reproduce this issue:
# manifest.json
{
"manifest_version": 2,
"name": "Demo extension",
"description": "Test Test Test",
"version": "1.0",
"options_ui": {
"page": "options.html"
}
}
# options.html
<!DOCTYPE html>
<html>
<head>
<title>Options page</title>
</head>
<body>
<datalist id="stuff">
<option value="What" />
<option value="am" />
<option value="I" />
<option value="doing" />
<option value="here?" />
</datalist>
<input type="text" list="stuff" />
</body>
</html>
If you load the above as a WebExtension, you should be able to see the auto-complete items when visiting "options.html" directly, but not when visiting it through the preference page of the extension on "about:addons".
Updated•7 years ago
|
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•