Title: [210331] branches/safari-603-branch/Source/WebCore
- Revision
- 210331
- Author
- [email protected]
- Date
- 2017-01-05 09:08:20 -0800 (Thu, 05 Jan 2017)
Log Message
Merge r210034. rdar://problem/29560853
Modified Paths
Diff
Modified: branches/safari-603-branch/Source/WebCore/ChangeLog (210330 => 210331)
--- branches/safari-603-branch/Source/WebCore/ChangeLog 2017-01-05 16:17:22 UTC (rev 210330)
+++ branches/safari-603-branch/Source/WebCore/ChangeLog 2017-01-05 17:08:20 UTC (rev 210331)
@@ -1,3 +1,22 @@
+2017-01-04 Matthew Hanson <[email protected]>
+
+ Merge r210034. rdar://problem/29560853
+
+ 2016-12-20 Alex Christensen <[email protected]>
+
+ Fix yet another app that uses initEvent with fewer than 3 parameters
+ https://bugs.webkit.org/show_bug.cgi?id=166257
+ <rdar://problem/29420268>
+
+ Reviewed by Sam Weinig.
+
+ * dom/Event.cpp:
+ (WebCore::Event::initEventForBindings):
+ * platform/RuntimeApplicationChecks.h:
+ * platform/RuntimeApplicationChecks.mm:
+ (WebCore::IOSApplication::isAutoNaviAMap):
+ AutoNavi amap has content that uses initEvent with one parameter. This quirk is needed here, too.
+
2016-12-21 Babak Shafiei <[email protected]>
Roll out r209261.
Modified: branches/safari-603-branch/Source/WebCore/dom/Event.cpp (210330 => 210331)
--- branches/safari-603-branch/Source/WebCore/dom/Event.cpp 2017-01-05 16:17:22 UTC (rev 210330)
+++ branches/safari-603-branch/Source/WebCore/dom/Event.cpp 2017-01-05 17:08:20 UTC (rev 210331)
@@ -95,7 +95,8 @@
#if PLATFORM(IOS)
// FIXME: Temporary quirk for Baidu Nuomi App which calls initEvent() with too few parameters (rdar://problem/28707838).
// FIXME: Quirk also needed for Flipboard for same reason (rdar://problem/28264190).
- if (IOSApplication::isBaiduNuomi() || IOSApplication::isFlipboard()) {
+ // FIXME: We really ought to consider if this is web compatible. AutoNavi also uses initEvent with one parameter. rdar://problem/29420268
+ if (IOSApplication::isBaiduNuomi() || IOSApplication::isFlipboard() || IOSApplication::isAutoNaviAMap()) {
scriptExecutionContext.addConsoleMessage(MessageSource::JS, MessageLevel::Warning, ASCIILiteral("Calling Event.prototype.initEvent() with less than 3 parameters is deprecated."));
initEvent(type, bubbles, false);
return { };
Modified: branches/safari-603-branch/Source/WebCore/platform/RuntimeApplicationChecks.h (210330 => 210331)
--- branches/safari-603-branch/Source/WebCore/platform/RuntimeApplicationChecks.h 2017-01-05 16:17:22 UTC (rev 210330)
+++ branches/safari-603-branch/Source/WebCore/platform/RuntimeApplicationChecks.h 2017-01-05 17:08:20 UTC (rev 210331)
@@ -78,6 +78,7 @@
WEBCORE_EXPORT bool isTheSecretSocietyHiddenMystery();
bool isBaiduNuomi();
bool isFlipboard();
+bool isAutoNaviAMap();
} // IOSApplication
Modified: branches/safari-603-branch/Source/WebCore/platform/RuntimeApplicationChecks.mm (210330 => 210331)
--- branches/safari-603-branch/Source/WebCore/platform/RuntimeApplicationChecks.mm 2017-01-05 16:17:22 UTC (rev 210330)
+++ branches/safari-603-branch/Source/WebCore/platform/RuntimeApplicationChecks.mm 2017-01-05 17:08:20 UTC (rev 210331)
@@ -259,6 +259,12 @@
return isBaiduNuomi;
}
+bool IOSApplication::isAutoNaviAMap()
+{
+ static bool isBaiduNuomi = applicationBundleIsEqualTo("com.autonavi.amap");
+ return isBaiduNuomi;
+}
+
bool IOSApplication::isFlipboard()
{
static bool isFlipboard = applicationBundleIsEqualTo("com.flipboard.flipboard-ipad");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes