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

Unified Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 805773004: Create DOMWindowStorage as a DOMWindowLifecycleObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename Created 6 years 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/storage/DOMWindowStorageController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index 926de144193cf533bef0b4ef1472bf2137363d95..bd12e19bfa7cb5679e96d92f6905e948308339fc 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -1571,16 +1571,6 @@ DOMWindowCSS* LocalDOMWindow::css() const
return m_css.get();
}
-static void didAddStorageEventListener(LocalDOMWindow* window)
-{
- // Creating these blink::Storage objects informs the system that we'd like to receive
- // notifications about storage events that might be triggered in other processes. Rather
- // than subscribe to these notifications explicitly, we subscribe to them implicitly to
- // simplify the work done by the system.
- window->localStorage(IGNORE_EXCEPTION);
- window->sessionStorage(IGNORE_EXCEPTION);
-}
-
bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture)
{
if (!EventTarget::addEventListener(eventType, listener, useCapture))
@@ -1591,8 +1581,6 @@ bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr<
if (Document* document = this->document()) {
document->addListenerTypeIfNeeded(eventType);
- if (eventType == EventTypeNames::storage)
- didAddStorageEventListener(this);
}
lifecycleNotifier().notifyAddEventListener(this, eventType);
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/storage/DOMWindowStorageController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698