title: How to access localStorage in extension background page?
body: <p>I have a chrome extension that sets a string value in JavaScript localStorage in a content script. I have tested that it is being set by grabbing it and displaying it. While on the same page after it has loaded I can still access the stored string in the javascript console. If I go to any other tabs js console or  when I try to access it in my other extensions background page(After the browser action has been clicked) it is returning null.</p>
  
  <p>extension 1 contentscript.js</p>
  
  <pre><code>embeded.addEventListener
  (
   "message",
   function(message)
   {
    localStorage.setItem("pdf", message.data);
    loadPDF(message.data);
   },
   false
  );
  </code></pre>
  
  <p>extension 2 background.js</p>
  
  <pre><code>chrome.browserAction.onClicked.addListener(function(tab) {
    if (tab.url.substr(tab.url.length - 4) === ".pdf")
    {    
      if (localStorage.getItem("pdf") !== null)
      {
        alert("boomy"); 
      }
    }
  });
  </code></pre>