From 18f004eab19f5613c2a336041a0166ed95975b04 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 18 Nov 2020 23:06:32 -0800 Subject: [PATCH] docs: fix relative link (#26585) --- docs/api/web-contents.md | 6 +++--- docs/api/window-open.md | 2 +- docs/tutorial/security.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 5e5f4f7c43fc..599a46b1e6c0 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -155,7 +155,7 @@ Returns: be set. If no post data is to be sent, the value will be `null`. Only defined when the window is being created by a form that set `target=_blank`. -Deprecated in favor of [`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandler-handler). +Deprecated in favor of [`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandlerhandler). Emitted when the page requests to open a new window for a `url`. It could be requested by `window.open` or an external link like ``. @@ -203,7 +203,7 @@ Returns: BrowserWindow. They are merged in increasing precedence: options inherited from the parent, parsed options from the `features` string from `window.open()`, and options given by - [`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandler-handler). + [`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandlerhandler). Unrecognized options are not filtered out. * `additionalFeatures` String[] - The non-standard features (features not handled Chromium or Electron) _Deprecated_ @@ -220,7 +220,7 @@ Returns: Emitted _after_ successful creation of a window via `window.open` in the renderer. Not emitted if the creation of the window is canceled from -[`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandler-handler). +[`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandlerhandler). See [`window.open()`](window-open.md) for more details and how to use this in conjunction with `webContents.setWindowOpenHandler`. diff --git a/docs/api/window-open.md b/docs/api/window-open.md index a5c63591190a..2323731d1cda 100644 --- a/docs/api/window-open.md +++ b/docs/api/window-open.md @@ -26,7 +26,7 @@ BrowserWindow constructor options are set by, in increasing precedence order: options inherited from the parent, parsed options from the `features` string from `window.open()`, security-related webPreferences inherited from the parent, and options given by -[`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandler-handler). +[`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandlerhandler). Note that `webContents.setWindowOpenHandler` has final say and full privilege because it is invoked in the main process. diff --git a/docs/tutorial/security.md b/docs/tutorial/security.md index 3f369703d424..f2708086cf0b 100644 --- a/docs/tutorial/security.md +++ b/docs/tutorial/security.md @@ -818,7 +818,7 @@ which potential security issues are not as widely known. [browser-view]: ../api/browser-view.md [webview-tag]: ../api/webview-tag.md [web-contents]: ../api/web-contents.md -[window-open-handler]: ../api/web-contents.md#contentssetwindowopenhandler-handler +[window-open-handler]: ../api/web-contents.md#contentssetwindowopenhandlerhandler [will-navigate]: ../api/web-contents.md#event-will-navigate [open-external]: ../api/shell.md#shellopenexternalurl-options [sandbox]: ../api/sandbox-option.md