Diff
Modified: trunk/Source/WTF/ChangeLog (231392 => 231393)
--- trunk/Source/WTF/ChangeLog 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WTF/ChangeLog 2018-05-05 00:16:17 UTC (rev 231393)
@@ -1,3 +1,12 @@
+2018-05-04 Tim Horton <timothy_hor...@apple.com>
+
+ Shift to a lower-level framework for simplifying URLs
+ https://bugs.webkit.org/show_bug.cgi?id=185334
+
+ Reviewed by Dan Bernstein.
+
+ * wtf/Platform.h:
+
2018-05-04 Eric Carlson <eric.carl...@apple.com>
Log media time range as JSON
Modified: trunk/Source/WTF/wtf/Platform.h (231392 => 231393)
--- trunk/Source/WTF/wtf/Platform.h 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WTF/wtf/Platform.h 2018-05-05 00:16:17 UTC (rev 231393)
@@ -1324,6 +1324,10 @@
#define HAVE_RSA_PSS 1
#endif
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
+#define HAVE_URL_FORMATTING 1
+#endif
+
#if !OS(WINDOWS)
#define HAVE_STACK_BOUNDS_FOR_NEW_THREAD 1
#endif
Modified: trunk/Source/WebCore/ChangeLog (231392 => 231393)
--- trunk/Source/WebCore/ChangeLog 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/ChangeLog 2018-05-05 00:16:17 UTC (rev 231393)
@@ -1,3 +1,14 @@
+2018-05-04 Tim Horton <timothy_hor...@apple.com>
+
+ Shift to a lower-level framework for simplifying URLs
+ https://bugs.webkit.org/show_bug.cgi?id=185334
+
+ Reviewed by Dan Bernstein.
+
+ * Configurations/WebCore.xcconfig:
+ * platform/mac/DragImageMac.mm:
+ (WebCore::LinkImageLayout::LinkImageLayout):
+
2018-05-03 Ryosuke Niwa <rn...@webkit.org>
Release assert in ScriptController::canExecuteScripts via HTMLMediaElement::~HTMLMediaElement()
Modified: trunk/Source/WebCore/Configurations/WebCore.xcconfig (231392 => 231393)
--- trunk/Source/WebCore/Configurations/WebCore.xcconfig 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/Configurations/WebCore.xcconfig 2018-05-05 00:16:17 UTC (rev 231393)
@@ -121,8 +121,11 @@
WK_SYSTEM_PREVIEW_LDFLAGS_iphoneos = -framework CoreImage;
WK_SYSTEM_PREVIEW_LDFLAGS_iphonesimulator = -framework CoreImage;
+WK_URL_FORMATTING_LDFLAGS = $(WK_URL_FORMATTING_LDFLAGS_$(WK_HAVE_URL_FORMATTING));
+WK_URL_FORMATTING_LDFLAGS_YES = -framework URLFormatting;
+
// FIXME: Reduce the number of allowable_clients <rdar://problem/31823969>
-OTHER_LDFLAGS = $(inherited) $(WK_RELOCATABLE_FRAMEWORK_LDFLAGS) $(WK_UNDEFINED_SYMBOLS_LDFLAGS) -lsqlite3 -lobjc -lANGLE -allowable_client WebCoreTestSupport -allowable_client WebKitLegacy -force_load $(BUILT_PRODUCTS_DIR)/libPAL.a -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreText -framework Foundation -framework ImageIO -framework Metal $(OTHER_LDFLAGS_PLATFORM_$(WK_COCOA_TOUCH)) $(OTHER_LDFLAGS_PLATFORM_$(WK_PLATFORM_NAME)) $(WK_APPKIT_LDFLAGS) $(WK_AUDIO_UNIT_LDFLAGS) $(WK_CARBON_LDFLAGS) $(WK_DATA_DETECTORS_CORE_LDFLAGS) $(WK_DEVICE_IDENTITY_LDFLAGS) $(WK_GRAPHICS_SERVICES_LDFLAGS) $(WK_IOSURFACE_LDFLAGS) $(WK_LIBWEBRTC_LDFLAGS) $(WK_MOBILE_CORE_SERVICES_LDFLAGS) $(WK_MOBILE_GESTALT_LDFLAGS) $(WK_OPENGL_LDFLAGS) $(WK_SYSTEM_CONFIGURATION_LDFLAGS) $(WK_SYSTEM_PREVIEW_LDFLAGS);
+OTHER_LDFLAGS = $(inherited) $(WK_RELOCATABLE_FRAMEWORK_LDFLAGS) $(WK_UNDEFINED_SYMBOLS_LDFLAGS) -lsqlite3 -lobjc -lANGLE -allowable_client WebCoreTestSupport -allowable_client WebKitLegacy -force_load $(BUILT_PRODUCTS_DIR)/libPAL.a -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreText -framework Foundation -framework ImageIO -framework Metal $(OTHER_LDFLAGS_PLATFORM_$(WK_COCOA_TOUCH)) $(OTHER_LDFLAGS_PLATFORM_$(WK_PLATFORM_NAME)) $(WK_APPKIT_LDFLAGS) $(WK_AUDIO_UNIT_LDFLAGS) $(WK_CARBON_LDFLAGS) $(WK_DATA_DETECTORS_CORE_LDFLAGS) $(WK_DEVICE_IDENTITY_LDFLAGS) $(WK_GRAPHICS_SERVICES_LDFLAGS) $(WK_IOSURFACE_LDFLAGS) $(WK_LIBWEBRTC_LDFLAGS) $(WK_MOBILE_CORE_SERVICES_LDFLAGS) $(WK_MOBILE_GESTALT_LDFLAGS) $(WK_OPENGL_LDFLAGS) $(WK_SYSTEM_CONFIGURATION_LDFLAGS) $(WK_SYSTEM_PREVIEW_LDFLAGS) $(WK_URL_FORMATTING_LDFLAGS);
OTHER_LDFLAGS_PLATFORM_cocoatouch = -allowable_client WebKit -allowable_client iTunesU -allowable_client Casablanca -allowable_client Remote -allowable_client TVBooks -allowable_client DumpRenderTree -allowable_client WebKitTestRunner -allowable_client TestWebKitAPI;
OTHER_LDFLAGS_PLATFORM_macosx = -sub_library libobjc -umbrella WebKit;
@@ -183,3 +186,9 @@
WK_HAVE_DEVICE_IDENTITY = $(WK_HAVE_DEVICE_IDENTITY_$(PLATFORM_NAME));
WK_HAVE_DEVICE_IDENTITY_iphoneos = YES;
+
+WK_HAVE_URL_FORMATTING = $(WK_HAVE_URL_FORMATTING_COCOA_TOUCH_$(WK_IS_COCOA_TOUCH));
+WK_HAVE_URL_FORMATTING_COCOA_TOUCH_YES = $(WK_HAVE_URL_FORMATTING$(WK_IOS_12));
+WK_HAVE_URL_FORMATTING_COCOA_TOUCH_NO = $(WK_HAVE_URL_FORMATTING$(WK_MACOS_1014));
+WK_HAVE_URL_FORMATTING_MACOS_SINCE_1014 = YES;
+WK_HAVE_URL_FORMATTING_IOS_SINCE_12 = YES;
Modified: trunk/Source/WebCore/PAL/ChangeLog (231392 => 231393)
--- trunk/Source/WebCore/PAL/ChangeLog 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/PAL/ChangeLog 2018-05-05 00:16:17 UTC (rev 231393)
@@ -1,3 +1,14 @@
+2018-05-04 Tim Horton <timothy_hor...@apple.com>
+
+ Shift to a lower-level framework for simplifying URLs
+ https://bugs.webkit.org/show_bug.cgi?id=185334
+
+ Reviewed by Dan Bernstein.
+
+ * PAL.xcodeproj/project.pbxproj:
+ * pal/PlatformMac.cmake:
+ * pal/spi/cocoa/URLFormattingSPI.h: Renamed from Source/WebCore/PAL/pal/spi/cocoa/LinkPresentationSPI.h.
+
2018-05-03 Eric Carlson <eric.carl...@apple.com>
[iOS] Provide audio route information when invoking AirPlay picker
Modified: trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj (231392 => 231393)
--- trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj 2018-05-05 00:16:17 UTC (rev 231393)
@@ -40,7 +40,7 @@
0C2DA1441F3BEB4900DBC317 /* IOReturnSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA1281F3BEB4900DBC317 /* IOReturnSPI.h */; };
0C2DA1451F3BEB4900DBC317 /* IOSurfaceSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA1291F3BEB4900DBC317 /* IOSurfaceSPI.h */; };
0C2DA1461F3BEB4900DBC317 /* IOTypesSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA12A1F3BEB4900DBC317 /* IOTypesSPI.h */; };
- 0C2DA1471F3BEB4900DBC317 /* LinkPresentationSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA12B1F3BEB4900DBC317 /* LinkPresentationSPI.h */; };
+ 0C2DA1471F3BEB4900DBC317 /* URLFormattingSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA12B1F3BEB4900DBC317 /* URLFormattingSPI.h */; };
0C2DA1481F3BEB4900DBC317 /* MachVMSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA12C1F3BEB4900DBC317 /* MachVMSPI.h */; };
0C2DA1491F3BEB4900DBC317 /* NEFilterSourceSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA12D1F3BEB4900DBC317 /* NEFilterSourceSPI.h */; };
0C2DA14A1F3BEB4900DBC317 /* NSAttributedStringSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C2DA12E1F3BEB4900DBC317 /* NSAttributedStringSPI.h */; };
@@ -179,7 +179,7 @@
0C2DA1281F3BEB4900DBC317 /* IOReturnSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IOReturnSPI.h; sourceTree = "<group>"; };
0C2DA1291F3BEB4900DBC317 /* IOSurfaceSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IOSurfaceSPI.h; sourceTree = "<group>"; };
0C2DA12A1F3BEB4900DBC317 /* IOTypesSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IOTypesSPI.h; sourceTree = "<group>"; };
- 0C2DA12B1F3BEB4900DBC317 /* LinkPresentationSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkPresentationSPI.h; sourceTree = "<group>"; };
+ 0C2DA12B1F3BEB4900DBC317 /* URLFormattingSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = URLFormattingSPI.h; sourceTree = "<group>"; };
0C2DA12C1F3BEB4900DBC317 /* MachVMSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MachVMSPI.h; sourceTree = "<group>"; };
0C2DA12D1F3BEB4900DBC317 /* NEFilterSourceSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NEFilterSourceSPI.h; sourceTree = "<group>"; };
0C2DA12E1F3BEB4900DBC317 /* NSAttributedStringSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSAttributedStringSPI.h; sourceTree = "<group>"; };
@@ -366,7 +366,6 @@
0C2DA1291F3BEB4900DBC317 /* IOSurfaceSPI.h */,
0C2DA12A1F3BEB4900DBC317 /* IOTypesSPI.h */,
0C5AF9121F43A4C7002EAC02 /* LaunchServicesSPI.h */,
- 0C2DA12B1F3BEB4900DBC317 /* LinkPresentationSPI.h */,
0C2DA12C1F3BEB4900DBC317 /* MachVMSPI.h */,
0C2DA12D1F3BEB4900DBC317 /* NEFilterSourceSPI.h */,
0C2DA12E1F3BEB4900DBC317 /* NSAttributedStringSPI.h */,
@@ -386,6 +385,7 @@
0C2DA13A1F3BEB4900DBC317 /* pthreadSPI.h */,
0C2DA13B1F3BEB4900DBC317 /* QuartzCoreSPI.h */,
0C2DA13C1F3BEB4900DBC317 /* ServersSPI.h */,
+ 0C2DA12B1F3BEB4900DBC317 /* URLFormattingSPI.h */,
0C2DA13D1F3BEB4900DBC317 /* WebFilterEvaluatorSPI.h */,
);
path = cocoa;
@@ -645,7 +645,6 @@
0C2DA1461F3BEB4900DBC317 /* IOTypesSPI.h in Headers */,
A30D41211F0DD0EA00B71954 /* KillRing.h in Headers */,
0C5AF91C1F43A4C7002EAC02 /* LaunchServicesSPI.h in Headers */,
- 0C2DA1471F3BEB4900DBC317 /* LinkPresentationSPI.h in Headers */,
1C4876D91F8D7F4E00CCEEBD /* Logging.h in Headers */,
0C77858B1F45130F00F4EBB6 /* LookupSPI.h in Headers */,
0C2DA1481F3BEB4900DBC317 /* MachVMSPI.h in Headers */,
@@ -710,6 +709,7 @@
A3AB6E641F3D217F009C14B1 /* SystemSleepListenerMac.h in Headers */,
0C7785A11F45130F00F4EBB6 /* TUCallSPI.h in Headers */,
0C5AF9221F43A4C7002EAC02 /* UIKitSPI.h in Headers */,
+ 0C2DA1471F3BEB4900DBC317 /* URLFormattingSPI.h in Headers */,
0C2DA1591F3BEB4900DBC317 /* WebFilterEvaluatorSPI.h in Headers */,
A10826F91F576292004772AC /* WebPanel.h in Headers */,
);
Modified: trunk/Source/WebCore/PAL/pal/PlatformMac.cmake (231392 => 231393)
--- trunk/Source/WebCore/PAL/pal/PlatformMac.cmake 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/PAL/pal/PlatformMac.cmake 2018-05-05 00:16:17 UTC (rev 231393)
@@ -24,7 +24,6 @@
spi/cocoa/IOSurfaceSPI.h
spi/cocoa/IOTypesSPI.h
spi/cocoa/LaunchServicesSPI.h
- spi/cocoa/LinkPresentationSPI.h
spi/cocoa/MachVMSPI.h
spi/cocoa/NEFilterSourceSPI.h
spi/cocoa/NSAttributedStringSPI.h
@@ -43,6 +42,7 @@
spi/cocoa/PassKitSPI.h
spi/cocoa/QuartzCoreSPI.h
spi/cocoa/ServersSPI.h
+ spi/cocoa/URLFormattingSPI.h
spi/cocoa/WebFilterEvaluatorSPI.h
spi/cocoa/pthreadSPI.h
Deleted: trunk/Source/WebCore/PAL/pal/spi/cocoa/LinkPresentationSPI.h (231392 => 231393)
--- trunk/Source/WebCore/PAL/pal/spi/cocoa/LinkPresentationSPI.h 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/LinkPresentationSPI.h 2018-05-05 00:16:17 UTC (rev 231393)
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2017 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.
- */
-
-#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || PLATFORM(IOS)
-
-#if USE(APPLE_INTERNAL_SDK)
-
-#import <LinkPresentation/LPNSURLExtras.h>
-
-#else
-
-@interface NSURL ()
-- (NSString *)_lp_simplifiedDisplayString;
-@end
-
-#endif
-
-#endif // (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || PLATFORM(IOS)
Copied: trunk/Source/WebCore/PAL/pal/spi/cocoa/URLFormattingSPI.h (from rev 231392, trunk/Source/WebCore/PAL/pal/spi/cocoa/LinkPresentationSPI.h) (0 => 231393)
--- trunk/Source/WebCore/PAL/pal/spi/cocoa/URLFormattingSPI.h (rev 0)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/URLFormattingSPI.h 2018-05-05 00:16:17 UTC (rev 231393)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2017 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.
+ */
+
+#if USE(APPLE_INTERNAL_SDK)
+
+#if HAVE(URL_FORMATTING)
+#import <URLFormatting/LPNSURLExtras.h>
+#else
+#import <LinkPresentation/LPNSURLExtras.h>
+#endif
+
+#else
+
+@interface NSURL ()
+- (NSString *)_lp_simplifiedDisplayString;
+@end
+
+#endif
Modified: trunk/Source/WebCore/platform/mac/DragImageMac.mm (231392 => 231393)
--- trunk/Source/WebCore/platform/mac/DragImageMac.mm 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebCore/platform/mac/DragImageMac.mm 2018-05-05 00:16:17 UTC (rev 231393)
@@ -41,10 +41,10 @@
#import "URL.h"
#import <pal/spi/cg/CoreGraphicsSPI.h>
#import <pal/spi/cocoa/CoreTextSPI.h>
-#import <pal/spi/cocoa/LinkPresentationSPI.h>
+#import <pal/spi/cocoa/URLFormattingSPI.h>
#import <wtf/SoftLinking.h>
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
+#if !HAVE(URL_FORMATTING) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
SOFT_LINK_PRIVATE_FRAMEWORK_OPTIONAL(LinkPresentation)
#endif
@@ -199,7 +199,9 @@
NSString *absoluteURLString = [cocoaURL absoluteString];
NSString *domain = absoluteURLString;
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
+#if HAVE(URL_FORMATTING)
+ domain = [cocoaURL _lp_simplifiedDisplayString];
+#elif __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
if (LinkPresentationLibrary())
domain = [cocoaURL _lp_simplifiedDisplayString];
#endif
Modified: trunk/Source/WebKit/ChangeLog (231392 => 231393)
--- trunk/Source/WebKit/ChangeLog 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebKit/ChangeLog 2018-05-05 00:16:17 UTC (rev 231393)
@@ -1,3 +1,14 @@
+2018-05-04 Tim Horton <timothy_hor...@apple.com>
+
+ Shift to a lower-level framework for simplifying URLs
+ https://bugs.webkit.org/show_bug.cgi?id=185334
+
+ Reviewed by Dan Bernstein.
+
+ * Configurations/WebKit.xcconfig:
+ * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
+ (-[WKFullScreenWindowController _updateLocationInfo]):
+
2018-05-04 Per Arne Vollan <pvol...@apple.com>
Shutdown WindowServer connections after checking in with launch services
Modified: trunk/Source/WebKit/Configurations/WebKit.xcconfig (231392 => 231393)
--- trunk/Source/WebKit/Configurations/WebKit.xcconfig 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebKit/Configurations/WebKit.xcconfig 2018-05-05 00:16:17 UTC (rev 231393)
@@ -109,8 +109,11 @@
WK_UIKIT_LDFLAGS = $(WK_UIKIT_LDFLAGS_$(WK_COCOA_TOUCH));
WK_UIKIT_LDFLAGS_cocoatouch = -framework UIKit;
-FRAMEWORK_AND_LIBRARY_LDFLAGS = -lobjc -framework CFNetwork -framework CoreAudio -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation -framework ImageIO -framework IOKit -framework WebKitLegacy -lnetwork $(WK_ACCESSIBILITY_LDFLAGS) $(WK_APPKIT_LDFLAGS) $(WK_ASSERTION_SERVICES_LDFLAGS) $(WK_CARBON_LDFLAGS) $(WK_CORE_PDF_LDFLAGS) $(WK_CORE_PREDICTION_LDFLAGS) $(WK_CORE_SERVICES_LDFLAGS) $(WK_GRAPHICS_SERVICES_LDFLAGS) $(WK_IOSURFACE_LDFLAGS) $(WK_LIBWEBRTC_LDFLAGS) $(WK_MOBILE_CORE_SERVICES_LDFLAGS) $(WK_MOBILE_GESTALT_LDFLAGS) $(WK_OPENGL_LDFLAGS) $(WK_PDFKIT_LDFLAGS) $(WK_SAFE_BROWSING_LDFLAGS) $(WK_UIKIT_LDFLAGS);
+WK_URL_FORMATTING_LDFLAGS = $(WK_URL_FORMATTING_LDFLAGS_$(WK_HAVE_URL_FORMATTING));
+WK_URL_FORMATTING_LDFLAGS_YES = -framework URLFormatting;
+FRAMEWORK_AND_LIBRARY_LDFLAGS = -lobjc -framework CFNetwork -framework CoreAudio -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation -framework ImageIO -framework IOKit -framework WebKitLegacy -lnetwork $(WK_ACCESSIBILITY_LDFLAGS) $(WK_APPKIT_LDFLAGS) $(WK_ASSERTION_SERVICES_LDFLAGS) $(WK_CARBON_LDFLAGS) $(WK_CORE_PDF_LDFLAGS) $(WK_CORE_PREDICTION_LDFLAGS) $(WK_CORE_SERVICES_LDFLAGS) $(WK_GRAPHICS_SERVICES_LDFLAGS) $(WK_IOSURFACE_LDFLAGS) $(WK_LIBWEBRTC_LDFLAGS) $(WK_MOBILE_CORE_SERVICES_LDFLAGS) $(WK_MOBILE_GESTALT_LDFLAGS) $(WK_OPENGL_LDFLAGS) $(WK_PDFKIT_LDFLAGS) $(WK_SAFE_BROWSING_LDFLAGS) $(WK_UIKIT_LDFLAGS) $(WK_URL_FORMATTING_LDFLAGS);
+
// Prevent C++ standard library operator new, delete and their related exception types from being exported as weak symbols.
UNEXPORTED_SYMBOL_LDFLAGS = -Wl,-unexported_symbol -Wl,__ZTISt9bad_alloc -Wl,-unexported_symbol -Wl,__ZTISt9exception -Wl,-unexported_symbol -Wl,__ZTSSt9bad_alloc -Wl,-unexported_symbol -Wl,__ZTSSt9exception -Wl,-unexported_symbol -Wl,__ZdlPvS_ -Wl,-unexported_symbol -Wl,__ZnwmPv -Wl,-unexported_symbol -Wl,__Znwm -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEEC2EOS4_ -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEEC1EOS4_ -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEEaSEDn -Wl,-unexported_symbol, -Wl,__ZNKSt3__18functionIFvN7WebCore12PolicyActionEEEclES2_ -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEE4swapERS4_ -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEEC1ERKS4_ -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEEC2ERKS4_ -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12Policy
ActionEEED1Ev -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEED2Ev -Wl,-unexported_symbol, -Wl,__ZNSt3__18functionIFvN7WebCore12PolicyActionEEEaSERKS4_ -Wl,-unexported_symbol, -Wl,__ZTVNSt3__117bad_function_callE;
@@ -144,3 +147,9 @@
WK_RELOCATABLE_FRAMEWORK_LDFLAGS = $(WK_RELOCATABLE_FRAMEWORK_LDFLAGS_$(WK_RELOCATABLE_FRAMEWORKS));
WK_RELOCATABLE_FRAMEWORK_LDFLAGS_YES = -Wl,-not_for_dyld_shared_cache;
+
+WK_HAVE_URL_FORMATTING = $(WK_HAVE_URL_FORMATTING_COCOA_TOUCH_$(WK_IS_COCOA_TOUCH));
+WK_HAVE_URL_FORMATTING_COCOA_TOUCH_YES = $(WK_HAVE_URL_FORMATTING$(WK_IOS_12));
+WK_HAVE_URL_FORMATTING_COCOA_TOUCH_NO = $(WK_HAVE_URL_FORMATTING$(WK_MACOS_1014));
+WK_HAVE_URL_FORMATTING_MACOS_SINCE_1014 = YES;
+WK_HAVE_URL_FORMATTING_IOS_SINCE_12 = YES;
Modified: trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm (231392 => 231393)
--- trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm 2018-05-04 23:58:04 UTC (rev 231392)
+++ trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm 2018-05-05 00:16:17 UTC (rev 231393)
@@ -46,9 +46,9 @@
#import <WebCore/LocalizedStrings.h>
#import <WebCore/WebCoreNSURLExtras.h>
#import <pal/spi/cf/CFNetworkSPI.h>
-#import <pal/spi/cocoa/LinkPresentationSPI.h>
#import <pal/spi/cocoa/NSStringSPI.h>
#import <pal/spi/cocoa/QuartzCoreSPI.h>
+#import <pal/spi/cocoa/URLFormattingSPI.h>
#import <wtf/SoftLinking.h>
#import <wtf/spi/cocoa/SecuritySPI.h>
@@ -55,7 +55,9 @@
using namespace WebKit;
using namespace WebCore;
+#if !HAVE(URL_FORMATTING)
SOFT_LINK_PRIVATE_FRAMEWORK_OPTIONAL(LinkPresentation)
+#endif
namespace WebKit {
@@ -800,10 +802,14 @@
NSString *domain = nil;
+#if HAVE(URL_FORMATTING)
+ domain = [url _lp_simplifiedDisplayString];
+#else
if (LinkPresentationLibrary())
domain = [url _lp_simplifiedDisplayString];
else
domain = userVisibleString(url);
+#endif
NSString *text = nil;
if ([[url scheme] caseInsensitiveCompare:@"data"] == NSOrderedSame)