Allow LocalStorage by default for file URLs.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Jul 2016 19:57:47 +0000 (19:57 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Jul 2016 19:57:47 +0000 (19:57 +0000)
commitcdd326d9c2a1bad83be04b12574f88d8e5aec5e1
treeceddd606fd7f3815182d3eb888acdf3d8ec05aaf
parentedc7678ab30c41e773e5a63e136c0d4ed3f088f5
Allow LocalStorage by default for file URLs.
https://bugs.webkit.org/show_bug.cgi?id=160169

Reviewed by Brent Fulgham.

Source/WebCore:

Test: storage/domstorage/localstorage/file-can-access.html

* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::canAccessStorage): Remove the m_universalAccess check for local URLs.

LayoutTests:

* storage/domstorage/localstorage/blocked-file-access-expected.txt: Removed.
* storage/domstorage/localstorage/file-can-access-expected.txt: Added.
* storage/domstorage/localstorage/file-can-access.html: Renamed from LayoutTests/storage/domstorage/localstorage/blocked-file-access.html.
* storage/domstorage/localstorage/resources/unblocked-example.html: Renamed from LayoutTests/storage/domstorage/localstorage/resources/blocked-example.html.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/domstorage/localstorage/blocked-file-access-expected.txt [deleted file]
LayoutTests/storage/domstorage/localstorage/file-can-access-expected.txt [new file with mode: 0644]
LayoutTests/storage/domstorage/localstorage/file-can-access.html [moved from LayoutTests/storage/domstorage/localstorage/blocked-file-access.html with 61% similarity]
LayoutTests/storage/domstorage/localstorage/resources/unblocked-example.html [moved from LayoutTests/storage/domstorage/localstorage/resources/blocked-example.html with 70% similarity]
Source/WebCore/ChangeLog
Source/WebCore/page/SecurityOrigin.cpp