From 8636d0f82014b2107281de9d2e7d2827f58e3921 Mon Sep 17 00:00:00 2001 From: RyotaK <49341894+Ry0taK@users.noreply.github.com> Date: Sat, 17 Dec 2022 01:31:11 +0900 Subject: [PATCH] Add allowNonHttpProtocols to typings --- typings/xterm.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/typings/xterm.d.ts b/typings/xterm.d.ts index b652491a..836299de 100644 --- a/typings/xterm.d.ts +++ b/typings/xterm.d.ts @@ -1179,6 +1179,13 @@ declare module 'xterm' { * @param range The buffer range of the link. */ leave?(event: MouseEvent, text: string, range: IBufferRange): void; + + /** + * Whether to allow the use of non HTTP URLs in OscLinkProvider. When false, any usage of non + * HTTP URLs will be ignored. Enabling this option without proper protection in activate function + * may allow XSS. + */ + allowNonHttpProtocols?: boolean; } /**