Changeset 86458 in webkit
- Timestamp:
- May 13, 2011 1:40:23 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r86457 r86458 1 2011-05-13 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 indexedDB is visible inside iframe sandbox 6 https://bugs.webkit.org/show_bug.cgi?id=60785 7 8 * http/tests/security/no-indexeddb-from-sandbox-expected.txt: Added. 9 * http/tests/security/no-indexeddb-from-sandbox.html: Added. 10 1 11 2011-05-13 Mark Pilgrim <pilgrim@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r86455 r86458 1 2011-05-13 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 indexedDB is visible inside iframe sandbox 6 https://bugs.webkit.org/show_bug.cgi?id=60785 7 8 We're supposed to return a null indexedDB factory when inside an iframe 9 sandbox. 10 11 Test: http/tests/security/no-indexeddb-from-sandbox.html 12 13 * page/DOMWindow.cpp: 14 (WebCore::DOMWindow::webkitIndexedDB): 15 1 16 2011-05-13 Adam Roben <aroben@apple.com> 2 17 -
trunk/Source/WebCore/page/DOMWindow.cpp
r86325 r86458 730 730 IDBFactory* DOMWindow::webkitIndexedDB() const 731 731 { 732 if (m_idbFactory)733 return m_idbFactory.get();734 735 732 Document* document = this->document(); 736 733 if (!document) 737 734 return 0; 738 735 739 // FIXME: See if access is allowed.740 741 736 Page* page = document->page(); 742 737 if (!page) 743 738 return 0; 744 739 745 // FIXME: See if indexedDatabase access is allowed. 746 747 m_idbFactory = IDBFactory::create(page->group().idbFactory()); 740 if (!document->securityOrigin()->canAccessDatabase()) 741 return 0; 742 743 if (!m_idbFactory) 744 m_idbFactory = IDBFactory::create(page->group().idbFactory()); 748 745 return m_idbFactory.get(); 749 746 }
Note: See TracChangeset
for help on using the changeset viewer.