dba4df9326
* fix: invoke the window open handler for _blank links * feat: add disposition to setWindowOpenHandler details * fix: pass postData to new-window event * postData can be heterogeneous * fix type of postBody * fix type of UploadFile and UploadRawData to be discriminated unions * exclude the empty string from additionalFeatures * add a test * add postBody and referrer to setWindowOpenHandler args * appease typescript * Update api-browser-window-spec.ts * update snapshots
910 B
910 B
PostBody Object
data
(UploadRawData | UploadFile)[] - The post data to be sent to the new window.contentType
String - Thecontent-type
header used for the data. One ofapplication/x-www-form-urlencoded
ormultipart/form-data
. Corresponds to theenctype
attribute of the submitted HTML form.boundary
String (optional) - The boundary used to separate multiple parts of the message. Only valid whencontentType
ismultipart/form-data
.
Note that keys starting with --
are not currently supported. For example, this will errantly submit as multipart/form-data
when nativeWindowOpen
is set to false
in webPreferences:
<form
target="_blank"
method="POST"
enctype="application/x-www-form-urlencoded"
action="https://postman-echo.com/post"
>
<input type="text" name="--theKey">
<input type="submit">
</form>