<!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>[200866] 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/200866">200866</a></dd>
<dt>Author</dt> <dd>bdakin@apple.com</dd>
<dt>Date</dt> <dd>2016-05-13 11:29:52 -0700 (Fri, 13 May 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>
Source/JavaScriptCore:
Add dyldSPI.h for linked on or after checks, and add one for link preview
https://bugs.webkit.org/show_bug.cgi?id=157401
-and corresponding-
rdar://problem/26253396

Reviewed by Darin Adler.

Import #import &lt;wtf/spi/darwin/dyldSPI.h&gt; which now declares all of the 
needed dyld code.
* API/JSWrapperMap.mm:

Source/WebCore:
Add dyldSPI.h for linked on or after checks, and add one for link preview
https://bugs.webkit.org/show_bug.cgi?id=157401
-and corresponding-
rdar://problem/26253396

Reviewed by Darin Adler.

This patch removes DynamicLinkerSPI.h and replaces it with 
wtf/spi/darwin/dyldSPI.h

* WebCore.xcodeproj/project.pbxproj:
* html/HTMLObjectElement.cpp:
* platform/graphics/ios/FontServicesIOS.mm:
* platform/spi/cocoa/DynamicLinkerSPI.h: Removed.

Source/WebKit/ios:
Add dyldSPI.h for linked on or after checks, and add one for link preview
https://bugs.webkit.org/show_bug.cgi?id=157401
-and corresponding-
rdar://problem/26253396

Reviewed by Darin Adler.

This patch removes DynamicLinkerSPI.h and replaces it with 
wtf/spi/darwin/dyldSPI.h

* Misc/WebUIKitSupport.mm:

Source/WebKit/mac:
Add dyldSPI.h for linked on or after checks, and add one for link preview
https://bugs.webkit.org/show_bug.cgi?id=157401
-and corresponding-
rdar://problem/26253396

Reviewed by Darin Adler.

This patch removes DynamicLinkerSPI.h and replaces it with 
wtf/spi/darwin/dyldSPI.h

* WebView/WebView.mm:

Source/WebKit2:
Add dyldSPI.h for linked on or after checks, and add one for link preview
https://bugs.webkit.org/show_bug.cgi?id=157401

Reviewed by Darin Adler.

Set _allowsLinkPreview to YES for programs linked on or after 
firstSDKVersionWithLinkPreviewEnabledByDefault.
* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _initializeWithConfiguration:]):

Source/WTF:
Add dyldSPI.h
https://bugs.webkit.org/show_bug.cgi?id=157401
-and corresponding-
rdar://problem/26253396

Reviewed by Darin Adler.

New header for dyld spi.
* WTF.xcodeproj/project.pbxproj:
* wtf/spi/darwin/dyldSPI.h: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreAPIJSWrapperMapmm">trunk/Source/JavaScriptCore/API/JSWrapperMap.mm</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFWTFxcodeprojprojectpbxproj">trunk/Source/WTF/WTF.xcodeproj/project.pbxproj</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="#trunkSourceWebCorehtmlHTMLObjectElementcpp">trunk/Source/WebCore/html/HTMLObjectElement.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsiosFontServicesIOSmm">trunk/Source/WebCore/platform/graphics/ios/FontServicesIOS.mm</a></li>
<li><a href="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosMiscWebUIKitSupportmm">trunk/Source/WebKit/ios/Misc/WebUIKitSupport.mm</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</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="#trunkSourceWebKit2UIProcessAPICocoaWKWebViewh">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKWebViewmm">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWTFwtfspidarwindyldSPIh">trunk/Source/WTF/wtf/spi/darwin/dyldSPI.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformspicocoaDynamicLinkerSPIh">trunk/Source/WebCore/platform/spi/cocoa/DynamicLinkerSPI.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreAPIJSWrapperMapmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/API/JSWrapperMap.mm (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/API/JSWrapperMap.mm        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/JavaScriptCore/API/JSWrapperMap.mm        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -41,14 +41,10 @@
</span><span class="cx"> #import &lt;wtf/HashSet.h&gt;
</span><span class="cx"> #import &lt;wtf/Vector.h&gt;
</span><span class="cx"> #import &lt;wtf/spi/cocoa/NSMapTableSPI.h&gt;
</span><ins>+#import &lt;wtf/spi/darwin/dyldSPI.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #include &lt;mach-o/dyld.h&gt;
</span><span class="cx"> 
</span><del>-#if USE(APPLE_INTERNAL_SDK)
-#include &lt;mach-o/dyld_priv.h&gt;
-#endif
-extern &quot;C&quot; uint32_t dyld_get_program_sdk_version();
-
</del><span class="cx"> #if PLATFORM(APPLETV)
</span><span class="cx"> #elif PLATFORM(IOS)
</span><span class="cx"> static const uint32_t firstSDKVersionWithInitConstructorSupport = 0x80000; // iOS 8.0.0
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/JavaScriptCore/ChangeLog        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-05-13  Beth Dakin  &lt;bdakin@apple.com&gt;
+
+        Add dyldSPI.h for linked on or after checks, and add one for link preview
+        https://bugs.webkit.org/show_bug.cgi?id=157401
+        -and corresponding-
+        rdar://problem/26253396
+
+        Reviewed by Darin Adler.
+
+        Import #import &lt;wtf/spi/darwin/dyldSPI.h&gt; which now declares all of the 
+        needed dyld code.
+        * API/JSWrapperMap.mm:
+
</ins><span class="cx"> 2016-05-13  Yusuke Suzuki  &lt;utatane.tea@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Assertion failure for direct eval in non-class method
</span></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WTF/ChangeLog        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-05-13  Beth Dakin  &lt;bdakin@apple.com&gt;
+
+        Add dyldSPI.h
+        https://bugs.webkit.org/show_bug.cgi?id=157401
+        -and corresponding-
+        rdar://problem/26253396
+
+        Reviewed by Darin Adler.
+
+        New header for dyld spi.
+        * WTF.xcodeproj/project.pbxproj:
+        * wtf/spi/darwin/dyldSPI.h: Added.
+
</ins><span class="cx"> 2016-05-13  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
</span><span class="cx"> 
</span><span class="cx">         DOMPromise should only restrict the resolution type
</span></span></pre></div>
<a id="trunkSourceWTFWTFxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.xcodeproj/project.pbxproj (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -119,6 +119,7 @@
</span><span class="cx">                 93934BD318A1E8C300D0D6A1 /* StringViewObjC.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93934BD218A1E8C300D0D6A1 /* StringViewObjC.mm */; };
</span><span class="cx">                 93934BD518A1F16900D0D6A1 /* StringViewCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93934BD418A1F16900D0D6A1 /* StringViewCF.cpp */; };
</span><span class="cx">                 93AC91A818942FC400244939 /* LChar.h in Headers */ = {isa = PBXBuildFile; fileRef = 93AC91A718942FC400244939 /* LChar.h */; };
</span><ins>+                93DDE9321CDC052D00FD3491 /* dyldSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 93DDE9311CDC052D00FD3491 /* dyldSPI.h */; };
</ins><span class="cx">                 93F1993E19D7958D00C2390B /* StringView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93F1993D19D7958D00C2390B /* StringView.cpp */; };
</span><span class="cx">                 974CFC8E16A4F327006D5404 /* WeakPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = 974CFC8D16A4F327006D5404 /* WeakPtr.h */; };
</span><span class="cx">                 9BC70F05176C379D00101DEC /* AtomicStringTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9BC70F04176C379D00101DEC /* AtomicStringTable.cpp */; };
</span><span class="lines">@@ -436,6 +437,7 @@
</span><span class="cx">                 93934BD218A1E8C300D0D6A1 /* StringViewObjC.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = StringViewObjC.mm; path = mac/StringViewObjC.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 93934BD418A1F16900D0D6A1 /* StringViewCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StringViewCF.cpp; path = cf/StringViewCF.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 93AC91A718942FC400244939 /* LChar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LChar.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                93DDE9311CDC052D00FD3491 /* dyldSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dyldSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 93F1993D19D7958D00C2390B /* StringView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StringView.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 974CFC8D16A4F327006D5404 /* WeakPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WeakPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 9BC70F04176C379D00101DEC /* AtomicStringTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AtomicStringTable.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -1091,6 +1093,7 @@
</span><span class="cx">                                 DE5A09FB1BA36992003D4424 /* CommonCryptoSPI.h */,
</span><span class="cx">                                 A5098AFF1C169E0700087797 /* SandboxSPI.h */,
</span><span class="cx">                                 CE73E02419DCB7AB00580D5C /* XPCSPI.h */,
</span><ins>+                                93DDE9311CDC052D00FD3491 /* dyldSPI.h */,
</ins><span class="cx">                         );
</span><span class="cx">                         path = darwin;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="lines">@@ -1144,6 +1147,7 @@
</span><span class="cx">                                 A8A4738A151A825B004123FF /* Bitmap.h in Headers */,
</span><span class="cx">                                 A8A4738C151A825B004123FF /* BitVector.h in Headers */,
</span><span class="cx">                                 1A944F471C3D8814005BD28C /* BlockPtr.h in Headers */,
</span><ins>+                                93DDE9321CDC052D00FD3491 /* dyldSPI.h in Headers */,
</ins><span class="cx">                                 A8A4738E151A825B004123FF /* BlockStack.h in Headers */,
</span><span class="cx">                                 A8A4738F151A825B004123FF /* BloomFilter.h in Headers */,
</span><span class="cx">                                 0F93274B1C17F4B700CF6564 /* Box.h in Headers */,
</span></span></pre></div>
<a id="trunkSourceWTFwtfspidarwindyldSPIh"></a>
<div class="addfile"><h4>Added: trunk/Source/WTF/wtf/spi/darwin/dyldSPI.h (0 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/spi/darwin/dyldSPI.h                                (rev 0)
+++ trunk/Source/WTF/wtf/spi/darwin/dyldSPI.h        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+/*
+ * Copyright (C) 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. ``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
+ * 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. 
+ */
+
+#pragma once
+
+#if USE(APPLE_INTERNAL_SDK)
+
+#include &lt;mach-o/dyld_priv.h&gt;
+
+#else
+
+#define DYLD_IOS_VERSION_3_0 0x00030000
+#define DYLD_IOS_VERSION_4_2 0x00040200
+#define DYLD_IOS_VERSION_5_0 0x00050000
+#define DYLD_IOS_VERSION_6_0 0x00060000
+#define DYLD_IOS_VERSION_7_0 0x00070000
+#define DYLD_IOS_VERSION_9_0 0x00090000
+
+#endif
+
+extern &quot;C&quot; uint32_t dyld_get_program_sdk_version();
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebCore/ChangeLog        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2016-05-13  Beth Dakin  &lt;bdakin@apple.com&gt;
+
+        Add dyldSPI.h for linked on or after checks, and add one for link preview
+        https://bugs.webkit.org/show_bug.cgi?id=157401
+        -and corresponding-
+        rdar://problem/26253396
+
+        Reviewed by Darin Adler.
+
+        This patch removes DynamicLinkerSPI.h and replaces it with 
+        wtf/spi/darwin/dyldSPI.h
+
+        * WebCore.xcodeproj/project.pbxproj:
+        * html/HTMLObjectElement.cpp:
+        * platform/graphics/ios/FontServicesIOS.mm:
+        * platform/spi/cocoa/DynamicLinkerSPI.h: Removed.
+
</ins><span class="cx"> 2016-05-13  Brady Eidson  &lt;beidson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Give CrossThreadCopier a default specialization for Vectors of objects.
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -6215,7 +6215,6 @@
</span><span class="cx">                 CE12523D1A1676CD00864480 /* QuartzCoreSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE12523C1A1676CD00864480 /* QuartzCoreSPI.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 CE1252411A16B1B600864480 /* MediaPlayerSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE1252401A16B1B600864480 /* MediaPlayerSPI.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 CE1252431A16C01A00864480 /* CoreUISPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE1252421A16C01A00864480 /* CoreUISPI.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                CE1252451A16C22500864480 /* DynamicLinkerSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE1252441A16C22500864480 /* DynamicLinkerSPI.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 CE1252491A16C3BC00864480 /* MobileGestaltSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE1252481A16C3BC00864480 /* MobileGestaltSPI.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 CE12524D1A1A77DE00864480 /* IOPMLibSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE12524C1A1A77DE00864480 /* IOPMLibSPI.h */; };
</span><span class="cx">                 CE12524F1A1A78D200864480 /* MachVMSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = CE12524E1A1A78D200864480 /* MachVMSPI.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -14253,7 +14252,6 @@
</span><span class="cx">                 CE12523C1A1676CD00864480 /* QuartzCoreSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QuartzCoreSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 CE1252401A16B1B600864480 /* MediaPlayerSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaPlayerSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 CE1252421A16C01A00864480 /* CoreUISPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CoreUISPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                CE1252441A16C22500864480 /* DynamicLinkerSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DynamicLinkerSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 CE1252481A16C3BC00864480 /* MobileGestaltSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobileGestaltSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 CE12524C1A1A77DE00864480 /* IOPMLibSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IOPMLibSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 CE12524E1A1A78D200864480 /* MachVMSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MachVMSPI.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -17605,7 +17603,6 @@
</span><span class="cx">                                 CD4097FF1A8C855F004C65E9 /* CFNSURLConnectionSPI.h */,
</span><span class="cx">                                 1C5E980F1A02CEFA002DB55F /* CoreTextSPI.h */,
</span><span class="cx">                                 935E2B4D1AFF06CA00976F9F /* DataDetectorsCoreSPI.h */,
</span><del>-                                CE1252441A16C22500864480 /* DynamicLinkerSPI.h */,
</del><span class="cx">                                 CE12524C1A1A77DE00864480 /* IOPMLibSPI.h */,
</span><span class="cx">                                 44DEF6421A6FF92700D45EEC /* IOReturnSPI.h */,
</span><span class="cx">                                 44DFF6421A6FF92700D45EEC /* IOSurfaceSPI.h */,
</span><span class="lines">@@ -25992,7 +25989,6 @@
</span><span class="cx">                                 A7CFB3D20B7ED10A0070C32D /* DragImage.h in Headers */,
</span><span class="cx">                                 81F65FF613788FAA00FF6F2D /* DragState.h in Headers */,
</span><span class="cx">                                 E1BA66F11742BD8600C20251 /* DynamicLinkerInterposing.h in Headers */,
</span><del>-                                CE1252451A16C22500864480 /* DynamicLinkerSPI.h in Headers */,
</del><span class="cx">                                 FD6ED2C8136B8E66003CF072 /* DynamicsCompressor.h in Headers */,
</span><span class="cx">                                 FD537357137B653B00008DCE /* DynamicsCompressorKernel.h in Headers */,
</span><span class="cx">                                 FD6ED2C4136B8E42003CF072 /* DynamicsCompressorNode.h in Headers */,
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLObjectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLObjectElement.cpp (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -53,9 +53,9 @@
</span><span class="cx"> #include &quot;Text.h&quot;
</span><span class="cx"> #include &quot;Widget.h&quot;
</span><span class="cx"> #include &lt;wtf/Ref.h&gt;
</span><ins>+#include &lt;wtf/spi/darwin/dyldSPI.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &quot;DynamicLinkerSPI.h&quot;
</del><span class="cx"> #include &quot;RuntimeApplicationChecks.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsiosFontServicesIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ios/FontServicesIOS.mm (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ios/FontServicesIOS.mm        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebCore/platform/graphics/ios/FontServicesIOS.mm        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -26,10 +26,10 @@
</span><span class="cx"> #import &quot;FontServicesIOS.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #import &quot;CoreGraphicsSPI.h&quot;
</span><del>-#import &quot;DynamicLinkerSPI.h&quot;
</del><span class="cx"> #import &quot;FontMetrics.h&quot;
</span><span class="cx"> #import &quot;OpenTypeCG.h&quot;
</span><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><ins>+#import &lt;wtf/spi/darwin/dyldSPI.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformspicocoaDynamicLinkerSPIh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/spi/cocoa/DynamicLinkerSPI.h (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/spi/cocoa/DynamicLinkerSPI.h        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebCore/platform/spi/cocoa/DynamicLinkerSPI.h        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 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.
- */
-
-#ifndef DynamicLinkerSPI_h
-#define DynamicLinkerSPI_h
-
-#include &lt;mach-o/dyld.h&gt;
-
-#if USE(APPLE_INTERNAL_SDK)
-
-#include &lt;mach-o/dyld_priv.h&gt;
-
-#else
-
-#define DYLD_IOS_VERSION_3_0 0x00030000
-#define DYLD_IOS_VERSION_4_2 0x00040200
-#define DYLD_IOS_VERSION_5_0 0x00050000
-#define DYLD_IOS_VERSION_6_0 0x00060000
-#define DYLD_IOS_VERSION_7_0 0x00070000
-#define DYLD_IOS_VERSION_9_0 0x00090000
-
-#endif
-
-EXTERN_C uint32_t dyld_get_program_sdk_version();
-
-#endif // DynamicLinkerSPI_h
</del></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit/ios/ChangeLog        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-05-13  Beth Dakin  &lt;bdakin@apple.com&gt;
+
+        Add dyldSPI.h for linked on or after checks, and add one for link preview
+        https://bugs.webkit.org/show_bug.cgi?id=157401
+        -and corresponding-
+        rdar://problem/26253396
+
+        Reviewed by Darin Adler.
+
+        This patch removes DynamicLinkerSPI.h and replaces it with 
+        wtf/spi/darwin/dyldSPI.h
+
+        * Misc/WebUIKitSupport.mm:
+
</ins><span class="cx"> 2016-05-06  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Enable IOS_TEXT_AUTOSIZING on Mac and make it testable
</span></span></pre></div>
<a id="trunkSourceWebKitiosMiscWebUIKitSupportmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/Misc/WebUIKitSupport.mm (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/Misc/WebUIKitSupport.mm        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit/ios/Misc/WebUIKitSupport.mm        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #import &quot;WebPlatformStrategies.h&quot;
</span><span class="cx"> #import &quot;WebSystemInterface.h&quot;
</span><span class="cx"> #import &quot;WebViewPrivate.h&quot;
</span><del>-#import &lt;WebCore/DynamicLinkerSPI.h&gt;
</del><span class="cx"> #import &lt;WebCore/PathUtilities.h&gt;
</span><span class="cx"> #import &lt;WebCore/ResourceRequest.h&gt;
</span><span class="cx"> #import &lt;WebCore/Settings.h&gt;
</span><span class="lines">@@ -41,6 +40,7 @@
</span><span class="cx"> #import &lt;WebCore/WebCoreSystemInterface.h&gt;
</span><span class="cx"> #import &lt;WebCore/WebCoreThreadSystemInterface.h&gt;
</span><span class="cx"> #import &lt;WebCore/break_lines.h&gt;
</span><ins>+#import &lt;wtf/spi/darwin/dyldSPI.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #import &lt;runtime/InitializeThreading.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit/mac/ChangeLog        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-05-13  Beth Dakin  &lt;bdakin@apple.com&gt;
+
+        Add dyldSPI.h for linked on or after checks, and add one for link preview
+        https://bugs.webkit.org/show_bug.cgi?id=157401
+        -and corresponding-
+        rdar://problem/26253396
+
+        Reviewed by Darin Adler.
+
+        This patch removes DynamicLinkerSPI.h and replaces it with 
+        wtf/spi/darwin/dyldSPI.h
+
+        * WebView/WebView.mm:
+
</ins><span class="cx"> 2016-05-13  Tina Liu  &lt;iting_liu@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Revert r199691.
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -209,6 +209,7 @@
</span><span class="cx"> #import &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #import &lt;wtf/RunLoop.h&gt;
</span><span class="cx"> #import &lt;wtf/StdLibExtras.h&gt;
</span><ins>+#import &lt;wtf/spi/darwin/dyldSPI.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="cx"> #import &quot;WebContextMenuClient.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit2/ChangeLog        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-05-13  Beth Dakin  &lt;bdakin@apple.com&gt;
+
+        Add dyldSPI.h for linked on or after checks, and add one for link preview
+        https://bugs.webkit.org/show_bug.cgi?id=157401
+
+        Reviewed by Darin Adler.
+
+        Set _allowsLinkPreview to YES for programs linked on or after 
+        firstSDKVersionWithLinkPreviewEnabledByDefault.
+        * UIProcess/API/Cocoa/WKWebView.h:
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _initializeWithConfiguration:]):
+
</ins><span class="cx"> 2016-05-13  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Fullscreen view attempts to resize when in 2-up mode
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKWebViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -232,7 +232,7 @@
</span><span class="cx"> 
</span><span class="cx"> /*! @abstract A Boolean value indicating whether link preview is allowed for any
</span><span class="cx">  links inside this WKWebView.
</span><del>- @discussion The default value is NO on iOS and YES on Mac.
</del><ins>+ @discussion The default value is YES on Mac and iOS.
</ins><span class="cx">  */
</span><span class="cx"> @property (nonatomic) BOOL allowsLinkPreview WK_AVAILABLE(10_11, 9_0);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (200865 => 200866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2016-05-13 18:11:42 UTC (rev 200865)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2016-05-13 18:29:52 UTC (rev 200866)
</span><span class="lines">@@ -95,6 +95,7 @@
</span><span class="cx"> #import &lt;wtf/Optional.h&gt;
</span><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> #import &lt;wtf/TemporaryChange.h&gt;
</span><ins>+#import &lt;wtf/spi/darwin/dyldSPI.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #import &quot;_WKWebViewPrintFormatter.h&quot;
</span><span class="lines">@@ -111,7 +112,6 @@
</span><span class="cx"> #import &quot;WebVideoFullscreenManagerProxy.h&quot;
</span><span class="cx"> #import &lt;UIKit/UIApplication.h&gt;
</span><span class="cx"> #import &lt;WebCore/CoreGraphicsSPI.h&gt;
</span><del>-#import &lt;WebCore/DynamicLinkerSPI.h&gt;
</del><span class="cx"> #import &lt;WebCore/FrameLoaderTypes.h&gt;
</span><span class="cx"> #import &lt;WebCore/InspectorOverlay.h&gt;
</span><span class="cx"> #import &lt;WebCore/QuartzCoreSPI.h&gt;
</span><span class="lines">@@ -159,6 +159,10 @@
</span><span class="cx"> 
</span><span class="cx"> #endif // PLATFORM(IOS)
</span><span class="cx"> 
</span><ins>+#if PLATFORM(IOS)
+static const uint32_t firstSDKVersionWithLinkPreviewEnabledByDefault = 0xA0000;
+#endif
+
</ins><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx"> #import &quot;WKTextFinderClient.h&quot;
</span><span class="cx"> #import &quot;WKViewInternal.h&quot;
</span><span class="lines">@@ -490,6 +494,9 @@
</span><span class="cx"> 
</span><span class="cx">     [self addSubview:_scrollView.get()];
</span><span class="cx"> 
</span><ins>+    static uint32_t programSDKVersion = dyld_get_program_sdk_version();
+    _allowsLinkPreview = programSDKVersion &gt;= firstSDKVersionWithLinkPreviewEnabledByDefault;
+
</ins><span class="cx">     _contentView = adoptNS([[WKContentView alloc] initWithFrame:bounds processPool:processPool configuration:WTFMove(pageConfiguration) webView:self]);
</span><span class="cx"> 
</span><span class="cx">     _page = [_contentView page];
</span></span></pre>
</div>
</div>

</body>
</html>