chrome-devtool/panel.js
function(message) {
  message.tabId = chrome.devtools.inspectedWindow.tabId
  chrome.extension.sendMessage(message)
}
function(message) {
  message.tabId = chrome.devtools.inspectedWindow.tabId
  chrome.extension.sendMessage(message)
}
Creates and maintains the communication channel from the devtools panel to the background script. The panel is the page in the devtools tab, containing the Tracer.  Messages are JSON objects { action: ["code"|"script"|"message"], // What action to perform on the inspected page content: [String|Path to script|Object], // data to be passed through tabId: [Automatically added] } This sends an object to the background page where it can be relayed to the inspected page