title: Chrome extension enable content script to access iframe
body: <p>Question is simple: Is there any way to enable a content script (through <code>executeScript()</code>) to be able to access an iframe on the current webpage (say <code>stackoverflow.com</code>) that has the same origin of the extension itself?</p>
  
  <p>To put to rest: I realize you can communicate through postMessage, hashing, and so forth from the iframe script to its parent script, but my main goal is to add events onto the iframe directly from a content script rather than having to pass a message (and create a middle man).</p>
  
  <p>I believe injected content scripts run on the page "in their own little world", in which the page itself, nor other content scripts can access, so it leads me to believe Chrome could possibly <code>allow</code> these scripts access to iframes of its own origin (the extension url itself).</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Just to clarify, the iframe would have a url of the chrome extension itself, under the protocol <code>chrome-extension://</code>. The parent page of the iframe could have any url, say <code>http://stackoverflow.com</code> for instance. So trying to access the iframe from a content script generally wont pass the <code>same-origin-policy</code>...The question is if there is a way around this using Chrome's Extension library.</p>
  
  <p>Thanks!</p>