summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit
Commit message (Collapse)AuthorAgeFilesLines
* Store blocked and accessed cookies in the tab contents.jochen@chromium.org2010-07-021-3/+3
| | | | | | | | | | | This will enable chrome to display all cookies used/blocked on the current site to the user instead of just the information that something was blocked. The cookies are collected in data structures suitable for displaying them using the cookies tree model. BUG=45230 TEST=none Review URL: http://codereview.chromium.org/2370001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51545 0039d316-1c4b-4281-b951-d872f2087c98
* Add a "session only" policy to the content settings.jochen@chromium.org2010-07-021-4/+1
| | | | | | | | | | | session only is treated as allow, but the cookies will expire after this session (the actual code to expire non-html cookies will follow). BUG=47049 TEST=none Review URL: http://codereview.chromium.org/2858018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51522 0039d316-1c4b-4281-b951-d872f2087c98
* UI test for removal of empty DOM Storage database files.hans@chromium.org2010-06-221-0/+62
| | | | | | | | | | | | Implement tests to make sure that database files are only created when needed, and deleted when they are empty. BUG=39067 TEST=ui_tests --gtest_filter=DomStorageEmptyDatabaseTest.* Review URL: http://codereview.chromium.org/2867019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50467 0039d316-1c4b-4281-b951-d872f2087c98
* Move content settings related events into their own delegate.jochen@chromium.org2010-06-221-2/+2
| | | | | | | | | | | This will allow for implementing content settings related handlers outside of the tab contents object. BUG=45230 TEST=none Review URL: http://codereview.chromium.org/2870015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50440 0039d316-1c4b-4281-b951-d872f2087c98
* Implement WebKitClientImpl::databaseDeleteFile.hans@chromium.org2010-06-162-0/+10
| | | | | | | | | | | | | Calls to SQLiteFileSystem::deleteDatabaseFile() end up here. So far, this functionality does not seem to have been used, but it is needed for deleting empty local storage databases as per the bug below. BUG=39067 TEST=None. Will be covered by test for the bug in question. Review URL: http://codereview.chromium.org/2846004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49913 0039d316-1c4b-4281-b951-d872f2087c98
* Flesh out the rest of IDBIndex and IDBObjectStore's chromium halves.jorlow@chromium.org2010-06-143-17/+168
| | | | | | | | | | | | Also refactor a bunch of the dispatcher/dispatcherHost and IndexedDBCallbacks code to clean things up. TEST=none BUG=none Review URL: http://codereview.chromium.org/2749013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49683 0039d316-1c4b-4281-b951-d872f2087c98
* Set handled flag to true inside ↵andreip@chromium.org2010-06-091-0/+2
| | | | | | | | | | | | | | | | IndexedDBDispatcherHost::OnMessageReceivedWebKit() before passing the message to IndexedDBDispatcherHost for processing. This is a clone of http://codereview.chromium.org/2657007/show which was LGTM'ed by Jeremy Orlow. Review URL: http://codereview.chromium.org/2711004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49272 0039d316-1c4b-4281-b951-d872f2087c98
* Implement IDBDatabase::createObjectStore. Also refactor IndexedDBCallbacks.andreip@chromium.org2010-06-094-68/+131
| | | | | | | | | | | | This CL is a clone of http://codereview.chromium.org/2607001/show which was reviewd and LGTM'ed by Jeremy Orlow. Review URL: http://codereview.chromium.org/2740003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49267 0039d316-1c4b-4281-b951-d872f2087c98
* Disable WebKitThreadTest.ExposedInChromeThread, due to subsequent assert.senorblanco@google.com2010-06-081-1/+1
| | | | | | | | | | BUG=46087 TEST=see bug TBR=evan Review URL: http://codereview.chromium.org/2777001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49174 0039d316-1c4b-4281-b951-d872f2087c98
* Add IDBIndex support + various cleanup.jorlow@chromium.org2010-06-032-127/+266
| | | | | | | | This adds IDBIndex support. The majority of this CL was boilerplate type code in indexed_db_dispatcher_host so I did my best to factor it into template functions and split things into multiple sub-dispatcher hosts. Review URL: http://codereview.chromium.org/2449005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48822 0039d316-1c4b-4281-b951-d872f2087c98
* Handle IDBDatabase sync calls.jorlow@chromium.org2010-05-273-12/+133
| | | | | | | | | | Remove modify_database flag. Make sure we delete data structures on the WebKit thread. Handle single process mode. Review URL: http://codereview.chromium.org/2125017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48387 0039d316-1c4b-4281-b951-d872f2087c98
* IndexedDB should use WebSecurityOrigins rather than passing origin stringsjorlow@chromium.org2010-05-211-1/+4
| | | | | | | | | | | The Chromium side of https://bugs.webkit.org/show_bug.cgi?id=39216 which (among other things) switches WebCore/WebKit to use SecurityOrigin/WebSecurityOrigins. I'm also switching it to use databaseIdentifiers (rather than just toString) since its semantics match HTML5's origins (and toStrings do not). BUG=none TEST=none Review URL: http://codereview.chromium.org/2097005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47907 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable layout test for web storage quota.satish@chromium.org2010-05-171-1/+1
| | | | | | | | | | | | | | Since WebKit r59457, this test is rebaselined and can be enabled again. Landing http://codereview.chromium.org/2078009/show BUG=42740 TEST=ui_tests --gtest_filter=DOMStorageTest.RootLayoutTests TEST=run_webkit_tests.sh --debug storage/domstorage/quota.html Review URL: http://codereview.chromium.org/2066006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47415 0039d316-1c4b-4281-b951-d872f2087c98
* Implement IndexedDatabase::open up until re-entrance into WebKit. That (and thejorlow@chromium.org2010-05-1411-56/+408
| | | | | | | | | | | | | | | | | | | | | | rest of IndexedDB) will be done in subsequent patches. Included in this patch is a lot of other infrastructure for making IndexedDB work. Included is a conversion from the DOMStorageDispatcherHost into a dispatcher host for all APIs that have a backend in WebKit. I named it WebKitAPIDispatcherHost. Since it's in browser/in_process_webkit and it is for APIs that connect up to the WebKit API and it's used for APIs whose backend is implemented in WebKit I thought the name was decent and not _too_ confusing, but if you have better ideas, please let me know. This includes some code that you've already reviewed (darin), but a lot has changed so please take a look at all of it. TEST=Not much to test yet + behind a flag. BUG=none Review URL: http://codereview.chromium.org/1599009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47268 0039d316-1c4b-4281-b951-d872f2087c98
* Pass quota parameter to WebStorageNamespace::createSessionStorageNamespace().satish@chromium.org2010-05-123-7/+4
| | | | | | | | | | | | | Put a per-origin quota on session storage since it is using memory in the browser process, and should not be allowed to grow arbitrarily large. Landing on behalf of hans@chromium.org from http://codereview.chromium.org/1998003/show BUG=42740 TEST=none Review URL: http://codereview.chromium.org/1995014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47020 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug REGRESSION: Extension settings / options / preferences are not being ↵jianli@chromium.org2010-05-102-0/+15
| | | | | | | | | | | saved BUG=43561 TEST=Will be added later Review URL: http://codereview.chromium.org/2020006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46874 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit's version to 57768 to pick up a change todumi@chromium.org2010-04-171-6/+6
| | | | | | | | | | | | WebSecurityOrigin::createFromDatabaseIdentifier(), and fix all its callers. BUG=none TEST=none Review URL: http://codereview.chromium.org/1646013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44870 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Explicitly add a bunch of missing includes.thestig@chromium.org2010-04-151-3/+4
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1623014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44635 0039d316-1c4b-4281-b951-d872f2087c98
* Change ui_tests to pull the directories it needs from the upstream webkitdpranke@chromium.org2010-04-031-2/+2
| | | | | | | | | | | | | | | | | | tree directly rather than relying on webkit/data/layout_tests for the baselines. This requires us to change a few spots in the source code because the directory naming conventions for platform-specific baselines is different upstream (it's platform/chromium-win/foo rather than platform/chromium-win/LayoutTests/foo). Once this test lands we can (in theory) remove the downstream layout test baselines. BUG=none TEST=none R=dimich@chromium.org Review URL: http://codereview.chromium.org/1547009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43557 0039d316-1c4b-4281-b951-d872f2087c98
* Merge UiTest::GetTest* and ui_test_utils::GetTest*. Convert these utility ↵thestig@chromium.org2010-03-311-1/+5
| | | | | | | | | | functions to use FilePaths. BUG=none TEST=none Review URL: http://codereview.chromium.org/1567009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43190 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Unify polling interval in some of the polling functionsphajdan.jr@chromium.org2010-03-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | in the UI test framework: - WaitUntilCookieValue - WaitUntilCookieNonEmpty - WaitUntilJavaScriptCondition This helps reduce number of arbitrary "magic timeouts" which are different in each test. We don't remove the test timeout parameter, because it varies depending on test case, and for now we don't have a better solution. Trying a "naive" way leads to hangs on flaky tests. TEST=UI-based tests BUG=none Review URL: http://codereview.chromium.org/1557001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43062 0039d316-1c4b-4281-b951-d872f2087c98
* Broke out shared worker tests into individual tests and increased worker ↵atwilson@chromium.org2010-03-301-1/+1
| | | | | | | | | | | | | test timeout. Layout tests run in ui_tests can now have their timeout set via the cmd line, and a longer timeout is passed in when valgrind is run. BUG=39570 TEST=existing tests suffice Review URL: http://codereview.chromium.org/1518001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43021 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r42467. Clear cookies, local storage and databases when an extension ↵jochen@chromium.org2010-03-252-0/+21
| | | | | | | | | | | | gets uninstalled. BUG=27938,39177 TEST=Unittest in extension_service_unitttest.cc Review URL: http://codereview.chromium.org/1257005 Patch from Mattias Nissler. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42611 0039d316-1c4b-4281-b951-d872f2087c98
* Reverts 42520 and 42477. It back red again when adding this change back.maruel@chromium.org2010-03-252-21/+0
| | | | | | | | | | TEST=valgrind test: unit should turn green BUG=38398 BUG=39177 Review URL: http://codereview.chromium.org/1313003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42569 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply 42467 by reverting 42499 and added suppression.maruel@chromium.org2010-03-242-0/+21
| | | | | | | | | | | "Clear cookies, local storage and databases when an extension gets uninstalled." BUG=39177 BUG=38398 Review URL: http://codereview.chromium.org/1210004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42520 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r42467: "Clear cookies, local storage and databases when an extension ↵maruel@chromium.org2010-03-242-21/+0
| | | | | | | | | | | | gets uninstalled." It introduced a memory leak, causing a regression on valgrind test: unit. TBR=jochen Review URL: http://codereview.chromium.org/1295001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42499 0039d316-1c4b-4281-b951-d872f2087c98
* Clear cookies, local storage and databases when an extension gets uninstalled.jochen@chromium.org2010-03-242-0/+21
| | | | | | | | | | BUG=27938 TEST=Unittest in extension_service_unitttest.cc Review URL: http://codereview.chromium.org/1095003 Patch from Mattias Nissler. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42467 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r42426 - tests are failing because the WebKit LayoutTests directoriesdpranke@google.com2010-03-241-2/+4
| | | | | | | | | | | | | aren't checked out on the bots. We need to figure out how to deal with this since we don't want to keep expectations downstream if we can avoid it. BUG=none R=none TEST=bots stay green Review URL: http://codereview.chromium.org/1253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42427 0039d316-1c4b-4281-b951-d872f2087c98
* Use upstream layout_test baselines since the downstream ones are going away.dpranke@google.com2010-03-241-4/+2
| | | | | | | | | | BUG=none TEST=bots stay green R=eroman@chromium.org Review URL: http://codereview.chromium.org/1214001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42426 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Make automation framework more solid by making sure thatphajdan.jr@chromium.org2010-03-161-1/+1
| | | | | | | | | | | | | | | | | | | important return values are not ignored. The macro used here, WARN_UNUSED_RESULT, takes effect only for GCC, but that's enough since we have bots for all platforms. Adding these warnings already detected some cases where a return value was ignored. In some of them the test was trying to get the information about success "some other way", in some it could sometimes confuse test failure with test success. TEST=ui_tests BUG=none Review URL: http://codereview.chromium.org/948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41696 0039d316-1c4b-4281-b951-d872f2087c98
* Use the WebViewClient* passed in from the StorageAreaProxy instead of usingjorlow@chromium.org2010-03-092-6/+22
| | | | | | | | | | | | | | | | | | RenderThread::RoutingIDForCurrentContext() whenever possible. In addition, call OnContentBlocked directly from within the browser instead of sending another IPC message. Lastly, make sure that we don't crash in the event that we can't determine the routing id. WebKit side: https://bugs.webkit.org/show_bug.cgi?id=35758 (Landing again after reverting in 40922) TEST=none BUG=none Review URL: http://codereview.chromium.org/671001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41024 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 40920 - Use the WebViewClient* passed in from the StorageAreaProxy ↵jorlow@chromium.org2010-03-081-15/+3
| | | | | | | | | | | | | | | | | | | | | instead of using RenderThread::RoutingIDForCurrentContext() whenever possible. In addition, call OnContentBlocked directly from within the browser instead of sending another IPC message. Lastly, make sure that we don't crash in the event that we can't determine the routing id. WebKit side: https://bugs.webkit.org/show_bug.cgi?id=35758 TEST=none BUG=none Review URL: http://codereview.chromium.org/669084 TBR=jorlow@chromium.org Review URL: http://codereview.chromium.org/669293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40922 0039d316-1c4b-4281-b951-d872f2087c98
* Use the WebViewClient* passed in from the StorageAreaProxy instead of usingjorlow@chromium.org2010-03-081-3/+15
| | | | | | | | | | | | | | | | RenderThread::RoutingIDForCurrentContext() whenever possible. In addition, call OnContentBlocked directly from within the browser instead of sending another IPC message. Lastly, make sure that we don't crash in the event that we can't determine the routing id. WebKit side: https://bugs.webkit.org/show_bug.cgi?id=35758 TEST=none BUG=none Review URL: http://codereview.chromium.org/669084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40920 0039d316-1c4b-4281-b951-d872f2087c98
* Next part of removing the dependency of chrome/common on chrome/browserphajdan.jr@chromium.org2010-03-061-0/+1
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/669184 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40834 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to using the CookieMessageFilter when pumping messages for ↵jorlow@chromium.org2010-03-053-8/+20
| | | | | | | | | | | StorageArea::setItem. TEST=none BUG=37350 Review URL: http://codereview.chromium.org/669072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40731 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on session storage by default.jorlow@chromium.org2010-02-241-1/+0
| | | | | | | | | TEST=none BUG=4360 Review URL: http://codereview.chromium.org/551098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39883 0039d316-1c4b-4281-b951-d872f2087c98
* Small preparation for the cookie confirmation dialog on linux/osx.thakis@chromium.org2010-02-231-6/+0
| | | | | | | | BUG=34894,35178 Review URL: http://codereview.chromium.org/650204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39696 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Implement most of the content settings dialog.thakis@chromium.org2010-02-221-0/+1
| | | | | | | | | | | | | | | | xib changes: Added a tab view with all the UI, set up bindings for radio groups and checkboxes. Hooked up buttons. Missing for now: * "Exception" dialogs ("exception" buttons are disabled until then) * Some polish * The cookie "ask" dialog BUG=34894 TEST=Open content settings dialog. Set different things, click various things, and make sure they all have the expected effect. Review URL: http://codereview.chromium.org/652037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39601 0039d316-1c4b-4281-b951-d872f2087c98
* Pass in the HostContentSettingsMap to the CookieModalDialog so IsValid can ↵jorlow@chromium.org2010-02-202-26/+17
| | | | | | | | | | | | | | | make its decision. Before, it used the TabContents to get the profile to get the map, but this was incorrect because the current tab isn't necessarily from the same profile as the original request. As long as we have the HostContentSettingsMap, we might as well handle "remember" in CookieModalDialog. This bug exists in 4.1. TEST=none BUG=none Review URL: http://codereview.chromium.org/651023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39558 0039d316-1c4b-4281-b951-d872f2087c98
* Implement CONTENT_SETTING_ASK for database. Also some cleanup of the dialog ↵jorlow@chromium.org2010-02-172-14/+12
| | | | | | | | | | | for local storage. BUG=34628 TEST=none Review URL: http://codereview.chromium.org/605028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39214 0039d316-1c4b-4281-b951-d872f2087c98
* Only ask the user on setItems whether they want to allow dom storage.jorlow@chromium.org2010-02-133-14/+13
| | | | | | | | | | | Also add some plumbing for popping up an icon when it's blocked. TEST=Turn on the ask content setting for a domain and set local storage and then clear it. Only the set should prompt you. BUG=34668 Review URL: http://codereview.chromium.org/600078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39018 0039d316-1c4b-4281-b951-d872f2087c98
* Make the setItem CONTENT_SETTING_ASK dialog more useful by showing the ↵jorlow@chromium.org2010-02-124-65/+22
| | | | | | | | | | | | | actual key and value. Unfortunately, we're going to have to abuse cookie strings for 4.1 Once this goes in, I'll add new strings for the actual fields. This also cleans up the code some. TEST=Instead of size/modified information you'll see "name" and "content" in the dialog that comes up when asking whether to allow local storage. BUG=none Review URL: http://codereview.chromium.org/597061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38952 0039d316-1c4b-4281-b951-d872f2087c98
* Remove webkit/glue/glue_util.{h,cc} now that the WebKit API is complete!darin@chromium.org2010-02-111-1/+0
| | | | | | | | | | R=jorlow BUG=24607 TEST=none Review URL: http://codereview.chromium.org/601029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38751 0039d316-1c4b-4281-b951-d872f2087c98
* Whitelist all content for various internal schemes.pkasting@chromium.org2010-02-094-23/+23
| | | | | | | | BUG=34805 TEST=New Tab page should still work if you disable script + images Review URL: http://codereview.chromium.org/588011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38536 0039d316-1c4b-4281-b951-d872f2087c98
* Show an app modal dialog when the cookie policy is ASK.darin@chromium.org2010-02-083-26/+90
| | | | | | | | | | | | This hooks up the dialog for cookies and localstorage. It also includes support for remembering the decision, and in the case of cookies, support is added for forcing a cookie to be a stored as a session cookie. BUG=34625,34572 Review URL: http://codereview.chromium.org/583004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38393 0039d316-1c4b-4281-b951-d872f2087c98
* When clearing browsing data modified since a certain time, do not delete ↵jochen@chromium.org2010-02-054-14/+27
| | | | | | | | | | | | | extension data. You can use the cookie tree model to really delete all data. BUG=34598 TEST=install an extension that uses local storage, delete browsing data, check that the extension data still exist. Review URL: http://codereview.chromium.org/573030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38248 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 37913. Clear local state on exit.jochen@chromium.org2010-02-032-6/+31
| | | | | | | | | BUG=32719 TEST=none Review URL: http://codereview.chromium.org/560024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37936 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 37913 - Clear local state (cookies, databases, local storage) on exit.chase@chromium.org2010-02-032-31/+6
| | | | | | | | | | | | BUG=32719 TEST=none Review URL: http://codereview.chromium.org/564012 TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/564023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37915 0039d316-1c4b-4281-b951-d872f2087c98
* Clear local state (cookies, databases, local storage) on exit.jochen@chromium.org2010-02-032-6/+31
| | | | | | | | | BUG=32719 TEST=none Review URL: http://codereview.chromium.org/564012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37913 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for fine grained permissions to use LocalStorage.jorlow@chromium.org2010-02-028-33/+235
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/565004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37856 0039d316-1c4b-4281-b951-d872f2087c98