Chrome、Webサイト訪問時にユーザーの同意なしでクリップボードへ書き込み可能
(webplatform.news)- このサイトを訪問すると、ユーザーの同意なしにクリップボードへ特定の文字列がコピーされる
- Safari と Firefox は
navigator.clipboard.write()とwriteText()の呼び出し時にユーザー操作を必要とするが、Chrome はそのまま通ってしまう
navigator.clipboard.write() と writeText() の呼び出し時にユーザー操作を必要とするが、Chrome はそのまま通ってしまう
1件のコメント
サイトを訪問した後、どこでもいいので貼り付けてみると、以下の文字列が表示されます。
Hello, this message is in your clipboard because you visited the website Web Platform News in a browser that allows websites to write to the clipboard without the user’s permission. Sorry for the inconvenience. For more information about this issue, see https://github.com/w3c/clipboard-apis/issues/182.