Title: [289324] branches/safari-613-branch/Source
- Revision
- 289324
- Author
- [email protected]
- Date
- 2022-02-07 18:56:36 -0800 (Mon, 07 Feb 2022)
Log Message
Cherry-pick r288831. rdar://problem/88268450
[iOS] SharePlay is shown prominently for system-provided Share Sheets
https://bugs.webkit.org/show_bug.cgi?id=235895
rdar://88268450
Reviewed by Wenson Hsieh.
Source/WebKit:
Content shared using the Web Share API should not display a SharePlay action.
* UIProcess/Cocoa/WKShareSheet.mm:
(-[WKShareSheet presentWithShareDataArray:inRect:]):
Use `-[UIActivityViewController setExcludedActivityTypes:]` to ensure
a SharePlay action is not displayed.
Source/WTF:
* wtf/PlatformHave.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WTF/ChangeLog (289323 => 289324)
--- branches/safari-613-branch/Source/WTF/ChangeLog 2022-02-08 02:56:33 UTC (rev 289323)
+++ branches/safari-613-branch/Source/WTF/ChangeLog 2022-02-08 02:56:36 UTC (rev 289324)
@@ -1,5 +1,42 @@
2022-02-07 Russell Epstein <[email protected]>
+ Cherry-pick r288831. rdar://problem/88268450
+
+ [iOS] SharePlay is shown prominently for system-provided Share Sheets
+ https://bugs.webkit.org/show_bug.cgi?id=235895
+ rdar://88268450
+
+ Reviewed by Wenson Hsieh.
+
+ Source/WebKit:
+
+ Content shared using the Web Share API should not display a SharePlay action.
+
+ * UIProcess/Cocoa/WKShareSheet.mm:
+ (-[WKShareSheet presentWithShareDataArray:inRect:]):
+
+ Use `-[UIActivityViewController setExcludedActivityTypes:]` to ensure
+ a SharePlay action is not displayed.
+
+ Source/WTF:
+
+ * wtf/PlatformHave.h:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-01-31 Aditya Keerthi <[email protected]>
+
+ [iOS] SharePlay is shown prominently for system-provided Share Sheets
+ https://bugs.webkit.org/show_bug.cgi?id=235895
+ rdar://88268450
+
+ Reviewed by Wenson Hsieh.
+
+ * wtf/PlatformHave.h:
+
+2022-02-07 Russell Epstein <[email protected]>
+
Cherry-pick r288706. rdar://problem/88152385
Change version number for HAVE_PASSKIT_DEFAULT_SHIPPING_METHOD
Modified: branches/safari-613-branch/Source/WTF/wtf/PlatformHave.h (289323 => 289324)
--- branches/safari-613-branch/Source/WTF/wtf/PlatformHave.h 2022-02-08 02:56:33 UTC (rev 289323)
+++ branches/safari-613-branch/Source/WTF/wtf/PlatformHave.h 2022-02-08 02:56:36 UTC (rev 289324)
@@ -1151,3 +1151,7 @@
|| (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MAX_ALLOWED >= 80500)
#define HAVE_CFNETWORK_DISABLE_CACHE_SPI 1
#endif
+
+#if ((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 150400)
+#define HAVE_UIACTIVITYTYPE_SHAREPLAY 1
+#endif
Modified: branches/safari-613-branch/Source/WebKit/ChangeLog (289323 => 289324)
--- branches/safari-613-branch/Source/WebKit/ChangeLog 2022-02-08 02:56:33 UTC (rev 289323)
+++ branches/safari-613-branch/Source/WebKit/ChangeLog 2022-02-08 02:56:36 UTC (rev 289324)
@@ -1,5 +1,48 @@
2022-02-07 Russell Epstein <[email protected]>
+ Cherry-pick r288831. rdar://problem/88268450
+
+ [iOS] SharePlay is shown prominently for system-provided Share Sheets
+ https://bugs.webkit.org/show_bug.cgi?id=235895
+ rdar://88268450
+
+ Reviewed by Wenson Hsieh.
+
+ Source/WebKit:
+
+ Content shared using the Web Share API should not display a SharePlay action.
+
+ * UIProcess/Cocoa/WKShareSheet.mm:
+ (-[WKShareSheet presentWithShareDataArray:inRect:]):
+
+ Use `-[UIActivityViewController setExcludedActivityTypes:]` to ensure
+ a SharePlay action is not displayed.
+
+ Source/WTF:
+
+ * wtf/PlatformHave.h:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-01-31 Aditya Keerthi <[email protected]>
+
+ [iOS] SharePlay is shown prominently for system-provided Share Sheets
+ https://bugs.webkit.org/show_bug.cgi?id=235895
+ rdar://88268450
+
+ Reviewed by Wenson Hsieh.
+
+ Content shared using the Web Share API should not display a SharePlay action.
+
+ * UIProcess/Cocoa/WKShareSheet.mm:
+ (-[WKShareSheet presentWithShareDataArray:inRect:]):
+
+ Use `-[UIActivityViewController setExcludedActivityTypes:]` to ensure
+ a SharePlay action is not displayed.
+
+2022-02-07 Russell Epstein <[email protected]>
+
Cherry-pick r288825. rdar://problem/88172449
[WP] Remove PostScript conversion code
Modified: branches/safari-613-branch/Source/WebKit/UIProcess/Cocoa/WKShareSheet.mm (289323 => 289324)
--- branches/safari-613-branch/Source/WebKit/UIProcess/Cocoa/WKShareSheet.mm 2022-02-08 02:56:33 UTC (rev 289323)
+++ branches/safari-613-branch/Source/WebKit/UIProcess/Cocoa/WKShareSheet.mm 2022-02-08 02:56:36 UTC (rev 289324)
@@ -181,6 +181,11 @@
[_sharingServicePicker showRelativeToRect:presentationRect ofView:webView preferredEdge:NSMinYEdge];
#else
_shareSheetViewController = adoptNS([[UIActivityViewController alloc] initWithActivityItems:sharingItems applicationActivities:nil]);
+
+#if HAVE(UIACTIVITYTYPE_SHAREPLAY)
+ [_shareSheetViewController setExcludedActivityTypes:@[ UIActivityTypeSharePlay ]];
+#endif
+
[_shareSheetViewController setCompletionWithItemsHandler:^(NSString *, BOOL completed, NSArray *, NSError *) {
_didShareSuccessfully |= completed;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes