commit 80de3bfc92ff505f458fe9a03a74f09ae0733d8c parent 3518960180c472ff12786485948aa6934c0c0b35 Author: Josh Aas <jaas@kflag.net> Date: Wed, 5 Nov 2025 13:56:14 +0000 Bug 1997022 - Remove usage of deprecated NSSharingServiceNamePostOnTwitter. r=spohl Differential Revision: https://phabricator.services.mozilla.com/D270442 Diffstat:
| M | widget/cocoa/nsMacSharingService.mm | | | 7 | +------ |
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/widget/cocoa/nsMacSharingService.mm b/widget/cocoa/nsMacSharingService.mm @@ -204,13 +204,8 @@ nsMacSharingService::ShareUrl(const nsAString& aServiceName, [shareDelegate release]; } - // Twitter likes the the title as an additional share item - NSArray* toShare = [[service name] isEqual:NSSharingServiceNamePostOnTwitter] - ? @[ pageUrl, pageTitle ] - : @[ pageUrl ]; - [service setSubject:pageTitle]; - [service performWithItems:toShare]; + [service performWithItems:@[ pageUrl ]]; return NS_OK;