Changeset 50754 in webkit


Ignore:
Timestamp:
Nov 10, 2009 12:52:57 PM (14 years ago)
Author:
jorlow@chromium.org
Message:

2009-11-09 Jeremy Orlow <jorlow@chromium.org>

Reviewed by Eric Seidel.

Remove session storage setting
https://bugs.webkit.org/show_bug.cgi?id=31279

Remove session storage from Settings. It was added temporarily so we could
disable it by default at runtime in Chromium. We now disable these things in a
different way, so it's time to remove it. Qt also depended on this setting for
a short period of time, but after talking to them we agreed that it should be
removed.

This bug is the second half of https://bugs.webkit.org/show_bug.cgi?id=30602

  • page/DOMWindow.cpp: (WebCore::DOMWindow::sessionStorage):
  • page/Settings.cpp: (WebCore::Settings::Settings):
  • page/Settings.h:
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50753 r50754  
     12009-11-09  Jeremy Orlow  <jorlow@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove session storage setting
     6        https://bugs.webkit.org/show_bug.cgi?id=31279
     7
     8        Remove session storage from Settings.  It was added temporarily so we could
     9        disable it by default at runtime in Chromium.  We now disable these things in a
     10        different way, so it's time to remove it.  Qt also depended on this setting for
     11        a short period of time, but after talking to them we agreed that it should be
     12        removed.
     13
     14        This bug is the second half of https://bugs.webkit.org/show_bug.cgi?id=30602
     15
     16        * page/DOMWindow.cpp:
     17        (WebCore::DOMWindow::sessionStorage):
     18        * page/Settings.cpp:
     19        (WebCore::Settings::Settings):
     20        * page/Settings.h:
     21
    1222009-11-10  Dan Bernstein  <mitz@apple.com>
    223
  • trunk/WebCore/page/DOMWindow.cpp

    r50575 r50754  
    575575        return 0;
    576576
    577     if (!page->settings()->sessionStorageEnabled())
    578         return 0;
    579 
    580577    RefPtr<StorageArea> storageArea = page->sessionStorage()->storageArea(document->securityOrigin());
    581578#if ENABLE(INSPECTOR)
  • trunk/WebCore/page/Settings.cpp

    r50575 r50754  
    7373    , m_databasesEnabled(false)
    7474    , m_localStorageEnabled(false)
    75     , m_sessionStorageEnabled(true)
    7675    , m_isJavaScriptEnabled(false)
    7776    , m_isWebSecurityEnabled(true)
     
    257256}
    258257
    259 void Settings::setSessionStorageEnabled(bool sessionStorageEnabled)
    260 {
    261     m_sessionStorageEnabled = sessionStorageEnabled;
    262 }
    263 
    264258void Settings::setLocalStorageQuota(unsigned localStorageQuota)
    265259{
  • trunk/WebCore/page/Settings.h

    r50575 r50754  
    125125        void setLocalStorageEnabled(bool);
    126126        bool localStorageEnabled() const { return m_localStorageEnabled; }
    127 
    128         void setSessionStorageEnabled(bool);
    129         bool sessionStorageEnabled() const { return m_sessionStorageEnabled; }
    130127
    131128        void setLocalStorageQuota(unsigned);
     
    308305        bool m_databasesEnabled : 1;
    309306        bool m_localStorageEnabled : 1;
    310         bool m_sessionStorageEnabled : 1;
    311307        bool m_isJavaScriptEnabled : 1;
    312308        bool m_isWebSecurityEnabled : 1;
Note: See TracChangeset for help on using the changeset viewer.