<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[197628] trunk/Source</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/197628">197628</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-03-05 19:28:54 -0800 (Sat, 05 Mar 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
https://bugs.webkit.org/show_bug.cgi?id=155035
Reviewed by Darin Adler.
Source/WebCore:
Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS into
one file. The following changes were made:
- The checks now all rely on applicationBundleIdentifier(), which has the
benefit of working in WK1 and WK2 UI/WebContent/Networking processes.
- Use namespaces to distinguish Mac and iOS applications instead of relying
on the method name. So, applicationIsIBooksForIOS() becomes
IOSApplication::isIBooks().
- Use NSBundle API on both iOS and Mac instead of using the CF API on Mac
and the NS API on iOS.
* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper _accessibilityWebDocumentView]):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::commonVM):
* bindings/js/JSLocationCustom.cpp:
(WebCore::JSLocation::putDelegate):
* html/HTMLMediaElement.cpp:
* html/HTMLObjectElement.cpp:
(WebCore::shouldNotPerformURLAdjustment):
* html/MediaElementSession.cpp:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::currentRunLoop):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::willLoadMediaElementURL):
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::create):
(WebCore::SubresourceLoader::startLoading):
* loader/cache/CachedScript.cpp:
(WebCore::CachedScript::shouldIgnoreHTTPStatusCodeErrors):
* platform/RuntimeApplicationChecks.cpp: Removed.
* platform/RuntimeApplicationChecks.h:
* platform/RuntimeApplicationChecks.mm: Added.
(WebCore::applicationBundleIdentifier):
(WebCore::applicationBundleIsEqualTo):
(WebCore::MacApplication::isSafari):
(WebCore::MacApplication::isAppleMail):
(WebCore::MacApplication::isIBooks):
(WebCore::MacApplication::isITunes):
(WebCore::MacApplication::isMicrosoftMessenger):
(WebCore::MacApplication::isAdobeInstaller):
(WebCore::MacApplication::isAOLInstantMessenger):
(WebCore::MacApplication::isMicrosoftMyDay):
(WebCore::MacApplication::isMicrosoftOutlook):
(WebCore::MacApplication::isQuickenEssentials):
(WebCore::MacApplication::isAperture):
(WebCore::MacApplication::isVersions):
(WebCore::MacApplication::isHRBlock):
(WebCore::MacApplication::isSolidStateNetworksDownloader):
(WebCore::MacApplication::isHipChat):
(WebCore::IOSApplication::isMobileMail):
(WebCore::IOSApplication::isMobileSafari):
(WebCore::IOSApplication::isDumpRenderTree):
(WebCore::IOSApplication::isMobileStore):
(WebCore::IOSApplication::isWebApp):
(WebCore::IOSApplication::isOkCupid):
(WebCore::IOSApplication::isFacebook):
(WebCore::IOSApplication::isDaijisenDictionary):
(WebCore::IOSApplication::isNASAHD):
(WebCore::IOSApplication::isTheEconomistOnIphone):
(WebCore::IOSApplication::isWebProcess):
(WebCore::IOSApplication::isIBooks):
(WebCore::setApplicationBundleIdentifier):
* platform/RuntimeApplicationChecksIOS.h: Removed.
* platform/RuntimeApplicationChecksIOS.mm: Removed.
* platform/audio/ios/AudioDestinationIOS.cpp:
* platform/cf/URLCF.cpp:
* platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp:
(WebCore::currentRunLoop):
* platform/ios/PasteboardIOS.mm:
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
* platform/ios/wak/WebCoreThread.mm:
(WebThreadEnable):
* platform/mac/WidgetMac.mm:
(WebCore::Widget::paint):
* platform/network/ios/QuickLook.mm:
* platform/network/mac/ResourceHandleMac.mm:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack):
Source/WebKit:
Update runtime application checks.
* WebCoreSupport/WebResourceLoadScheduler.cpp:
(WebResourceLoadScheduler::servePendingRequests):
Source/WebKit/ios:
Update runtime application checks.
* WebCoreSupport/WebChromeClientIOS.mm:
Source/WebKit/mac:
Update runtime application checks.
* Plugins/WebPluginController.mm:
(initializeAudioSession):
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebView/WebFrame.mm:
(needsMicrosoftMessengerDOMDocumentWorkaround):
* WebView/WebImmediateActionController.mm:
(-[WebImmediateActionController _updateImmediateActionItem]):
* WebView/WebView.mm:
(WebKitInitializeApplicationCachePathIfNecessary):
(shouldEnableLoadDeferring):
(shouldRestrictWindowFocus):
(needsOutlookQuirksScript):
(shouldTransformsAffectOverflow):
(shouldDispatchJavaScriptWindowOnErrorEvents):
(shouldUseLegacyBackgroundSizeShorthandBehavior):
(-[WebView _commonInitializationWithFrameName:groupName:]):
(+[WebView enableWebThread]):
(+[WebView registerForMemoryNotifications]):
(-[WebView _needsKeyboardEventDisambiguationQuirks]):
(needsSelfRetainWhileLoadingQuirk):
(-[WebView _needsPreHTML5ParserQuirks]):
Source/WebKit2:
Update runtime application checks.
* UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
(API::WebsiteDataStore::defaultApplicationCacheDirectory):
* UIProcess/Cocoa/VersionChecks.mm:
(WebKit::linkedOnOrAfter):
* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::platformInitializeWebProcess):
(WebKit::WebProcessPool::legacyPlatformDefaultApplicationCacheDirectory):
* UIProcess/ios/WKContentViewInteraction.mm:
* UIProcess/mac/WebPageProxyMac.mm:
(WebKit::expectsLegacyImplicitRubberBandControl):
(WebKit::WebPageProxy::appleMailPaginationQuirkEnabled):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm">trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMWindowBasecpp">trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSLocationCustomcpp">trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLObjectElementcpp">trunk/Source/WebCore/html/HTMLObjectElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlMediaElementSessioncpp">trunk/Source/WebCore/html/MediaElementSession.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorTimelineAgentcpp">trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderFrameLoadercpp">trunk/Source/WebCore/loader/FrameLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderSubresourceLoadercpp">trunk/Source/WebCore/loader/SubresourceLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedScriptcpp">trunk/Source/WebCore/loader/cache/CachedScript.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksh">trunk/Source/WebCore/platform/RuntimeApplicationChecks.h</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioiosAudioDestinationIOScpp">trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformcfURLCFcpp">trunk/Source/WebCore/platform/cf/URLCF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscacocoaLayerFlushSchedulerMaccpp">trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformiosPasteboardIOSmm">trunk/Source/WebCore/platform/ios/PasteboardIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKitmm">trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformioswakWebCoreThreadmm">trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacWidgetMacmm">trunk/Source/WebCore/platform/mac/WidgetMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkiosQuickLookmm">trunk/Source/WebCore/platform/network/ios/QuickLook.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkmacResourceHandleMacmm">trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/Source/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebCoreSupportWebResourceLoadSchedulercpp">trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp</a></li>
<li><a href="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosWebCoreSupportWebChromeClientIOSmm">trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacPluginsWebPluginControllermm">trunk/Source/WebKit/mac/Plugins/WebPluginController.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebFrameLoaderClientmm">trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebFramemm">trunk/Source/WebKit/mac/WebView/WebFrame.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebImmediateActionControllermm">trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaAPIWebsiteDataStoreCocoamm">trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaVersionChecksmm">trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaWebProcessPoolCocoamm">trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessiosWKContentViewInteractionmm">trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWebPageProxyMacmm">trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksmm">trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationCheckscpp">trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksIOSh">trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksIOSmm">trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/CMakeLists.txt        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -2120,7 +2120,6 @@
</span><span class="cx"> platform/PlatformSpeechSynthesizer.cpp
</span><span class="cx"> platform/PlatformStrategies.cpp
</span><span class="cx"> platform/RemoteCommandListener.cpp
</span><del>- platform/RuntimeApplicationChecks.cpp
</del><span class="cx"> platform/SchemeRegistry.cpp
</span><span class="cx"> platform/ScrollAnimator.cpp
</span><span class="cx"> platform/ScrollView.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,91 @@
</span><ins>+2016-03-05 Chris Dumez <cdumez@apple.com>
+
+ Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+ https://bugs.webkit.org/show_bug.cgi?id=155035
+
+ Reviewed by Darin Adler.
+
+ Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS into
+ one file. The following changes were made:
+ - The checks now all rely on applicationBundleIdentifier(), which has the
+ benefit of working in WK1 and WK2 UI/WebContent/Networking processes.
+ - Use namespaces to distinguish Mac and iOS applications instead of relying
+ on the method name. So, applicationIsIBooksForIOS() becomes
+ IOSApplication::isIBooks().
+ - Use NSBundle API on both iOS and Mac instead of using the CF API on Mac
+ and the NS API on iOS.
+
+ * CMakeLists.txt:
+ * WebCore.xcodeproj/project.pbxproj:
+ * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
+ (-[WebAccessibilityObjectWrapper _accessibilityWebDocumentView]):
+ * bindings/js/JSDOMWindowBase.cpp:
+ (WebCore::JSDOMWindowBase::commonVM):
+ * bindings/js/JSLocationCustom.cpp:
+ (WebCore::JSLocation::putDelegate):
+ * html/HTMLMediaElement.cpp:
+ * html/HTMLObjectElement.cpp:
+ (WebCore::shouldNotPerformURLAdjustment):
+ * html/MediaElementSession.cpp:
+ * inspector/InspectorTimelineAgent.cpp:
+ (WebCore::currentRunLoop):
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::willLoadMediaElementURL):
+ * loader/SubresourceLoader.cpp:
+ (WebCore::SubresourceLoader::create):
+ (WebCore::SubresourceLoader::startLoading):
+ * loader/cache/CachedScript.cpp:
+ (WebCore::CachedScript::shouldIgnoreHTTPStatusCodeErrors):
+ * platform/RuntimeApplicationChecks.cpp: Removed.
+ * platform/RuntimeApplicationChecks.h:
+ * platform/RuntimeApplicationChecks.mm: Added.
+ (WebCore::applicationBundleIdentifier):
+ (WebCore::applicationBundleIsEqualTo):
+ (WebCore::MacApplication::isSafari):
+ (WebCore::MacApplication::isAppleMail):
+ (WebCore::MacApplication::isIBooks):
+ (WebCore::MacApplication::isITunes):
+ (WebCore::MacApplication::isMicrosoftMessenger):
+ (WebCore::MacApplication::isAdobeInstaller):
+ (WebCore::MacApplication::isAOLInstantMessenger):
+ (WebCore::MacApplication::isMicrosoftMyDay):
+ (WebCore::MacApplication::isMicrosoftOutlook):
+ (WebCore::MacApplication::isQuickenEssentials):
+ (WebCore::MacApplication::isAperture):
+ (WebCore::MacApplication::isVersions):
+ (WebCore::MacApplication::isHRBlock):
+ (WebCore::MacApplication::isSolidStateNetworksDownloader):
+ (WebCore::MacApplication::isHipChat):
+ (WebCore::IOSApplication::isMobileMail):
+ (WebCore::IOSApplication::isMobileSafari):
+ (WebCore::IOSApplication::isDumpRenderTree):
+ (WebCore::IOSApplication::isMobileStore):
+ (WebCore::IOSApplication::isWebApp):
+ (WebCore::IOSApplication::isOkCupid):
+ (WebCore::IOSApplication::isFacebook):
+ (WebCore::IOSApplication::isDaijisenDictionary):
+ (WebCore::IOSApplication::isNASAHD):
+ (WebCore::IOSApplication::isTheEconomistOnIphone):
+ (WebCore::IOSApplication::isWebProcess):
+ (WebCore::IOSApplication::isIBooks):
+ (WebCore::setApplicationBundleIdentifier):
+ * platform/RuntimeApplicationChecksIOS.h: Removed.
+ * platform/RuntimeApplicationChecksIOS.mm: Removed.
+ * platform/audio/ios/AudioDestinationIOS.cpp:
+ * platform/cf/URLCF.cpp:
+ * platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp:
+ (WebCore::currentRunLoop):
+ * platform/ios/PasteboardIOS.mm:
+ * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+ * platform/ios/wak/WebCoreThread.mm:
+ (WebThreadEnable):
+ * platform/mac/WidgetMac.mm:
+ (WebCore::Widget::paint):
+ * platform/network/ios/QuickLook.mm:
+ * platform/network/mac/ResourceHandleMac.mm:
+ * rendering/RenderLayerBacking.cpp:
+ (WebCore::RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack):
+
</ins><span class="cx"> 2016-03-05 Zalan Bujtas <zalan@apple.com>
</span><span class="cx">
</span><span class="cx"> Make table collapsed borders subpixel aware.
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1093,7 +1093,6 @@
</span><span class="cx">                 2934940A16C02C0700901318 /* PlatformSpeechSynthesisVoice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2527CC9316BF92EC009DDAC0 /* PlatformSpeechSynthesisVoice.cpp */; };
</span><span class="cx">                 2934940B16C02C0A00901318 /* PlatformSpeechSynthesisUtterance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2527CC9516BF95DD009DDAC0 /* PlatformSpeechSynthesisUtterance.cpp */; };
</span><span class="cx">                 293EAE1F1356B2FE0067ACF9 /* RuntimeApplicationChecks.h in Headers */ = {isa = PBXBuildFile; fileRef = 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                293EAE211356B32E0067ACF9 /* RuntimeApplicationChecks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */; };
</del><span class="cx">                 29489FC712C00F0300D83F0F /* AccessibilityScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 29489FC512C00F0300D83F0F /* AccessibilityScrollView.h */; };
</span><span class="cx">                 29498683195341940072D2BD /* TextUndoInsertionMarkupMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29498681195341940072D2BD /* TextUndoInsertionMarkupMac.mm */; };
</span><span class="cx">                 297BE3D516C03C08003316BD /* PlatformSpeechSynthesisUtterance.h in Headers */ = {isa = PBXBuildFile; fileRef = 2527CC9116BF8BA1009DDAC0 /* PlatformSpeechSynthesisUtterance.h */; };
</span><span class="lines">@@ -1705,8 +1704,6 @@
</span><span class="cx">                 44A20DB90F84166C00B3E1FE /* WebCoreURLResponseIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44A20DB80F84166C00B3E1FE /* WebCoreURLResponseIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 44A28AAC12DFB8AC00AE923B /* MathMLElementFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 44A28AAB12DFB8AC00AE923B /* MathMLElementFactory.h */; };
</span><span class="cx">                 44A28AAF12DFB8BF00AE923B /* MathMLNames.h in Headers */ = {isa = PBXBuildFile; fileRef = 44A28AAE12DFB8BF00AE923B /* MathMLNames.h */; };
</span><del>-                44C363F00FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44C363EE0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
-                44C363F10FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 44C363EF0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm */; };
</del><span class="cx">                 44C991820F3D1E0D00586670 /* ScrollbarThemeIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 44C991810F3D1E0D00586670 /* ScrollbarThemeIOS.mm */; };
</span><span class="cx">                 44C991860F3D1EBE00586670 /* ScrollbarThemeIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44C991850F3D1EBE00586670 /* ScrollbarThemeIOS.h */; };
</span><span class="cx">                 44C9919F0F3D210E00586670 /* ThemeIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44C9919D0F3D210E00586670 /* ThemeIOS.h */; };
</span><span class="lines">@@ -1733,6 +1730,7 @@
</span><span class="cx">                 4634592C1AC2271000ECB71C /* PowerObserverMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4634592B1AC2271000ECB71C /* PowerObserverMac.cpp */; };
</span><span class="cx">                 463EB6221B8789E00096ED51 /* TagCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 463EB6201B8789CB0096ED51 /* TagCollection.cpp */; };
</span><span class="cx">                 463EB6231B8789E00096ED51 /* TagCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 463EB6211B8789CB0096ED51 /* TagCollection.h */; };
</span><ins>+                465A8E791C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm in Sources */ = {isa = PBXBuildFile; fileRef = 465A8E781C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm */; };
</ins><span class="cx">                 4669B2871B852A0B000F905F /* JSDOMNamedFlowCollectionCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46F2768E1B85297F005C2556 /* JSDOMNamedFlowCollectionCustom.cpp */; };
</span><span class="cx">                 467302021C4EFE7800BCB357 /* IgnoreOpensDuringUnloadCountIncrementer.h in Headers */ = {isa = PBXBuildFile; fileRef = 467302011C4EFE6600BCB357 /* IgnoreOpensDuringUnloadCountIncrementer.h */; };
</span><span class="cx">                 4689F1AF1267BAE100E8D380 /* FileMetadata.h in Headers */ = {isa = PBXBuildFile; fileRef = 4689F1AE1267BAE100E8D380 /* FileMetadata.h */; };
</span><span class="lines">@@ -8544,7 +8542,6 @@
</span><span class="cx">                 2917B5601473496C0052C9D0 /* LayerFlushSchedulerClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayerFlushSchedulerClient.h; sourceTree = "<group>"; };
</span><span class="cx">                 2917B565147349950052C9D0 /* LayerFlushSchedulerMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LayerFlushSchedulerMac.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RuntimeApplicationChecks.h; sourceTree = "<group>"; };
</span><del>-                293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RuntimeApplicationChecks.cpp; sourceTree = "<group>"; };
</del><span class="cx">                 29489FC512C00F0300D83F0F /* AccessibilityScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityScrollView.h; sourceTree = "<group>"; };
</span><span class="cx">                 29498681195341940072D2BD /* TextUndoInsertionMarkupMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextUndoInsertionMarkupMac.mm; sourceTree = "<group>"; };
</span><span class="cx">                 297BE3D916C043D8003316BD /* PlatformSpeechSynthesizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformSpeechSynthesizer.cpp; sourceTree = "<group>"; };
</span><span class="lines">@@ -9220,8 +9217,6 @@
</span><span class="cx">                 44A20DB80F84166C00B3E1FE /* WebCoreURLResponseIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreURLResponseIOS.h; sourceTree = "<group>"; };
</span><span class="cx">                 44A28AAB12DFB8AC00AE923B /* MathMLElementFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MathMLElementFactory.h; sourceTree = "<group>"; };
</span><span class="cx">                 44A28AAE12DFB8BF00AE923B /* MathMLNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MathMLNames.h; sourceTree = "<group>"; };
</span><del>-                44C363EE0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RuntimeApplicationChecksIOS.h; sourceTree = "<group>"; };
-                44C363EF0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RuntimeApplicationChecksIOS.mm; sourceTree = "<group>"; };
</del><span class="cx">                 44C991810F3D1E0D00586670 /* ScrollbarThemeIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ScrollbarThemeIOS.mm; sourceTree = "<group>"; };
</span><span class="cx">                 44C991850F3D1EBE00586670 /* ScrollbarThemeIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollbarThemeIOS.h; sourceTree = "<group>"; };
</span><span class="cx">                 44C9919D0F3D210E00586670 /* ThemeIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThemeIOS.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -9250,6 +9245,7 @@
</span><span class="cx">                 4634592B1AC2271000ECB71C /* PowerObserverMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PowerObserverMac.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 463EB6201B8789CB0096ED51 /* TagCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TagCollection.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 463EB6211B8789CB0096ED51 /* TagCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TagCollection.h; sourceTree = "<group>"; };
</span><ins>+                465A8E781C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RuntimeApplicationChecks.mm; sourceTree = "<group>"; };
</ins><span class="cx">                 467302011C4EFE6600BCB357 /* IgnoreOpensDuringUnloadCountIncrementer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IgnoreOpensDuringUnloadCountIncrementer.h; sourceTree = "<group>"; };
</span><span class="cx">                 4689F1AE1267BAE100E8D380 /* FileMetadata.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileMetadata.h; sourceTree = "<group>"; };
</span><span class="cx">                 46B63F6B1C6E8CDF002E914B /* JSEventTargetCustom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventTargetCustom.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -22936,10 +22932,8 @@
</span><span class="cx">                                 9831AE49154225A200FE2644 /* ReferrerPolicy.h */,
</span><span class="cx">                                 CDFC360318CA61C20026E56F /* RemoteCommandListener.cpp */,
</span><span class="cx">                                 CDFC360418CA61C20026E56F /* RemoteCommandListener.h */,
</span><del>-                                293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */,
</del><ins>+                                465A8E781C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm */,
</ins><span class="cx">                                 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */,
</span><del>-                                44C363EE0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h */,
-                                44C363EF0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm */,
</del><span class="cx">                                 5162C7F211F77EFA00612EFE /* SchemeRegistry.cpp */,
</span><span class="cx">                                 5162C7F311F77EFB00612EFE /* SchemeRegistry.h */,
</span><span class="cx">                                 5141298F1C601A890059E714 /* ScopeGuard.h */,
</span><span class="lines">@@ -27736,7 +27730,6 @@
</span><span class="cx">                                 1A569D230D7E2B82007C3983 /* runtime_object.h in Headers */,
</span><span class="cx">                                 1A569D250D7E2B82007C3983 /* runtime_root.h in Headers */,
</span><span class="cx">                                 293EAE1F1356B2FE0067ACF9 /* RuntimeApplicationChecks.h in Headers */,
</span><del>-                                44C363F00FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h in Headers */,
</del><span class="cx">                                 8C6EA61A11EF7E0400FD8EE3 /* RuntimeEnabledFeatures.h in Headers */,
</span><span class="cx">                                 CDD7089718359F6F002B3DC6 /* SampleMap.h in Headers */,
</span><span class="cx">                                 49E911CB0EF86D47009D0CAF /* ScaleTransformOperation.h in Headers */,
</span><span class="lines">@@ -31355,8 +31348,6 @@
</span><span class="cx">                                 1A569D200D7E2B82007C3983 /* runtime_method.cpp in Sources */,
</span><span class="cx">                                 1A569D220D7E2B82007C3983 /* runtime_object.cpp in Sources */,
</span><span class="cx">                                 1A569D240D7E2B82007C3983 /* runtime_root.cpp in Sources */,
</span><del>-                                293EAE211356B32E0067ACF9 /* RuntimeApplicationChecks.cpp in Sources */,
-                                44C363F10FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm in Sources */,
</del><span class="cx">                                 8C6EA61911EF7E0400FD8EE3 /* RuntimeEnabledFeatures.cpp in Sources */,
</span><span class="cx">                                 CDD7089618359F6F002B3DC6 /* SampleMap.cpp in Sources */,
</span><span class="cx">                                 49E911CA0EF86D47009D0CAF /* ScaleTransformOperation.cpp in Sources */,
</span><span class="lines">@@ -31466,6 +31457,7 @@
</span><span class="cx">                                 C5A1EA7C152BCF04004D00B6 /* SimplifyMarkupCommand.cpp in Sources */,
</span><span class="cx">                                 572A7F231C6E5A66009C6149 /* SimulatedClick.cpp in Sources */,
</span><span class="cx">                                 FD00D7A414A3F61900734011 /* SincResampler.cpp in Sources */,
</span><ins>+                                465A8E791C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm in Sources */,
</ins><span class="cx">                                 51327D6111A33A2B004F9D65 /* SinkDocument.cpp in Sources */,
</span><span class="cx">                                 49E911CC0EF86D47009D0CAF /* SkewTransformOperation.cpp in Sources */,
</span><span class="cx">                                 4150F9F212B6E0E70008C860 /* SliderThumbElement.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> #import "Page.h"
</span><span class="cx"> #import "Range.h"
</span><span class="cx"> #import "RenderView.h"
</span><del>-#import "RuntimeApplicationChecksIOS.h"
</del><ins>+#import "RuntimeApplicationChecks.h"
</ins><span class="cx"> #import "SVGNames.h"
</span><span class="cx"> #import "SVGElement.h"
</span><span class="cx"> #import "TextIterator.h"
</span><span class="lines">@@ -1554,7 +1554,7 @@
</span><span class="cx"> // The parentView should have an accessibilityContainer, if the UIKit accessibility bundle was loaded.
</span><span class="cx"> // The exception is DRT, which tests accessibility without the entire system turning accessibility on. Hence,
</span><span class="cx"> // this check should be valid for everything except DRT.
</span><del>- ASSERT([parentView accessibilityContainer] || applicationIsDumpRenderTree());
</del><ins>+ ASSERT([parentView accessibilityContainer] || IOSApplication::isDumpRenderTree());
</ins><span class="cx">
</span><span class="cx"> return [parentView accessibilityContainer];
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMWindowBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -264,7 +264,7 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(MAC)
</span><del>- if (applicationIsITunes() || applicationIsIBooks() || Settings::shouldRewriteConstAsVar())
</del><ins>+ if (MacApplication::isITunes() || MacApplication::isIBooks() || Settings::shouldRewriteConstAsVar())
</ins><span class="cx"> vm->setShouldRewriteConstAsVar(true);
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSLocationCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx"> // FIXME: HipChat tries to set Location.reload which causes an exception to be thrown in strict mode (see <rdar://problem/24931959>).
</span><del>- if (applicationIsHipChat())
</del><ins>+ if (MacApplication::isHipChat())
</ins><span class="cx"> slot.setStrictMode(false);
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #include "WebVideoFullscreenInterfaceAVKit.h"
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLObjectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLObjectElement.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #include "DynamicLinkerSPI.h"
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> static bool shouldNotPerformURLAdjustment()
</span><span class="cx"> {
</span><del>- static bool shouldNotPerformURLAdjustment = applicationIsNASAHD() && dyld_get_program_sdk_version() < DYLD_IOS_VERSION_5_0;
</del><ins>+ static bool shouldNotPerformURLAdjustment = IOSApplication::isNASAHD() && dyld_get_program_sdk_version() < DYLD_IOS_VERSION_5_0;
</ins><span class="cx"> return shouldNotPerformURLAdjustment;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlMediaElementSessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/MediaElementSession.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/MediaElementSession.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/html/MediaElementSession.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #include "AudioSession.h"
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorTimelineAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> #include <wtf/Stopwatch.h>
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #include <WebCore/WebCoreThread.h>
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> // we still allow this, see <rdar://problem/7403328>. Since the race condition and subsequent
</span><span class="cx"> // crash are especially troublesome for iBooks, we never allow the observer to be added to the
</span><span class="cx"> // main run loop in iBooks.
</span><del>- if (applicationIsIBooksOnIOS())
</del><ins>+ if (IOSApplication::isIBooks())
</ins><span class="cx"> return WebThreadRunLoop();
</span><span class="cx"> #endif
</span><span class="cx"> return CFRunLoopGetCurrent();
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFrameLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FrameLoader.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -135,7 +135,7 @@
</span><span class="cx"> #include "DocumentType.h"
</span><span class="cx"> #include "MemoryPressureHandler.h"
</span><span class="cx"> #include "ResourceLoader.h"
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #include "SystemMemory.h"
</span><span class="cx"> #include "WKContentObservation.h"
</span><span class="cx"> #endif
</span><span class="lines">@@ -1475,7 +1475,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> // MobileStore depends on the iOS 4.0 era client delegate method because webView:resource:willSendRequest:redirectResponse:fromDataSource
</span><span class="cx"> // doesn't let them tell when a load request is coming from a media element. See <rdar://problem/8266916> for more details.
</span><del>- if (applicationIsMobileStore())
</del><ins>+ if (IOSApplication::isMobileStore())
</ins><span class="cx"> return m_client.shouldLoadMediaElementURL(url);
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderSubresourceLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/SubresourceLoader.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/SubresourceLoader.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/loader/SubresourceLoader.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx"> #include <wtf/text/CString.h>
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include <RuntimeApplicationChecksIOS.h>
</del><ins>+#include <RuntimeApplicationChecks.h>
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CONTENT_EXTENSIONS)
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> {
</span><span class="cx"> RefPtr<SubresourceLoader> subloader(adoptRef(new SubresourceLoader(frame, resource, options)));
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>- if (!applicationIsWebProcess()) {
</del><ins>+ if (!IOSApplication::isWebProcess()) {
</ins><span class="cx"> // On iOS, do not invoke synchronous resource load delegates while resource load scheduling
</span><span class="cx"> // is disabled to avoid re-entering style selection from a different thread (see <rdar://problem/9121719>).
</span><span class="cx"> // FIXME: This should be fixed for all ports in <https://bugs.webkit.org/show_bug.cgi?id=56647>.
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> bool SubresourceLoader::startLoading()
</span><span class="cx"> {
</span><del>- ASSERT(!applicationIsWebProcess());
</del><ins>+ ASSERT(!IOSApplication::isWebProcess());
</ins><span class="cx"> if (!init(m_iOSOriginalRequest))
</span><span class="cx"> return false;
</span><span class="cx"> m_iOSOriginalRequest = ResourceRequest();
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedScriptcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedScript.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedScript.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/loader/cache/CachedScript.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -131,14 +131,16 @@
</span><span class="cx">
</span><span class="cx"> bool CachedScript::shouldIgnoreHTTPStatusCodeErrors() const
</span><span class="cx"> {
</span><ins>+#if PLATFORM(MAC)
</ins><span class="cx"> // This is a workaround for <rdar://problem/13916291>
</span><span class="cx"> // REGRESSION (r119759): Adobe Flash Player "smaller" installer relies on the incorrect firing
</span><span class="cx"> // of a load event and needs an app-specific hack for compatibility.
</span><span class="cx"> // The installer in question tries to load .js file that doesn't exist, causing the server to
</span><span class="cx"> // return a 404 response. Normally, this would trigger an error event to be dispatched, but the
</span><span class="cx"> // installer expects a load event instead so we work around it here.
</span><del>- if (applicationIsSolidStateNetworksDownloader())
</del><ins>+ if (MacApplication::isSolidStateNetworksDownloader())
</ins><span class="cx"> return true;
</span><ins>+#endif
</ins><span class="cx">
</span><span class="cx"> return CachedResource::shouldIgnoreHTTPStatusCodeErrors();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationCheckscpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,183 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "RuntimeApplicationChecks.h"
-
-#include <wtf/NeverDestroyed.h>
-#include <wtf/RunLoop.h>
-#include <wtf/text/WTFString.h>
-
-#if USE(CF)
-#include <CoreFoundation/CoreFoundation.h>
-#include <wtf/RetainPtr.h>
-#endif
-
-namespace WebCore {
-
-#if USE(CF)
-static CFStringRef mainBundleIdentifier()
-{
- CFBundleRef mainBundle = CFBundleGetMainBundle();
- if (!mainBundle)
- return nullptr;
-
- return CFBundleGetIdentifier(mainBundle);
-}
-#endif
-
-// The application bundle identifier gets set to the UIProcess bundle identifier by the WebProcess and
-// the networking process upon initialization.
-// If not explicitly set, this will return the main bundle identifier which is accurate for WK1 or
-// the WK2 UIProcess.
-static String& applicationBundleIdentifier()
-{
- ASSERT(RunLoop::isMain());
-
-#if USE(CF)
- static NeverDestroyed<String> identifier(mainBundleIdentifier());
-#else
- static NeverDestroyed<String> identifier;
-#endif
-
- return identifier;
-}
-
-// FIXME: This should probably be renamed to applicationBundleIsEqualTo() and use applicationBundleIdentifier()
-// instead of mainBundleIdentifier() internally. This would have the benefit of working for both WebKit1 and
-// WebKit2.
-static bool mainBundleIsEqualTo(const String& bundleIdentifierString)
-{
- // FIXME: We should consider merging this file with RuntimeApplicationChecksIOS.mm.
- // Then we can remove the PLATFORM(IOS)-guard.
-#if USE(CF) && !PLATFORM(IOS)
- CFStringRef bundleIdentifier = mainBundleIdentifier();
- if (!bundleIdentifier)
- return false;
-
- return CFStringCompare(bundleIdentifier, bundleIdentifierString.createCFString().get(), 0) == kCFCompareEqualTo;
-#else
- UNUSED_PARAM(bundleIdentifierString);
- return false;
-#endif
-}
-
-bool applicationIsSafari()
-{
- static bool isSafari = mainBundleIsEqualTo("com.apple.Safari");
- return isSafari;
-}
-
-bool applicationIsAppleMail()
-{
- static bool isAppleMail = mainBundleIsEqualTo("com.apple.mail");
- return isAppleMail;
-}
-
-bool applicationIsIBooks()
-{
- static bool isIBooks = mainBundleIsEqualTo("com.apple.iBooksX");
- return isIBooks;
-}
-
-bool applicationIsITunes()
-{
- static bool isITunes = mainBundleIsEqualTo("com.apple.iTunes");
- return isITunes;
-}
-
-bool applicationIsMicrosoftMessenger()
-{
- static bool isMicrosoftMessenger = mainBundleIsEqualTo("com.microsoft.Messenger");
- return isMicrosoftMessenger;
-}
-
-bool applicationIsAdobeInstaller()
-{
- static bool isAdobeInstaller = mainBundleIsEqualTo("com.adobe.Installers.Setup");
- return isAdobeInstaller;
-}
-
-bool applicationIsAOLInstantMessenger()
-{
- static bool isAOLInstantMessenger = mainBundleIsEqualTo("com.aol.aim.desktop");
- return isAOLInstantMessenger;
-}
-
-bool applicationIsMicrosoftMyDay()
-{
- static bool isMicrosoftMyDay = mainBundleIsEqualTo("com.microsoft.myday");
- return isMicrosoftMyDay;
-}
-
-bool applicationIsMicrosoftOutlook()
-{
- static bool isMicrosoftOutlook = mainBundleIsEqualTo("com.microsoft.Outlook");
- return isMicrosoftOutlook;
-}
-
-bool applicationIsQuickenEssentials()
-{
- static bool isQuickenEssentials = mainBundleIsEqualTo("com.intuit.QuickenEssentials");
- return isQuickenEssentials;
-}
-
-bool applicationIsAperture()
-{
- static bool isAperture = mainBundleIsEqualTo("com.apple.Aperture");
- return isAperture;
-}
-
-bool applicationIsVersions()
-{
- static bool isVersions = mainBundleIsEqualTo("com.blackpixel.versions");
- return isVersions;
-}
-
-bool applicationIsHRBlock()
-{
- static bool isHRBlock = mainBundleIsEqualTo("com.hrblock.tax.2010");
- return isHRBlock;
-}
-
-bool applicationIsSolidStateNetworksDownloader()
-{
- static bool isSolidStateNetworksDownloader = mainBundleIsEqualTo("com.solidstatenetworks.awkhost");
- return isSolidStateNetworksDownloader;
-}
-
-bool applicationIsHipChat()
-{
- static bool isHipChat = applicationBundleIdentifier() == "com.hipchat.HipChat";
- ASSERT_WITH_MESSAGE(isHipChat == (applicationBundleIdentifier() == "com.hipchat.HipChat"), "Should not be called before setApplicationBundleIdentifier()");
- return isHipChat;
-}
-
-void setApplicationBundleIdentifier(const String& bundleIdentifier)
-{
- applicationBundleIdentifier() = bundleIdentifier;
-}
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/RuntimeApplicationChecks.h (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.h        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.h        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -26,28 +26,60 @@
</span><span class="cx"> #ifndef RuntimeApplicationChecks_h
</span><span class="cx"> #define RuntimeApplicationChecks_h
</span><span class="cx">
</span><ins>+#if PLATFORM(COCOA)
</ins><span class="cx"> #include <wtf/Forward.h>
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-WEBCORE_EXPORT bool applicationIsAOLInstantMessenger();
-WEBCORE_EXPORT bool applicationIsAdobeInstaller();
-WEBCORE_EXPORT bool applicationIsAperture();
-WEBCORE_EXPORT bool applicationIsAppleMail();
-WEBCORE_EXPORT bool applicationIsIBooks();
-WEBCORE_EXPORT bool applicationIsITunes();
-WEBCORE_EXPORT bool applicationIsMicrosoftMessenger();
-WEBCORE_EXPORT bool applicationIsMicrosoftMyDay();
-WEBCORE_EXPORT bool applicationIsMicrosoftOutlook();
-bool applicationIsQuickenEssentials();
-WEBCORE_EXPORT bool applicationIsSafari();
-bool applicationIsSolidStateNetworksDownloader();
-WEBCORE_EXPORT bool applicationIsVersions();
-WEBCORE_EXPORT bool applicationIsHRBlock();
-WEBCORE_EXPORT bool applicationIsHipChat();
-
</del><span class="cx"> WEBCORE_EXPORT void setApplicationBundleIdentifier(const String&);
</span><span class="cx">
</span><ins>+#if PLATFORM(MAC)
+
+namespace MacApplication {
+
+WEBCORE_EXPORT bool isAOLInstantMessenger();
+WEBCORE_EXPORT bool isAdobeInstaller();
+WEBCORE_EXPORT bool isAperture();
+WEBCORE_EXPORT bool isAppleMail();
+WEBCORE_EXPORT bool isIBooks();
+WEBCORE_EXPORT bool isITunes();
+WEBCORE_EXPORT bool isMicrosoftMessenger();
+WEBCORE_EXPORT bool isMicrosoftMyDay();
+WEBCORE_EXPORT bool isMicrosoftOutlook();
+bool isQuickenEssentials();
+WEBCORE_EXPORT bool isSafari();
+bool isSolidStateNetworksDownloader();
+WEBCORE_EXPORT bool isVersions();
+WEBCORE_EXPORT bool isHRBlock();
+WEBCORE_EXPORT bool isHipChat();
+
+} // MacApplication
+
+#endif // PLATFORM(MAC)
+
+#if PLATFORM(IOS)
+
+namespace IOSApplication {
+
+WEBCORE_EXPORT bool isMobileMail();
+WEBCORE_EXPORT bool isMobileSafari();
+bool isDumpRenderTree();
+bool isMobileStore();
+WEBCORE_EXPORT bool isWebApp();
+WEBCORE_EXPORT bool isOkCupid();
+WEBCORE_EXPORT bool isFacebook();
+WEBCORE_EXPORT bool isDaijisenDictionary();
+bool isNASAHD();
+WEBCORE_EXPORT bool isTheEconomistOnIphone();
+WEBCORE_EXPORT bool isWebProcess();
+bool isIBooks();
+
+} // IOSApplication
+
+#endif // PLATFORM(IOS)
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span><ins>+#endif // PLATFORM(COCOA)
+
</ins><span class="cx"> #endif // RuntimeApplicationChecks_h
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksmm"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm (0 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm         (rev 0)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -0,0 +1,261 @@
</span><ins>+/*
+ * Copyright (C) 2011, 2016 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "config.h"
+#import "RuntimeApplicationChecks.h"
+
+#import <Foundation/NSBundle.h>
+#import <wtf/NeverDestroyed.h>
+#import <wtf/RunLoop.h>
+#import <wtf/text/WTFString.h>
+
+namespace WebCore {
+
+// The application bundle identifier gets set to the UIProcess bundle identifier by the WebProcess and
+// the networking process upon initialization.
+// If not explicitly set, this will return the main bundle identifier which is accurate for WK1 or
+// the WK2 UIProcess.
+static String& applicationBundleIdentifier()
+{
+ ASSERT(RunLoop::isMain());
+
+ static NeverDestroyed<String> identifier([[NSBundle mainBundle] bundleIdentifier]);
+
+ return identifier;
+}
+
+void setApplicationBundleIdentifier(const String& bundleIdentifier)
+{
+ applicationBundleIdentifier() = bundleIdentifier;
+}
+
+static bool applicationBundleIsEqualTo(const String& bundleIdentifierString)
+{
+ return applicationBundleIdentifier() == bundleIdentifierString;
+}
+
+#if PLATFORM(MAC)
+
+bool MacApplication::isSafari()
+{
+ static bool isSafari = applicationBundleIsEqualTo("com.apple.Safari");
+ ASSERT_WITH_MESSAGE(isSafari == applicationBundleIsEqualTo("com.apple.Safari"), "Should not be called before setApplicationBundleIdentifier()");
+ return isSafari;
+}
+
+bool MacApplication::isAppleMail()
+{
+ static bool isAppleMail = applicationBundleIsEqualTo("com.apple.mail");
+ ASSERT_WITH_MESSAGE(isAppleMail == applicationBundleIsEqualTo("com.apple.mail"), "Should not be called before setApplicationBundleIdentifier()");
+ return isAppleMail;
+}
+
+bool MacApplication::isIBooks()
+{
+ static bool isIBooks = applicationBundleIsEqualTo("com.apple.iBooksX");
+ ASSERT_WITH_MESSAGE(isIBooks == applicationBundleIsEqualTo("com.apple.iBooksX"), "Should not be called before setApplicationBundleIdentifier()");
+ return isIBooks;
+}
+
+bool MacApplication::isITunes()
+{
+ static bool isITunes = applicationBundleIsEqualTo("com.apple.iTunes");
+ ASSERT_WITH_MESSAGE(isITunes == applicationBundleIsEqualTo("com.apple.iTunes"), "Should not be called before setApplicationBundleIdentifier()");
+ return isITunes;
+}
+
+bool MacApplication::isMicrosoftMessenger()
+{
+ static bool isMicrosoftMessenger = applicationBundleIsEqualTo("com.microsoft.Messenger");
+ ASSERT_WITH_MESSAGE(isMicrosoftMessenger == applicationBundleIsEqualTo("com.microsoft.Messenger"), "Should not be called before setApplicationBundleIdentifier()");
+ return isMicrosoftMessenger;
+}
+
+bool MacApplication::isAdobeInstaller()
+{
+ static bool isAdobeInstaller = applicationBundleIsEqualTo("com.adobe.Installers.Setup");
+ ASSERT_WITH_MESSAGE(isAdobeInstaller == applicationBundleIsEqualTo("com.adobe.Installers.Setup"), "Should not be called before setApplicationBundleIdentifier()");
+ return isAdobeInstaller;
+}
+
+bool MacApplication::isAOLInstantMessenger()
+{
+ static bool isAOLInstantMessenger = applicationBundleIsEqualTo("com.aol.aim.desktop");
+ ASSERT_WITH_MESSAGE(isAOLInstantMessenger == applicationBundleIsEqualTo("com.aol.aim.desktop"), "Should not be called before setApplicationBundleIdentifier()");
+ return isAOLInstantMessenger;
+}
+
+bool MacApplication::isMicrosoftMyDay()
+{
+ static bool isMicrosoftMyDay = applicationBundleIsEqualTo("com.microsoft.myday");
+ ASSERT_WITH_MESSAGE(isMicrosoftMyDay == applicationBundleIsEqualTo("com.microsoft.myday"), "Should not be called before setApplicationBundleIdentifier()");
+ return isMicrosoftMyDay;
+}
+
+bool MacApplication::isMicrosoftOutlook()
+{
+ static bool isMicrosoftOutlook = applicationBundleIsEqualTo("com.microsoft.Outlook");
+ ASSERT_WITH_MESSAGE(isMicrosoftOutlook == applicationBundleIsEqualTo("com.microsoft.Outlook"), "Should not be called before setApplicationBundleIdentifier()");
+ return isMicrosoftOutlook;
+}
+
+bool MacApplication::isQuickenEssentials()
+{
+ static bool isQuickenEssentials = applicationBundleIsEqualTo("com.intuit.QuickenEssentials");
+ ASSERT_WITH_MESSAGE(isQuickenEssentials == applicationBundleIsEqualTo("com.intuit.QuickenEssentials"), "Should not be called before setApplicationBundleIdentifier()");
+ return isQuickenEssentials;
+}
+
+bool MacApplication::isAperture()
+{
+ static bool isAperture = applicationBundleIsEqualTo("com.apple.Aperture");
+ ASSERT_WITH_MESSAGE(isAperture == applicationBundleIsEqualTo("com.apple.Aperture"), "Should not be called before setApplicationBundleIdentifier()");
+ return isAperture;
+}
+
+bool MacApplication::isVersions()
+{
+ static bool isVersions = applicationBundleIsEqualTo("com.blackpixel.versions");
+ ASSERT_WITH_MESSAGE(isVersions == applicationBundleIsEqualTo("com.blackpixel.versions"), "Should not be called before setApplicationBundleIdentifier()");
+ return isVersions;
+}
+
+bool MacApplication::isHRBlock()
+{
+ static bool isHRBlock = applicationBundleIsEqualTo("com.hrblock.tax.2010");
+ ASSERT_WITH_MESSAGE(isHRBlock == applicationBundleIsEqualTo("com.hrblock.tax.2010"), "Should not be called before setApplicationBundleIdentifier()");
+ return isHRBlock;
+}
+
+bool MacApplication::isSolidStateNetworksDownloader()
+{
+ static bool isSolidStateNetworksDownloader = applicationBundleIsEqualTo("com.solidstatenetworks.awkhost");
+ ASSERT_WITH_MESSAGE(isSolidStateNetworksDownloader == applicationBundleIsEqualTo("com.solidstatenetworks.awkhost"), "Should not be called before setApplicationBundleIdentifier()");
+
+ return isSolidStateNetworksDownloader;
+}
+
+bool MacApplication::isHipChat()
+{
+ static bool isHipChat = applicationBundleIsEqualTo("com.hipchat.HipChat");
+ ASSERT_WITH_MESSAGE(isHipChat == applicationBundleIsEqualTo("com.hipchat.HipChat"), "Should not be called before setApplicationBundleIdentifier()");
+ return isHipChat;
+}
+
+#endif // PLATFORM(MAC)
+
+#if PLATFORM(IOS)
+
+bool IOSApplication::isMobileMail()
+{
+ static bool isMobileMail = applicationBundleIsEqualTo("com.apple.mobilemail");
+ ASSERT_WITH_MESSAGE(isMobileMail == applicationBundleIsEqualTo("com.apple.mobilemail"), "Should not be called before setApplicationBundleIdentifier()");
+ return isMobileMail;
+}
+
+bool IOSApplication::isMobileSafari()
+{
+ static bool isMobileSafari = applicationBundleIsEqualTo("com.apple.mobilesafari");
+ ASSERT_WITH_MESSAGE(isMobileSafari == applicationBundleIsEqualTo("com.apple.mobilesafari"), "Should not be called before setApplicationBundleIdentifier()");
+ return isMobileSafari;
+}
+
+bool IOSApplication::isDumpRenderTree()
+{
+ // We use a prefix match instead of strict equality since LayoutTestRelay may launch multiple instances of
+ // DumpRenderTree where the bundle identifier of each instance has a unique suffix.
+ static bool isDumpRenderTree = applicationBundleIsEqualTo("org.webkit.DumpRenderTree"); // e.g. org.webkit.DumpRenderTree0
+ ASSERT_WITH_MESSAGE(isDumpRenderTree == applicationBundleIsEqualTo("org.webkit.DumpRenderTree"), "Should not be called before setApplicationBundleIdentifier()");
+ return isDumpRenderTree;
+}
+
+bool IOSApplication::isMobileStore()
+{
+ static bool isMobileStore = applicationBundleIsEqualTo("com.apple.MobileStore");
+ ASSERT_WITH_MESSAGE(isMobileStore == applicationBundleIsEqualTo("com.apple.MobileStore"), "Should not be called before setApplicationBundleIdentifier()");
+ return isMobileStore;
+}
+
+bool IOSApplication::isWebApp()
+{
+ static bool isWebApp = applicationBundleIsEqualTo("com.apple.webapp");
+ ASSERT_WITH_MESSAGE(isWebApp == applicationBundleIsEqualTo("com.apple.webapp"), "Should not be called before setApplicationBundleIdentifier()");
+ return isWebApp;
+}
+
+bool IOSApplication::isOkCupid()
+{
+ static bool isOkCupid = applicationBundleIsEqualTo("com.okcupid.app");
+ ASSERT_WITH_MESSAGE(isOkCupid == applicationBundleIsEqualTo("com.okcupid.app"), "Should not be called before setApplicationBundleIdentifier()");
+ return isOkCupid;
+}
+
+bool IOSApplication::isFacebook()
+{
+ static bool isFacebook = applicationBundleIsEqualTo("com.facebook.Facebook");
+ ASSERT_WITH_MESSAGE(isFacebook == applicationBundleIsEqualTo("com.facebook.Facebook"), "Should not be called before setApplicationBundleIdentifier()");
+ return isFacebook;
+}
+
+bool IOSApplication::isDaijisenDictionary()
+{
+ static bool isDaijisenDictionary = applicationBundleIsEqualTo("jp.co.shogakukan.daijisen2009i");
+ ASSERT_WITH_MESSAGE(isDaijisenDictionary == applicationBundleIsEqualTo("jp.co.shogakukan.daijisen2009i"), "Should not be called before setApplicationBundleIdentifier()");
+ return isDaijisenDictionary;
+}
+
+bool IOSApplication::isNASAHD()
+{
+ static bool isNASAHD = applicationBundleIsEqualTo("gov.nasa.NASAHD");
+ ASSERT_WITH_MESSAGE(isNASAHD == applicationBundleIsEqualTo("gov.nasa.NASAHD"), "Should not be called before setApplicationBundleIdentifier()");
+ return isNASAHD;
+}
+
+bool IOSApplication::isTheEconomistOnIphone()
+{
+ static bool isTheEconomistOnIphone = applicationBundleIsEqualTo("com.economist.iphone");
+ ASSERT_WITH_MESSAGE(isTheEconomistOnIphone == applicationBundleIsEqualTo("com.economist.iphone"), "Should not be called before setApplicationBundleIdentifier()");
+ return isTheEconomistOnIphone;
+}
+
+// FIXME: this needs to be changed when the WebProcess is changed to an XPC service.
+bool IOSApplication::isWebProcess()
+{
+ static bool isWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent.Development"]
+ || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent"]
+ || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebProcess"];
+ return isWebProcess;
+}
+
+bool IOSApplication::isIBooks()
+{
+ static bool isIBooks = applicationBundleIsEqualTo("com.apple.iBooks");
+ ASSERT_WITH_MESSAGE(isIBooks == applicationBundleIsEqualTo("com.apple.iBooks"), "Should not be called before setApplicationBundleIdentifier()");
+ return isIBooks;
+}
+
+#endif
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksIOSh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,47 +0,0 @@
</span><del>-/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef RuntimeApplicationChecksIOS_h
-#define RuntimeApplicationChecksIOS_h
-
-// FIXME: We should consider merging this file with RuntimeApplicationChecks.h.
-namespace WebCore {
-
-WEBCORE_EXPORT bool applicationIsMobileMail();
-WEBCORE_EXPORT bool applicationIsMobileSafari();
-bool applicationIsDumpRenderTree();
-bool applicationIsMobileStore();
-WEBCORE_EXPORT bool applicationIsWebApp();
-WEBCORE_EXPORT bool applicationIsOkCupid();
-WEBCORE_EXPORT bool applicationIsFacebook();
-WEBCORE_EXPORT bool applicationIsDaijisenDictionary();
-bool applicationIsNASAHD();
-WEBCORE_EXPORT bool applicationIsTheEconomistOnIPhone();
-WEBCORE_EXPORT bool applicationIsWebProcess();
-bool applicationIsIBooksOnIOS();
-
-} // namespace WebCore
-
-#endif // RuntimeApplicationChecksIOS_h
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksIOSmm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,111 +0,0 @@
</span><del>-/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-#import "RuntimeApplicationChecksIOS.h"
-
-// FIXME: We should consider merging this file with RuntimeApplicationChecks.cpp.
-#if PLATFORM(IOS)
-
-namespace WebCore {
-
-bool applicationIsMobileMail()
-{
- static const bool isMobileMail = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.mobilemail"];
- return isMobileMail;
-}
-
-bool applicationIsMobileSafari()
-{
- static const bool isMobileSafari = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.mobilesafari"];
- return isMobileSafari;
-}
-
-bool applicationIsDumpRenderTree()
-{
- // We use a prefix match instead of strict equality since LayoutTestRelay may launch multiple instances of
- // DumpRenderTree where the bundle identifier of each instance has a unique suffix.
- static const bool isDumpRenderTree = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@"org.webkit.DumpRenderTree"]; // e.g. org.webkit.DumpRenderTree0
- return isDumpRenderTree;
-}
-
-bool applicationIsMobileStore()
-{
- static const bool isMobileStore = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.MobileStore"];
- return isMobileStore;
-}
-
-bool applicationIsWebApp()
-{
- static const bool isWebApp = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.webapp"];
- return isWebApp;
-}
-
-bool applicationIsOkCupid()
-{
- static const bool isOkCupid = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.okcupid.app"];
- return isOkCupid;
-}
-
-bool applicationIsFacebook()
-{
- static const bool isFacebook = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.facebook.Facebook"];
- return isFacebook;
-}
-
-bool applicationIsDaijisenDictionary()
-{
- static const bool isDaijisenDictionary = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"jp.co.shogakukan.daijisen2009i"];
- return isDaijisenDictionary;
-}
-
-bool applicationIsNASAHD()
-{
- static const bool isNASAHD = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"gov.nasa.NASAHD"];
- return isNASAHD;
-}
-
-bool applicationIsTheEconomistOnIPhone()
-{
- static const bool isTheEconomistOnIPhone = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.economist.iphone"];
- return isTheEconomistOnIPhone;
-}
-
-// FIXME: this needs to be changed when the WebProcess is changed to an XPC service.
-bool applicationIsWebProcess()
-{
- static const bool isWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent.Development"] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent"] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebProcess"];
- return isWebProcess;
-}
-
-bool applicationIsIBooksOnIOS()
-{
- static const bool isIBooksOnIOS = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.iBooks"];
- return isIBooksOnIOS;
-}
-
-} // namespace WebCore
-
-#endif // PLATFORM(IOS)
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioiosAudioDestinationIOScpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> #include "Page.h"
</span><span class="cx"> #include "SoftLinking.h"
</span><span class="cx"> #include <AudioToolbox/AudioServices.h>
</span><del>-#include <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#include <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #include <wtf/HashSet.h>
</span><span class="cx"> #include <wtf/NeverDestroyed.h>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformcfURLCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cf/URLCF.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cf/URLCF.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/cf/URLCF.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx"> #include <wtf/text/CString.h>
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscacocoaLayerFlushSchedulerMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> #include <wtf/AutodrainedPool.h>
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #include <CoreFoundation/CFBundle.h>
</span><span class="cx"> #include <WebCore/WebCoreThread.h>
</span><span class="cx"> #endif
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> // we still allow this, see <rdar://problem/7403328>. Since the race condition and subsequent
</span><span class="cx"> // crash are especially troublesome for iBooks, we never allow the observer to be added to the
</span><span class="cx"> // main run loop in iBooks.
</span><del>- if (applicationIsIBooksOnIOS())
</del><ins>+ if (IOSApplication::isIBooks())
</ins><span class="cx"> return WebThreadRunLoop();
</span><span class="cx"> #endif
</span><span class="cx"> return CFRunLoopGetCurrent();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosPasteboardIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/PasteboardIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/PasteboardIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/ios/PasteboardIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> #import "PasteboardStrategy.h"
</span><span class="cx"> #import "PlatformStrategies.h"
</span><span class="cx"> #import "RenderImage.h"
</span><del>-#import "RuntimeApplicationChecksIOS.h"
</del><ins>+#import "RuntimeApplicationChecks.h"
</ins><span class="cx"> #import "SharedBuffer.h"
</span><span class="cx"> #import "SoftLinking.h"
</span><span class="cx"> #import "Text.h"
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKitmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> #import "AVKitSPI.h"
</span><span class="cx"> #import "GeometryUtilities.h"
</span><span class="cx"> #import "Logging.h"
</span><del>-#import "RuntimeApplicationChecksIOS.h"
</del><ins>+#import "RuntimeApplicationChecks.h"
</ins><span class="cx"> #import "TimeRanges.h"
</span><span class="cx"> #import "WebCoreSystemInterface.h"
</span><span class="cx"> #import "WebVideoFullscreenChangeObserver.h"
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformioswakWebCoreThreadmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -30,8 +30,8 @@
</span><span class="cx">
</span><span class="cx"> #import "FloatingPointEnvironment.h"
</span><span class="cx"> #import "JSDOMWindowBase.h"
</span><ins>+#import "RuntimeApplicationChecks.h"
</ins><span class="cx"> #import "ThreadGlobalData.h"
</span><del>-#import "RuntimeApplicationChecksIOS.h"
</del><span class="cx"> #import "WebCoreThreadInternal.h"
</span><span class="cx"> #import "WebCoreThreadMessage.h"
</span><span class="cx"> #import "WebCoreThreadRun.h"
</span><span class="lines">@@ -1000,7 +1000,7 @@
</span><span class="cx">
</span><span class="cx"> void WebThreadEnable(void)
</span><span class="cx"> {
</span><del>- RELEASE_ASSERT_WITH_MESSAGE(!WebCore::applicationIsWebProcess(), "The WebProcess should never run a Web Thread");
</del><ins>+ RELEASE_ASSERT_WITH_MESSAGE(!WebCore::IOSApplication::isWebProcess(), "The WebProcess should never run a Web Thread");
</ins><span class="cx">
</span><span class="cx"> static pthread_once_t initControl = PTHREAD_ONCE_INIT;
</span><span class="cx"> pthread_once(&initControl, StartWebThread);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacWidgetMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/WidgetMac.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/WidgetMac.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/mac/WidgetMac.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -194,9 +194,13 @@
</span><span class="cx"> // We don't want to paint the view at all if it's layer backed, because then we'll end up
</span><span class="cx"> // with multiple copies of the view contents, one in the view's layer itself and one in the
</span><span class="cx"> // WebHTMLView's backing store (either a layer or the window backing store).
</span><del>- // However, Quicken Essentials has a plug-in that depends on drawing to update the layer (see <rdar://problem/15221231>).
- if (view.layer && !applicationIsQuickenEssentials())
</del><ins>+ if (view.layer) {
+#if PLATFORM(MAC)
+ // However, Quicken Essentials has a plug-in that depends on drawing to update the layer (see <rdar://problem/15221231>).
+ if (!MacApplication::isQuickenEssentials())
+#endif
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Take a reference to this Widget, because sending messages to the views can invoke arbitrary
</span><span class="cx"> // code, which can deref it.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkiosQuickLookmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/ios/QuickLook.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/ios/QuickLook.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/network/ios/QuickLook.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> #import "ResourceError.h"
</span><span class="cx"> #import "ResourceHandle.h"
</span><span class="cx"> #import "ResourceLoader.h"
</span><del>-#import "RuntimeApplicationChecksIOS.h"
</del><ins>+#import "RuntimeApplicationChecks.h"
</ins><span class="cx"> #import "SynchronousResourceHandleCFURLConnectionDelegate.h"
</span><span class="cx"> #import "WebCoreResourceHandleAsDelegate.h"
</span><span class="cx"> #import "WebCoreURLResponseIOS.h"
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkmacResourceHandleMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #import "CFNetworkSPI.h"
</span><del>-#import "RuntimeApplicationChecksIOS.h"
</del><ins>+#import "RuntimeApplicationChecks.h"
</ins><span class="cx"> #import "WebCoreThreadRun.h"
</span><span class="cx">
</span><span class="cx"> @interface NSURLRequest ()
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include "RuntimeApplicationChecksIOS.h"
</del><ins>+#include "RuntimeApplicationChecks.h"
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -352,7 +352,7 @@
</span><span class="cx">
</span><span class="cx"> bool RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack(const GraphicsLayer& layer) const
</span><span class="cx"> {
</span><del>- if (m_isMainFrameRenderViewLayer && applicationIsDumpRenderTree()) {
</del><ins>+ if (m_isMainFrameRenderViewLayer && IOSApplication::isDumpRenderTree()) {
</ins><span class="cx"> // In iOS WebKit1 the main frame's RenderView layer is always transparent. We lie that it is opaque so that
</span><span class="cx"> // internals.layerTreeAsText() tests succeed.
</span><span class="cx"> ASSERT_UNUSED(layer, !layer.contentsOpaque());
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-03-05 Chris Dumez <cdumez@apple.com>
+
+ Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+ https://bugs.webkit.org/show_bug.cgi?id=155035
+
+ Reviewed by Darin Adler.
+
+ Update runtime application checks.
+
+ * WebCoreSupport/WebResourceLoadScheduler.cpp:
+ (WebResourceLoadScheduler::servePendingRequests):
+
</ins><span class="cx"> 2016-03-04 Alex Christensen <achristensen@webkit.org>
</span><span class="cx">
</span><span class="cx"> Remove vcxproj build system
</span></span></pre></div>
<a id="trunkSourceWebKitWebCoreSupportWebResourceLoadSchedulercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> #include <wtf/text/CString.h>
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#include <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if USE(QUICK_LOOK)
</span><span class="lines">@@ -261,7 +261,7 @@
</span><span class="cx"> requestsPending.removeFirst();
</span><span class="cx"> host->addLoadInProgress(resourceLoader.get());
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>- if (!applicationIsWebProcess()) {
</del><ins>+ if (!IOSApplication::isWebProcess()) {
</ins><span class="cx"> resourceLoader->startLoading();
</span><span class="cx"> return;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/ios/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2016-03-05 Chris Dumez <cdumez@apple.com>
+
+ Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+ https://bugs.webkit.org/show_bug.cgi?id=155035
+
+ Reviewed by Darin Adler.
+
+ Update runtime application checks.
+
+ * WebCoreSupport/WebChromeClientIOS.mm:
+
</ins><span class="cx"> 2016-02-17 David Kilzer <ddkilzer@apple.com>
</span><span class="cx">
</span><span class="cx"> [iOS WK1] NSTimer in WebGeolocationProviderIOS.mm fires on the main thread without the WebThreadLock
</span></span></pre></div>
<a id="trunkSourceWebKitiosWebCoreSupportWebChromeClientIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> #import <WebCore/PlatformScreen.h>
</span><span class="cx"> #import <WebCore/RenderBox.h>
</span><span class="cx"> #import <WebCore/RenderObject.h>
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#import <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #import <WebCore/ScrollingConstraints.h>
</span><span class="cx"> #import <WebCore/WAKWindow.h>
</span><span class="cx"> #import <WebCore/WebCoreThreadMessage.h>
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2016-03-05 Chris Dumez <cdumez@apple.com>
+
+ Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+ https://bugs.webkit.org/show_bug.cgi?id=155035
+
+ Reviewed by Darin Adler.
+
+ Update runtime application checks.
+
+ * Plugins/WebPluginController.mm:
+ (initializeAudioSession):
+ * WebCoreSupport/WebFrameLoaderClient.mm:
+ * WebView/WebFrame.mm:
+ (needsMicrosoftMessengerDOMDocumentWorkaround):
+ * WebView/WebImmediateActionController.mm:
+ (-[WebImmediateActionController _updateImmediateActionItem]):
+ * WebView/WebView.mm:
+ (WebKitInitializeApplicationCachePathIfNecessary):
+ (shouldEnableLoadDeferring):
+ (shouldRestrictWindowFocus):
+ (needsOutlookQuirksScript):
+ (shouldTransformsAffectOverflow):
+ (shouldDispatchJavaScriptWindowOnErrorEvents):
+ (shouldUseLegacyBackgroundSizeShorthandBehavior):
+ (-[WebView _commonInitializationWithFrameName:groupName:]):
+ (+[WebView enableWebThread]):
+ (+[WebView registerForMemoryNotifications]):
+ (-[WebView _needsKeyboardEventDisambiguationQuirks]):
+ (needsSelfRetainWhileLoadingQuirk):
+ (-[WebView _needsPreHTML5ParserQuirks]):
+
</ins><span class="cx"> 2016-03-05 Yusuke Suzuki <utatane.tea@gmail.com>
</span><span class="cx">
</span><span class="cx"> [ES6] Support Reflect.construct
</span></span></pre></div>
<a id="trunkSourceWebKitmacPluginsWebPluginControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Plugins/WebPluginController.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Plugins/WebPluginController.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/Plugins/WebPluginController.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> #import <WebCore/FrameView.h>
</span><span class="cx"> #import <WebCore/GraphicsLayer.h>
</span><span class="cx"> #import <WebCore/Page.h>
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#import <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #import <WebCore/SoftLinking.h>
</span><span class="cx"> #import <WebCore/WebCoreThreadRun.h>
</span><span class="cx"> #endif
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> wasAudioSessionInitialized = true;
</span><del>- if (!WebCore::applicationIsMobileSafari())
</del><ins>+ if (!WebCore::IOSApplication::isMobileSafari())
</ins><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> AudioSession::sharedSession().setCategory(AudioSession::MediaPlayback);
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebFrameLoaderClientmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -148,7 +148,7 @@
</span><span class="cx"> #import <WebCore/FileSystemIOS.h>
</span><span class="cx"> #import <WebCore/NSFileManagerSPI.h>
</span><span class="cx"> #import <WebCore/QuickLook.h>
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#import <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if HAVE(APP_LINKS)
</span><span class="lines">@@ -2239,7 +2239,7 @@
</span><span class="cx"> : m_firstRequestURL(handle.firstRequestURL())
</span><span class="cx"> {
</span><span class="cx"> NSURL *previewRequestURL = handle.previewRequestURL();
</span><del>- if (!applicationIsMobileSafari()) {
</del><ins>+ if (!IOSApplication::isMobileSafari()) {
</ins><span class="cx"> // This keeps the QLPreviewConverter alive to serve any subresource requests.
</span><span class="cx"> // It is removed by -[WebDataSource dealloc].
</span><span class="cx"> addQLPreviewConverterWithFileForURL(previewRequestURL, handle.converter(), nil);
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebFramemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebFrame.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebFrame.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebView/WebFrame.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -2411,8 +2411,12 @@
</span><span class="cx">
</span><span class="cx"> static bool needsMicrosoftMessengerDOMDocumentWorkaround()
</span><span class="cx"> {
</span><del>- static bool needsWorkaround = applicationIsMicrosoftMessenger() && [[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey] compare:@"7.1" options:NSNumericSearch] == NSOrderedAscending;
</del><ins>+#if PLATFORM(IOS)
+ return false;
+#else
+ static bool needsWorkaround = MacApplication::isMicrosoftMessenger() && [[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey] compare:@"7.1" options:NSNumericSearch] == NSOrderedAscending;
</ins><span class="cx"> return needsWorkaround;
</span><ins>+#endif
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (DOMDocument *)DOMDocument
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebImmediateActionControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -318,11 +318,19 @@
</span><span class="cx"> customClientAnimationController = [(id)[_webView UIDelegate] _webView:_webView immediateActionAnimationControllerForHitTestResult:webHitTestResult.get() withType:_type];
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ if (customClientAnimationController == [NSNull null]) {
+ [self _cancelImmediateAction];
+ return;
+ }
+
+#if PLATFORM(MAC)
</ins><span class="cx"> // FIXME: We should not permanently disable this for iTunes. rdar://problem/19461358
</span><del>- if (customClientAnimationController == [NSNull null] || applicationIsITunes()) {
</del><ins>+ if (MacApplication::isITunes()) {
</ins><span class="cx"> [self _cancelImmediateAction];
</span><span class="cx"> return;
</span><span class="cx"> }
</span><ins>+#endif
+
</ins><span class="cx"> if (customClientAnimationController && [customClientAnimationController conformsToProtocol:@protocol(NSImmediateActionAnimationController)])
</span><span class="cx"> [_immediateActionRecognizer setAnimationController:(id <NSImmediateActionAnimationController>)customClientAnimationController];
</span><span class="cx"> else
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -254,7 +254,6 @@
</span><span class="cx"> #import <WebCore/PlatformScreen.h>
</span><span class="cx"> #import <WebCore/ResourceLoadStatistics.h>
</span><span class="cx"> #import <WebCore/ResourceLoadStatisticsStore.h>
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><span class="cx"> #import <WebCore/SQLiteDatabaseTracker.h>
</span><span class="cx"> #import <WebCore/SmartReplace.h>
</span><span class="cx"> #import <WebCore/TextRun.h>
</span><span class="lines">@@ -741,7 +740,7 @@
</span><span class="cx"> if (!appName)
</span><span class="cx"> appName = [[NSProcessInfo processInfo] processName];
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>- if (WebCore::applicationIsMobileSafari() || WebCore::applicationIsWebApp())
</del><ins>+ if (WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isWebApp())
</ins><span class="cx"> appName = @"com.apple.WebAppCache";
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -776,7 +775,11 @@
</span><span class="cx">
</span><span class="cx"> static bool shouldEnableLoadDeferring()
</span><span class="cx"> {
</span><del>- return !applicationIsAdobeInstaller();
</del><ins>+#if PLATFORM(IOS)
+ return true;
+#else
+ return !MacApplication::isAdobeInstaller();
+#endif
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool shouldRestrictWindowFocus()
</span><span class="lines">@@ -784,7 +787,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> return true;
</span><span class="cx"> #else
</span><del>- return !applicationIsHRBlock();
</del><ins>+ return !MacApplication::isHRBlock();
</ins><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -807,7 +810,7 @@
</span><span class="cx"> static bool needsOutlookQuirksScript()
</span><span class="cx"> {
</span><span class="cx"> static bool isOutlookNeedingQuirksScript = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER)
</span><del>- && applicationIsMicrosoftOutlook();
</del><ins>+ && MacApplication::isMicrosoftOutlook();
</ins><span class="cx"> return isOutlookNeedingQuirksScript;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -842,13 +845,13 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> static bool shouldTransformsAffectOverflow()
</span><span class="cx"> {
</span><del>- static bool shouldTransformsAffectOverflow = !applicationIsOkCupid() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CSS_TRANSFORMS_AFFECTING_OVERFLOW);
</del><ins>+ static bool shouldTransformsAffectOverflow = !IOSApplication::isOkCupid() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CSS_TRANSFORMS_AFFECTING_OVERFLOW);
</ins><span class="cx"> return shouldTransformsAffectOverflow;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool shouldDispatchJavaScriptWindowOnErrorEvents()
</span><span class="cx"> {
</span><del>- static bool shouldDispatchJavaScriptWindowOnErrorEvents = !applicationIsFacebook() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_WINDOW_ON_ERROR);
</del><ins>+ static bool shouldDispatchJavaScriptWindowOnErrorEvents = !IOSApplication::isFacebook() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_WINDOW_ON_ERROR);
</ins><span class="cx"> return shouldDispatchJavaScriptWindowOnErrorEvents;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -866,7 +869,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> static bool shouldUseLegacyBackgroundSizeShorthandBehavior = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR);
</span><span class="cx"> #else
</span><del>- static bool shouldUseLegacyBackgroundSizeShorthandBehavior = applicationIsVersions()
</del><ins>+ static bool shouldUseLegacyBackgroundSizeShorthandBehavior = MacApplication::isVersions()
</ins><span class="cx"> && !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR);
</span><span class="cx"> #endif
</span><span class="cx"> return shouldUseLegacyBackgroundSizeShorthandBehavior;
</span><span class="lines">@@ -976,7 +979,7 @@
</span><span class="cx"> Settings::setShouldRespectPriorityInCSSAttributeSetters(shouldRespectPriorityInCSSAttributeSetters());
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>- if (applicationIsMobileSafari())
</del><ins>+ if (IOSApplication::isMobileSafari())
</ins><span class="cx"> Settings::setShouldManageAudioSessionCategory(true);
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -1201,7 +1204,7 @@
</span><span class="cx"> WebCoreObjCDeallocOnWebThread([WebPolicyDecisionListener class]);
</span><span class="cx"> WebCoreObjCDeallocOnWebThread([WebView class]);
</span><span class="cx"> WebCoreObjCDeallocOnWebThread([WebVisiblePosition class]);
</span><del>- if (applicationIsTheEconomistOnIPhone() && !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_DELEGATE_CALLS_IN_COMMON_RUNLOOP_MODES))
</del><ins>+ if (IOSApplication::isTheEconomistOnIphone() && !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_DELEGATE_CALLS_IN_COMMON_RUNLOOP_MODES))
</ins><span class="cx"> WebThreadSetDelegateSourceRunLoopMode(kCFRunLoopDefaultMode);
</span><span class="cx"> WebThreadEnable();
</span><span class="cx"> isWebThreadEnabled = YES;
</span><span class="lines">@@ -1327,7 +1330,7 @@
</span><span class="cx">
</span><span class="cx"> + (void)registerForMemoryNotifications
</span><span class="cx"> {
</span><del>- BOOL shouldAutoClearPressureOnMemoryRelease = !WebCore::applicationIsMobileSafari();
</del><ins>+ BOOL shouldAutoClearPressureOnMemoryRelease = !WebCore::IOSApplication::isMobileSafari();
</ins><span class="cx">
</span><span class="cx"> MemoryPressureHandler::singleton().installMemoryReleaseBlock(^{
</span><span class="cx"> [WebView _handleMemoryWarning];
</span><span class="lines">@@ -2148,7 +2151,7 @@
</span><span class="cx">
</span><span class="cx"> - (BOOL)_needsKeyboardEventDisambiguationQuirks
</span><span class="cx"> {
</span><del>- static BOOL needsQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_IE_COMPATIBLE_KEYBOARD_EVENT_DISPATCH) && !applicationIsSafari();
</del><ins>+ static BOOL needsQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_IE_COMPATIBLE_KEYBOARD_EVENT_DISPATCH) && !MacApplication::isSafari();
</ins><span class="cx"> return needsQuirks;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2160,7 +2163,7 @@
</span><span class="cx">
</span><span class="cx"> static bool needsSelfRetainWhileLoadingQuirk()
</span><span class="cx"> {
</span><del>- static bool needsQuirk = applicationIsAperture();
</del><ins>+ static bool needsQuirk = MacApplication::isAperture();
</ins><span class="cx"> return needsQuirk;
</span><span class="cx"> }
</span><span class="cx"> #endif // !PLATFORM(IOS)
</span><span class="lines">@@ -2175,10 +2178,10 @@
</span><span class="cx"> // <https://bugs.webkit.org/show_bug.cgi?id=46134> and
</span><span class="cx"> // <https://bugs.webkit.org/show_bug.cgi?id=46334>.
</span><span class="cx"> static bool isApplicationNeedingParserQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER)
</span><del>- && (applicationIsAOLInstantMessenger() || applicationIsMicrosoftMyDay());
</del><ins>+ && (MacApplication::isAOLInstantMessenger() || MacApplication::isMicrosoftMyDay());
</ins><span class="cx">
</span><span class="cx"> // Mail.app must continue to display HTML email that contains quirky markup.
</span><del>- static bool isAppleMail = applicationIsAppleMail();
</del><ins>+ static bool isAppleMail = MacApplication::isAppleMail();
</ins><span class="cx">
</span><span class="cx"> return isApplicationNeedingParserQuirks
</span><span class="cx"> || isAppleMail
</span><span class="lines">@@ -2189,7 +2192,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> || [[self preferences] usePreHTML5ParserQuirks];
</span><span class="cx"> #else
</span><del>- static bool isApplicationNeedingParserQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER) && applicationIsDaijisenDictionary();
</del><ins>+ static bool isApplicationNeedingParserQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER) && IOSApplication::isDaijisenDictionary();
</ins><span class="cx"> return isApplicationNeedingParserQuirks || [[self preferences] usePreHTML5ParserQuirks];
</span><span class="cx"> #endif
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2016-03-05 Chris Dumez <cdumez@apple.com>
+
+ Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+ https://bugs.webkit.org/show_bug.cgi?id=155035
+
+ Reviewed by Darin Adler.
+
+ Update runtime application checks.
+
+ * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
+ (API::WebsiteDataStore::defaultApplicationCacheDirectory):
+ * UIProcess/Cocoa/VersionChecks.mm:
+ (WebKit::linkedOnOrAfter):
+ * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+ (WebKit::WebProcessPool::platformInitializeWebProcess):
+ (WebKit::WebProcessPool::legacyPlatformDefaultApplicationCacheDirectory):
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ * UIProcess/mac/WebPageProxyMac.mm:
+ (WebKit::expectsLegacyImplicitRubberBandControl):
+ (WebKit::WebPageProxy::appleMailPaginationQuirkEnabled):
+
</ins><span class="cx"> 2016-03-05 Sam Weinig <sam@webkit.org>
</span><span class="cx">
</span><span class="cx"> Add support for processing the autofill field name out of form control elements ultimately to aid input methods
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaAPIWebsiteDataStoreCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> #include "SandboxUtilities.h"
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#import <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> namespace API {
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> // Preserving it avoids the need to migrate data when upgrading.
</span><span class="cx"> // FIXME: Ideally we should just have Safari and WebApp create a data store with
</span><span class="cx"> // this application cache path, but that's not supported as of right now.
</span><del>- if (WebCore::applicationIsMobileSafari() || WebCore::applicationIsWebApp()) {
</del><ins>+ if (WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isWebApp()) {
</ins><span class="cx"> NSString *cachePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/com.apple.WebAppCache"];
</span><span class="cx">
</span><span class="cx"> return WebKit::stringByResolvingSymlinksInPath(cachePath.stringByStandardizingPath);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaVersionChecksmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> #import <mach-o/dyld.h>
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#import <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> namespace WebKit {
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> // Always make new features available for Safari.
</span><del>- if (WebCore::applicationIsMobileSafari())
</del><ins>+ if (WebCore::IOSApplication::isMobileSafari())
</ins><span class="cx"> return true;
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaWebProcessPoolCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -52,7 +52,6 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #import "ArgumentCodersCF.h"
</span><span class="cx"> #import "WebMemoryPressureHandlerIOS.h"
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><span class="cx"> #else
</span><span class="cx"> #import <QuartzCore/CARemoteLayerServer.h>
</span><span class="cx"> #endif
</span><span class="lines">@@ -180,7 +179,7 @@
</span><span class="cx"> parameters.shouldSuppressMemoryPressureHandler = [defaults boolForKey:WebKitSuppressMemoryPressureHandlerDefaultsKey];
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(MAC)
</span><del>- parameters.shouldRewriteConstAsVar = applicationIsIBooks();
</del><ins>+ parameters.shouldRewriteConstAsVar = MacApplication::isIBooks();
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if HAVE(HOSTED_CORE_ANIMATION)
</span><span class="lines">@@ -365,7 +364,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> // This quirk used to make these apps share application cache storage, but doesn't accomplish that any more.
</span><span class="cx"> // Preserving it avoids the need to migrate data when upgrading.
</span><del>- if (applicationIsMobileSafari() || applicationIsWebApp())
</del><ins>+ if (IOSApplication::isMobileSafari() || IOSApplication::isWebApp())
</ins><span class="cx"> appName = @"com.apple.WebAppCache";
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessiosWKContentViewInteractionmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> #import <WebCore/Pasteboard.h>
</span><span class="cx"> #import <WebCore/Path.h>
</span><span class="cx"> #import <WebCore/PathUtilities.h>
</span><del>-#import <WebCore/RuntimeApplicationChecksIOS.h>
</del><ins>+#import <WebCore/RuntimeApplicationChecks.h>
</ins><span class="cx"> #import <WebCore/Scrollbar.h>
</span><span class="cx"> #import <WebCore/SoftLinking.h>
</span><span class="cx"> #import <WebCore/TextIndicator.h>
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWebPageProxyMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">
</span><span class="cx"> static inline bool expectsLegacyImplicitRubberBandControl()
</span><span class="cx"> {
</span><del>- if (applicationIsSafari()) {
</del><ins>+ if (MacApplication::isSafari()) {
</ins><span class="cx"> const int32_t firstVersionOfSafariNotExpectingImplicitRubberBandControl = 0x021A0F00; // 538.15.0
</span><span class="cx"> bool linkedAgainstSafariExpectingImplicitRubberBandControl = NSVersionOfLinkTimeLibrary("Safari") < firstVersionOfSafariNotExpectingImplicitRubberBandControl;
</span><span class="cx"> return linkedAgainstSafariExpectingImplicitRubberBandControl;
</span><span class="lines">@@ -547,7 +547,7 @@
</span><span class="cx">
</span><span class="cx"> bool WebPageProxy::appleMailPaginationQuirkEnabled()
</span><span class="cx"> {
</span><del>- return applicationIsAppleMail();
</del><ins>+ return MacApplication::isAppleMail();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WebPageProxy::setFont(const String& fontFamily, double fontSize, uint64_t fontTraits)
</span></span></pre>
</div>
</div>
</body>
</html>