Unreviewed, fix iOS build with recent SDKs.
[WebKit-https.git] / Source / WebKit / UIProcess / API / Cocoa / WKWebView.mm
index 58c6498..23dbc7e 100644 (file)
@@ -412,7 +412,9 @@ static int32_t deviceOrientationForUIInterfaceOrientation(UIInterfaceOrientation
 
 static int32_t deviceOrientation()
 {
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     return deviceOrientationForUIInterfaceOrientation([[UIApplication sharedApplication] statusBarOrientation]);
+ALLOW_DEPRECATED_DECLARATIONS_END
 }
 
 - (BOOL)_isShowingVideoPictureInPicture
@@ -6323,9 +6325,6 @@ static WTF::Optional<WebCore::ViewportArguments> viewportArgumentsFromDictionary
 - (_WKWebViewPrintFormatter *)_webViewPrintFormatter
 {
 #if !PLATFORM(IOSMAC)
-    if (_page->process().connection()->hasOutstandingOutgoingSynchronousReplies())
-        return nil;
-
     UIViewPrintFormatter *viewPrintFormatter = self.viewPrintFormatter;
     ASSERT([viewPrintFormatter isKindOfClass:[_WKWebViewPrintFormatter class]]);
     return (_WKWebViewPrintFormatter *)viewPrintFormatter;