diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 18:01:18 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 18:01:18 +0000 |
commit | dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348 (patch) | |
tree | 5bec0f3b7d6bd08d4283e6fcd2b68b2b01f2730d /webkit/glue/dom_operations_unittest.cc | |
parent | abbc5739c1689384fbbdbd0ee6c9d2d9a8c2da0b (diff) | |
download | chromium_src-dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348.zip chromium_src-dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348.tar.gz chromium_src-dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348.tar.bz2 |
This patch enables "Save page as" (ctrl+s) for resources located at
chrome-extension URLs. In the absence of any API for doing file I/O this adds
very useful functionality to chrome extensions. This patch is needed to allow
APU to save its instrumentation data to disk without the need for a plugin.
patch by: Jaime Yap (jaimeyap@google.com)
BUG=none
TEST=Bundle a page "foo.html" with an extension. Usings the tabs API or
window.open, open "foo.html" in the extensions process. Try to save it
using CTRL+S. (You can test with any of the existing samples that bundle
a page).
Review URL: http://codereview.chromium.org/266051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_operations_unittest.cc')
-rw-r--r-- | webkit/glue/dom_operations_unittest.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/glue/dom_operations_unittest.cc b/webkit/glue/dom_operations_unittest.cc index b5487b2..92955da 100644 --- a/webkit/glue/dom_operations_unittest.cc +++ b/webkit/glue/dom_operations_unittest.cc @@ -51,8 +51,15 @@ void DomOperationsTests::GetSavableResourceLinksForPage( &referrers_list, &frames_list); + const char* savable_schemes[] = { + "http", + "https", + "file", + NULL + }; + ASSERT_TRUE(webkit_glue::GetAllSavableResourceLinksForCurrentPage( - test_shell_->webView(), file_url, &result)); + test_shell_->webView(), file_url, &result, savable_schemes)); // Check all links of sub-resource for (std::vector<GURL>::const_iterator cit = resources_list.begin(); cit != resources_list.end(); ++cit) { |