Is it possible to message the dev-tools panel from within inspectedWindow.eval?
问题 I have been reading over the chrome extension message passing documentation, but I cannot seem to establish communication from within the inspected window. For example, chrome.devtools.inspectedWindow.eval('function() { . . . /* send message to dev-tools panel */ chrome.runtime.sendMessage({foo:"foo"});<-- Uncaught Error: Invalid arguments to connect. Why is the extensionId required within chrome.devtools.inspectedWindow.eval? This made me step back and ask the question. }') I have tried