[Webkit-unassigned] [Bug 173915] [GTK] submit-form not emitted for js based forms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 13 09:15:43 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=173915

--- Comment #4 from Michael Catanzaro <mcatanzaro at igalia.com> ---
>From https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit:

"""
The form's onsubmit event handler (for example, onsubmit="return false;") will not be triggered when invoking this method from Gecko-based applications. In general, it is not guaranteed to be invoked by HTML user agents.

Reference: http://lists.w3.org/Archives/Public/www-dom/2012JanMar/0011.html
"""

We will probably never be able to change this behavior, unless Firefox or Chrome changes first, since it could break websites that expect onsubmit to not be called.

This is a problem for Epiphany because we rely on this event to detect password form submission when deciding whether or not to save passwords. This is causing us to fail to save passwords in exalm's test case above, and also on important websites like accounts.google.com. We need to come up with some way to detect from the web extension when a form is submitted via JavaScript, or we won't be able to fix password saving on these important websites.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170813/9f1d8c1c/attachment.html>


More information about the webkit-unassigned mailing list