Skip to content

Commit d28eb69

Browse files
authored
Merge pull request #5355 from Tyriar/tyriar/3634
Add note about reverse tabnapping
2 parents ee0a3de + 4c0c255 commit d28eb69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addons/addon-web-links/typings/addon-web-links.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ declare module '@xterm/addon-web-links' {
1414
/**
1515
* Creates a new web links addon.
1616
* @param handler The callback when the link is called.
17+
*
18+
* Note that this may not work when the terminal is hosted inside an iframe,
19+
* in that case provide a custom handler in that case being mindful of
20+
* possible security issues like reverse tabnapping.
1721
* @param options Options for the link provider.
1822
*/
1923
constructor(handler?: (event: MouseEvent, uri: string) => void, options?: ILinkProviderOptions);

0 commit comments

Comments
 (0)