Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index dc167e613183440e9272369d25018eacdcc1eb27..3ebd2d214d372064f1e2edd383227f54268214e7 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2436,7 +2436,6 @@ void Document::implicitClose() |
detachParser(); |
if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript)) { |
- ImageLoader::dispatchPendingBeforeLoadEvents(); |
ImageLoader::dispatchPendingLoadEvents(); |
ImageLoader::dispatchPendingErrorEvents(); |
@@ -3801,13 +3800,6 @@ void Document::addListenerTypeIfNeeded(const AtomicString& eventType) |
addListenerType(ANIMATIONITERATION_LISTENER); |
} else if (eventType == EventTypeNames::webkitTransitionEnd || eventType == EventTypeNames::transitionend) { |
addListenerType(TRANSITIONEND_LISTENER); |
- } else if (eventType == EventTypeNames::beforeload) { |
- if (m_frame && m_frame->script().shouldBypassMainWorldContentSecurityPolicy()) { |
- UseCounter::count(*this, UseCounter::BeforeLoadEventInIsolatedWorld); |
- } else { |
- UseCounter::count(*this, UseCounter::BeforeLoadEvent); |
- } |
- addListenerType(BEFORELOAD_LISTENER); |
} else if (eventType == EventTypeNames::scroll) { |
addListenerType(SCROLL_LISTENER); |
} else if (eventType == EventTypeNames::DOMFocusIn || eventType == EventTypeNames::DOMFocusOut) { |