enhance(frontend): window.openやaタグにnoopenerオプションをつける (MisskeyIO#283)
This commit is contained in:
		| @@ -61,7 +61,7 @@ function onContextmenu(ev) { | ||||
| 		icon: 'ti ti-external-link', | ||||
| 		text: i18n.ts.openInNewTab, | ||||
| 		action: () => { | ||||
| 			window.open(props.to, '_blank'); | ||||
| 			window.open(props.to, '_blank', 'noopener'); | ||||
| 		}, | ||||
| 	}, { | ||||
| 		icon: 'ti ti-link', | ||||
|   | ||||
| @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
|  | ||||
| <template> | ||||
| <component | ||||
| 	:is="self ? 'MkA' : 'a'" ref="el" :class="$style.root" class="_link" :[attr]="self ? props.url.substring(local.length) : props.url" :rel="rel" :target="target" | ||||
| 	:is="self ? 'MkA' : 'a'" ref="el" :class="$style.root" class="_link" :[attr]="self ? props.url.substring(local.length) : props.url" :rel="rel ?? 'nofollow noopener'" :target="target" | ||||
| 	@contextmenu.stop="() => {}" | ||||
| > | ||||
| 	<template v-if="!self"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 まっちゃとーにゅ
					まっちゃとーにゅ