summaryrefslogtreecommitdiffstats
path: root/dom/storage/Storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/storage/Storage.h')
-rw-r--r--dom/storage/Storage.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/dom/storage/Storage.h b/dom/storage/Storage.h
index 81546a0b0e..cea49f3114 100644
--- a/dom/storage/Storage.h
+++ b/dom/storage/Storage.h
@@ -52,7 +52,7 @@ class Storage : public nsISupports, public nsWrapperCache {
bool IsPrivateBrowsing() const { return mPrivateBrowsing; }
- bool IsSessionScopedOrLess() const { return mSessionScopedOrLess; }
+ bool IsPrivateBrowsingOrLess() const { return mPrivateBrowsingOrLess; }
// WebIDL
JSObject* WrapObject(JSContext* aCx,
@@ -98,11 +98,6 @@ class Storage : public nsISupports, public nsWrapperCache {
virtual void Clear(nsIPrincipal& aSubjectPrincipal, ErrorResult& aRv) = 0;
- // The attribute in the WebIDL interface has rather confusing name. So we
- // shouldn't use this method internally. IsSessionScopedOrLess should be used
- // directly.
- bool IsSessionOnly() const { return IsSessionScopedOrLess(); }
-
//////////////////////////////////////////////////////////////////////////////
// Testing Methods:
//
@@ -172,7 +167,7 @@ class Storage : public nsISupports, public nsWrapperCache {
// Whether storage is set to persist data only per session, may change
// dynamically and is set by CanUseStorage function that is called
// before any operation on the storage.
- bool mSessionScopedOrLess : 1;
+ bool mPrivateBrowsingOrLess : 1;
};
} // namespace mozilla::dom