title: Can we download a webpage completely with chrome.downloads.download? (Google Chrome Extension)
body: <p>I want to save a wabpage completely from my Google Chrome extension.
  I added <code>"downloads", "&lt;all_urls&gt;"</code> permissions and confirmed that the following code save the Google page to <code>google.html</code>.</p>
  
  <pre><code>  chrome.downloads.download(
              { url: "http://www.google.com",
                filename: "google.html" },
              function (x) { console.log(x); })
  </code></pre>
  
  <p>However, this code only saves the html file.
  Stylesheets, scripts and images are not be saved.
  I want to save the webpage completely, as if I save the page with the dialog, selecting <code>Format: Webpage, Complete</code>.</p>
  
  <p>I looked into the <a href="https://developer.chrome.com/extensions/downloads#method-download" rel="noreferrer">document</a> but I couldn't find a way.</p>
  
  <p>So my question is: how can I download a webpage completely from an extension using the api(s) of Google Chrome?</p>