-
jpfau@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=115004 Reviewed by Maciej Stachowiak. Source/WebCore: Instead of outright blocking LocalStorage that's used in a third-party context, silently partition it based on the origin of the top context. These partitions are then discarded when the page group is unloaded. No new tests; modified existing tests to account for changes. * page/DOMWindow.cpp: (WebCore::DOMWindow::localStorage): * page/PageGroup.cpp: (WebCore::PageGroup::localStorage): (WebCore): (WebCore::PageGroup::transientLocalStorage): * page/PageGroup.h: (PageGroup): * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::canAccessStorage): LayoutTests: * http/tests/security/cross-origin-local-storage-allowed-expected.txt: * http/tests/security/cross-origin-local-storage-allowed.html: * http/tests/security/cross-origin-local-storage-expected.txt: * http/tests/security/cross-origin-local-storage-wk1.html: * http/tests/security/cross-origin-local-storage-wk1-expected.txt: * http/tests/security/cross-origin-local-storage.html: * http/tests/security/resources/cross-origin-iframe-for-local-storage.html: * http/tests/security/resources/load-local-storage.html: Added. * platform/mac-wk2/http/tests/security/cross-origin-local-storage-wk1-expected.txt: * platform/mac/http/tests/security/cross-origin-local-storage-wk1-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6093191a