[webkit-gtk] Ignoring form submission doesn't work in 2.14
vfaronov at gmail.com
Fri Jan 13 13:08:10 PST 2017
On Fri, Jan 13, 2017 at 7:39 PM, Michael Catanzaro
<mcatanzaro at igalia.com> wrote:
> Do you just keep the references forever... so your program's
> correctness depends on an intentional memory leak?
> Maybe this indicates that our forms API is insufficient.
Perhaps. Ideally I'd want something like preventDefault() on a DOM submit event.
If I connect to decide-policy  and then call
webkit_policy_decision_ignore , then the submit-form signal is not
emitted, so I can't get the submitted data. (Actually, I can with a
hack: ensure that all forms have method=get, and parse the query
string out of the WebKitURIRequest. I'll probably go that way if I
don't find a better solution.)
By the way, another problem I have with the API is that
webkit_form_submission_request_get_text_fields  only seems to
return the values of text inputs (type=text, type=password etc., but
not type=checkbox or select). Is this intentional?
More information about the webkit-gtk