回答編集履歴
1
typo
answer
CHANGED
@@ -1,3 +1,4 @@
|
|
1
1
|
ブラウザは`Event`の[`isTrusted`プロパティ](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted)が真の場合のみそのイベントに反応するようになっていて、通常のAPIで`isTrusted`が真な`Event`を作ることはできません。
|
2
2
|
|
3
|
-
拡張機能の場合は手段があります。[`chrome.debugger`の`sendCommand()`](https://developer.chrome.com/docs/extensions/reference/debugger/#method-sendCommand)
|
3
|
+
拡張機能の場合は手段があります。[`chrome.debugger` の `sendCommand()`](https://developer.chrome.com/docs/extensions/reference/debugger/#method-sendCommand)
|
4
|
+
で [`Input.dispatch*Event`](https://chromedevtools.github.io/devtools-protocol/tot/Input/)を実行します。
|