document the loadURL promise pre-attached rejection handler (#18043)

This commit is contained in:
bughit 2019-05-01 17:04:22 -04:00 committed by John Kleinschmidt
parent e736d04e7f
commit 493af7f84c

View file

@ -794,7 +794,7 @@ Custom value can be returned by setting `event.returnValue`.
Returns `Promise<void>` - the promise will resolve when the page has finished loading
(see [`did-finish-load`](web-contents.md#event-did-finish-load)), and rejects
if the page fails to load (see
[`did-fail-load`](web-contents.md#event-did-fail-load)).
[`did-fail-load`](web-contents.md#event-did-fail-load)). A noop rejection handler is already attached, which avoids unhandled rejection errors.
Loads the `url` in the window. The `url` must contain the protocol prefix,
e.g. the `http://` or `file://`. If the load should bypass http cache then