-
jochen@chromium.org authored
Reviewed by Adam Barth. Check access policy on all storage operations https://bugs.webkit.org/show_bug.cgi?id=61581 * platform/chromium/permissionclient/storage-permission-expected.txt: Added. * platform/chromium/permissionclient/storage-permission.html: Added. 2011-05-27 Jochen Eisinger <jochen@chromium.org> Reviewed by Adam Barth. Add Frame parameter to all StorageArea methods. The chromium embedder uses the Frame as context to decide whether or not to allow usage of the storage API. https://bugs.webkit.org/show_bug.cgi?id=61581 Test: platform/chromium/permissionclient/storage-permission.html * storage/Storage.cpp: (WebCore::Storage::length): (WebCore::Storage::key): (WebCore::Storage::getItem): (WebCore::Storage::contains): * storage/StorageArea.h: * storage/StorageAreaImpl.cpp: (WebCore::StorageAreaImpl::length): (WebCore::StorageAreaImpl::key): (WebCore::StorageAreaImpl::getItem): (WebCore::StorageAreaImpl::contains): * storage/StorageAreaImpl.h: 2011-05-27 Jochen Eisinger <jochen@chromium.org> Reviewed by Adam Barth. Check access policy on all storage operations https://bugs.webkit.org/show_bug.cgi?id=61581 * src/StorageAreaProxy.cpp: (WebCore::StorageAreaProxy::length): (WebCore::StorageAreaProxy::key): (WebCore::StorageAreaProxy::getItem): (WebCore::StorageAreaProxy::setItem): (WebCore::StorageAreaProxy::removeItem): (WebCore::StorageAreaProxy::clear): (WebCore::StorageAreaProxy::contains): (WebCore::StorageAreaProxy::canAccessStorage): * src/StorageAreaProxy.h: * src/WebStorageAreaImpl.cpp: (WebKit::WebStorageAreaImpl::length): (WebKit::WebStorageAreaImpl::key): (WebKit::WebStorageAreaImpl::getItem): 2011-05-27 Jochen Eisinger <jochen@chromium.org> Reviewed by Adam Barth. Add layoutTestController.setStorageAllowed() to control whether access to the localStorage API is enabled via the WebPermissionClient https://bugs.webkit.org/show_bug.cgi?id=61581 * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::setStorageAllowed): * DumpRenderTree/chromium/LayoutTestController.h: * DumpRenderTree/chromium/TestShell.cpp: (TestShell::TestShell): (TestShell::createNewWindow): * DumpRenderTree/chromium/TestShell.h: * DumpRenderTree/chromium/WebPermissions.h: Added. (WebPermissions::WebPermissions): (WebPermissions::allowStorage): (WebPermissions::setStorageAllowed): (WebPermissions::reset): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
d1b83073