WebKit2.WebView::submit-form

connect('submit-form', function (webView, request: WebKit2.FormSubmissionRequest, ): void);
  

This signal is emitted when a form is about to be submitted. The request argument passed contains information about the text fields of the form. This is typically used to store login information that can be used later to pre-fill the form. The form will not be submitted until WebKit2.FormSubmissionRequest.prototype.submit is called.

It is possible to handle the form submission request asynchronously, by simply calling g_object_ref() on the request argument and calling WebKit2.FormSubmissionRequest.prototype.submit when done to continue with the form submission. If the last reference is removed on a WebKit2.FormSubmissionRequest and the form has not been submitted, WebKit2.FormSubmissionRequest.prototype.submit will be called.

webView

instance of WebKit2.WebView that is emitting the signal

request

a WebKit2.FormSubmissionRequest