Title: [229072] branches/safari-605-branch/Source/WebCore/dom/EventTarget.cpp
- Revision
- 229072
- Author
- [email protected]
- Date
- 2018-02-27 14:11:26 -0800 (Tue, 27 Feb 2018)
Log Message
Revert r229068. rdar://problem/37156477
Modified Paths
Diff
Modified: branches/safari-605-branch/Source/WebCore/dom/EventTarget.cpp (229071 => 229072)
--- branches/safari-605-branch/Source/WebCore/dom/EventTarget.cpp 2018-02-27 21:47:57 UTC (rev 229071)
+++ branches/safari-605-branch/Source/WebCore/dom/EventTarget.cpp 2018-02-27 22:11:26 UTC (rev 229072)
@@ -58,19 +58,6 @@
return false;
}
-static bool siteQuirksForceNonPassive(const Document& document)
-{
-#if !PLATFORM(IOS)
- UNUSED_PARAM(document);
- return false;
-#else
- String hostName = document.topDocument().url().host();
- // We have to consider all the localized versions of
- // Google pages, which are generally on different domains.
- return hostName.containsIgnoringASCIICase(".google.") || startsWithLettersIgnoringASCIICase(hostName, "google.");
-#endif
-}
-
bool EventTarget::addEventListener(const AtomicString& eventType, Ref<EventListener>&& listener, const AddEventListenerOptions& options)
{
auto passive = options.passive;
@@ -79,11 +66,11 @@
if (is<DOMWindow>(*this)) {
auto& window = downcast<DOMWindow>(*this);
if (auto* document = window.document())
- passive = document->settings().passiveTouchListenersAsDefaultOnDocument() && !siteQuirksForceNonPassive(*document);
+ passive = document->settings().passiveTouchListenersAsDefaultOnDocument();
} else if (is<Node>(*this)) {
auto& node = downcast<Node>(*this);
if (is<Document>(node) || node.document().documentElement() == &node || node.document().body() == &node)
- passive = node.document().settings().passiveTouchListenersAsDefaultOnDocument() && !siteQuirksForceNonPassive(node.document());
+ passive = node.document().settings().passiveTouchListenersAsDefaultOnDocument();
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes