Open Bug 665728 Opened 13 years ago Updated 1 year ago

Untrusted events should trigger datalist popup

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

People

(Reporter: vingtetun, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached file testcase (obsolete) —
Trying to open an autocomplete list by simulating a VK_DOWN on a input with an attached datalist does not work from the web content side. I know a decision has been taken to not show autocomplete popup on untrusted event in bug 527935 but since all the data of a datalist already lives on the page I don't think this bug applies to it. As a result the testcase should work.
I am encountering this issue too. (same testcase as Vivien Nicolas) My goal is to open the autocomplete list for an <input type="text" list="some-datalist"/> when it receives focus. Since the datalist contents are on the page, why can't I do this (even with autocomplete="off")? I understand the security implications if the autocomplete values are from the browser, but in this case they are from the datalist element on the page. I would appreciate any assistance. Thanks in advance, Dev
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Blocks: input-list

If there's still interest in this, please submit a revised testcase.

Uncaught TypeError: evt.initKeyEvent is not a function
    show https://bug665728.bmoattachments.org/attachment.cgi?id=540596:9
    onload https://bug665728.bmoattachments.org/attachment.cgi?id=540596:1
attachment.cgi:9:13
    show https://bug665728.bmoattachments.org/attachment.cgi?id=540596:9
    onload https://bug665728.bmoattachments.org/attachment.cgi?id=540596:1
Severity: normal → S3

Would be nice to get this implemented as there are many people wondering how to work around this in Firefox:
https://stackoverflow.com/a/70558223/3057764
https://stackoverflow.com/questions/75944168/datalist-suggestions-on-input-in-firefox

Attachment #540596 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: