title: safari extension: Sending message from injected script to popover
body: <p>im busy with creating a bookmaker extension in safari and running up against the following issue. In my popover i've a iframe which includes a button. When that button (submit button) is clicked the following message must be send:</p>
  
  <pre><code>window.addEventListener('message', function(e){
      if(e.data.command == 'closeSymbalooBookmarker'){
          window.setTimeout(function(){
              window.close();
          }, 2000);
      }
  });
  </code></pre>
  
  <p>as you can see this close the popover in 2 seconds (the above script is made in chrome extension). </p>
  
  <p>I need to send a message from the inject script to a popover so i can close the popover in the popover window. Or is there some other way to that? </p>
  
  <p>Thank u.</p>