Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: storage/StorageAreaImpl.cpp

Issue 155477: Dom Storage (webkit side) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: storage/StorageAreaImpl.cpp
===================================================================
--- storage/StorageAreaImpl.cpp (revision 45738)
+++ storage/StorageAreaImpl.cpp (working copy)
@@ -127,7 +127,7 @@
ASSERT(!value.isNull());
blockUntilImportComplete();
- if (frame->page()->settings()->privateBrowsingEnabled()) {
+ if (frame && frame->page()->settings()->privateBrowsingEnabled()) {
ec = QUOTA_EXCEEDED_ERR;
return;
}
@@ -158,7 +158,7 @@
ASSERT(!m_isShutdown);
blockUntilImportComplete();
- if (frame->page()->settings()->privateBrowsingEnabled())
+ if (frame && frame->page()->settings()->privateBrowsingEnabled())
return;
String oldValue;
@@ -179,7 +179,7 @@
ASSERT(!m_isShutdown);
blockUntilImportComplete();
- if (frame->page()->settings()->privateBrowsingEnabled())
+ if (frame && frame->page()->settings()->privateBrowsingEnabled())
return;
m_storageMap = StorageMap::create();
@@ -230,6 +230,10 @@
// of any given page in the group or mutate the page group itself.
Vector<RefPtr<Frame> > frames;
+ // TODO(jorlow): Make this work!
+ if (!sourceFrame)
+ return;
michaeln 2009/07/14 19:02:05 I realize this is temporary only until you resolve
jorlow 2009/07/14 19:12:50 Sure. Might as well.
+
// FIXME: When can this occur?
Page* page = sourceFrame->page();
if (!page)
michaeln 2009/07/14 19:02:05 while your here... ditto for this test
jorlow 2009/07/14 19:12:50 k

Powered by Google App Engine
This is Rietveld 408576698