1.16 <WebKitFormSubmissionRequest>

Class: <WebKitFormSubmissionRequest>

It derives from <GObject>.

Represents a form submission request.

When a form is about to be submitted in a <WebKitWebView>, the web-view:submit-form signal is emitted. Its request argument contains information about the text fields of the form, that are typically used to store login information, returned as lists by form-submission-request:list-text-fields. You can submit the form with form-submission-request:submit.

Procedures

Method: form-submission-request:list-text-fields self ⇒ %return field-names field-values
Method: list-text-fields self ⇒ %return field-names field-values

Get lists of the text fields contained in the form associated to self.

Get lists with the names and values of the text fields contained in the form associated to self. Note that names and values may be #f.

If this function returns #f, then both field-names and field-values will be empty.

self

Passed: a <WebKitFormSubmissionRequest>.

a <WebKitFormSubmissionRequest>

%return

Returned: a boolean.

#t if the form contains text fields, or #f otherwise

field-names

Returned: a vector, each a string.

names of the text fields in the form

field-values

Returned: a vector, each a string.

values of the text fields in the form

Method: form-submission-request:submit self
Method: submit self

Continue the form submission.

self

Passed: a <WebKitFormSubmissionRequest>.

a <WebKitFormSubmissionRequest>