Bug 968804 - Part e: Add outer window assertions to PreloadLocalStorage; r=peterv

This commit is contained in:
Ms2ger 2014-05-20 21:50:58 +02:00
parent a57f2d4cb0
commit 01d101fd7d
2 changed files with 3 additions and 0 deletions

View File

@ -2690,6 +2690,8 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument,
void
nsGlobalWindow::PreloadLocalStorage()
{
MOZ_ASSERT(IsOuterWindow());
if (!Preferences::GetBool(kStorageEnabled)) {
return;
}

View File

@ -1348,6 +1348,7 @@ protected:
bool aDefaultStylesOnly,
nsIDOMCSSStyleDeclaration** aReturn);
// Outer windows only.
void PreloadLocalStorage();
// Returns device pixels. Outer windows only.