Title: [247700] trunk/Source/WebKit
Revision
247700
Author
[email protected]
Date
2019-07-22 13:38:52 -0700 (Mon, 22 Jul 2019)

Log Message

WebKit SPI fix for [ClickyOrb] Audio continues playing after dismissing a video preview in Safari
https://bugs.webkit.org/show_bug.cgi?id=200011
<rdar://problem/53409457>

Reviewed by Tim Horton.

Don't check for the SPI @selector(_webView:contextMenuDidEndForElement:)
on the WKUIDelegate so that clients that got caught implementing the
SPI before moving to the real API can still clean-up state. In other words,
don't force a client that only implements that method to move completely
to the new API.

* UIProcess/ios/WKContentViewInteraction.mm:
(needsDeprecatedPreviewAPI):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (247699 => 247700)


--- trunk/Source/WebKit/ChangeLog	2019-07-22 20:24:05 UTC (rev 247699)
+++ trunk/Source/WebKit/ChangeLog	2019-07-22 20:38:52 UTC (rev 247700)
@@ -1,3 +1,20 @@
+2019-07-22  Dean Jackson  <[email protected]>
+
+        WebKit SPI fix for [ClickyOrb] Audio continues playing after dismissing a video preview in Safari
+        https://bugs.webkit.org/show_bug.cgi?id=200011
+        <rdar://problem/53409457>
+
+        Reviewed by Tim Horton.
+
+        Don't check for the SPI @selector(_webView:contextMenuDidEndForElement:)
+        on the WKUIDelegate so that clients that got caught implementing the
+        SPI before moving to the real API can still clean-up state. In other words,
+        don't force a client that only implements that method to move completely
+        to the new API.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (needsDeprecatedPreviewAPI):
+
 2019-07-22  Jer Noble  <[email protected]>
 
         REGRESSION(rUnknown): YouTube playback pauses when switching to a new tab

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (247699 => 247700)


--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2019-07-22 20:24:05 UTC (rev 247699)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2019-07-22 20:38:52 UTC (rev 247700)
@@ -7640,6 +7640,9 @@
 static bool needsDeprecatedPreviewAPI(id<WKUIDelegate> delegate)
 {
     // FIXME: Replace these with booleans in UIDelegate.h.
+    // Note that we explicitly do not test for @selector(_webView:contextMenuDidEndForElement:) since
+    // that's used by MobileSafari to clean up state even though they haven't moved to the new API.
+
     return delegate
     && ![delegate respondsToSelector:@selector(_webView:contextMenuConfigurationForElement:completionHandler:)]
     && ![delegate respondsToSelector:@selector(webView:contextMenuConfigurationForElement:completionHandler:)]
@@ -7647,7 +7650,6 @@
     && ![delegate respondsToSelector:@selector(webView:contextMenuForElement:willCommitWithAnimator:)]
     && ![delegate respondsToSelector:@selector(_webView:contextMenuWillPresentForElement:)]
     && ![delegate respondsToSelector:@selector(webView:contextMenuWillPresentForElement:)]
-    && ![delegate respondsToSelector:@selector(_webView:contextMenuDidEndForElement:)]
     && ![delegate respondsToSelector:@selector(webView:contextMenuDidEndForElement:)]
     && ([delegate respondsToSelector:@selector(webView:shouldPreviewElement:)]
         || [delegate respondsToSelector:@selector(webView:previewingViewControllerForElement:defaultActions:)]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to