title: Unable to access Global variables in chrome.tabs.executescript in Chrome version 55
body: <p>I recently updated Chrome to version 55.0.2883.75.
  I am using a self developed Chrome Plugin to parse my HTML files wherein I use chrome.tabs.executescript to get data from background HTML page.
  So when I execute chrome.extension.onRequest, I save the background page's parsed data to a global variable and access it in the callback function of chrome.tabs.executescript and process it.</p>
  
  <p>This was working fine till I update to Version 55.0.2883.75.
  How can I access the global variables in the new version ??</p>
  
  <p>My Code Below :</p>
  
  <p>Step 1 :</p>
  
  <pre><code>chrome.extension.onRequest.addListener(
      function (request, sender, sendResponse) {
          parser = new DOMParser();
          htmlDoc = parser.parseFromString(request.content, "text/html");
  
          //outputJson is a global variable which is Populated here
          outputJson = parseMyPage(outputJson, htmlDoc);
  
  
      });
  </code></pre>
  
  <p>Step 2:</p>
  
  <pre><code>chrome.tabs.getSelected(null, function (tab) {
      // Now inject a script onto the page
      chrome.tabs.executeScript(tab.id,{
          code: "chrome.extension.sendRequest({content: document.body.innerHTML}, function(response) { console.log('success'); });"
      }, function () {
  
         //my code to access global variables
  if (outputJson &amp;&amp; null != outputJson) {
      // other stuff
  }
  
      });
  }); 
  </code></pre>