Bug 422526 - implement localStorage, p=Honza Bambas+Dave Camp, r=jst+dcamp+bz

This commit is contained in:
Honza Bambas
2009-03-19 00:43:45 +01:00
parent 87bb6b5e74
commit 0c5440bfc9
42 changed files with 2808 additions and 256 deletions

View File

@@ -1792,7 +1792,7 @@ nsDocShell::GetSessionStorageForURI(nsIURI* aURI,
nsCOMPtr<nsPIDOMStorage> pistorage = do_QueryInterface(newstorage);
if (!pistorage)
return NS_ERROR_FAILURE;
pistorage->Init(NS_ConvertUTF8toUTF16(currentDomain), PR_FALSE);
pistorage->InitAsSessionStorage(aURI);
if (!mStorages.Put(currentDomain, newstorage))
return NS_ERROR_OUT_OF_MEMORY;