forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor FXIOS-10669, Bugfix FXIOS-10826, FXIOS-10749, FXIOS-10825, F…
…XIOS-10827, FXIOS-10830 [Sent from Firefox] Refactor the ShareManager to use an explicit interface for sharing different types of content (mozilla-mobile#23620) * Refactor the implementation of ShareManager to separate out logic it should not be handling and to use static methods instead of instantiation. Update DownloadsCoordinator, LibraryCoordinator, DownloadsPanel, and ShareSheetCoordinator usage. * Correctly implement the main menu and deeplink route paths to sharing. * Update all the share paths via the BrowserNavigationHandler protocol share method. Concert tryDownloadingTabFileToShare to an async method. * Add ShareManager unit tests. Updated share manager / share coordinator interface in other unit tests. * Add special BrowserCoordinator unit test to check for TemporaryDocument downloads for tab shares getting promoted to file shares. Added MockTemporaryDocument and TemporaryDocument protocol types. Updated usage in Client. Added documentation. * Rename MainMenuCoordinatorDelegate's showShareSheet method to showShareSheetForCurrentlySelectedTab for clarity amongst different ways to share content. * Add FIXME note for FXIOS-10334 regarding unclear handling of JS alert. Add ShareType.wrappedURL helper getter. * For Send to Device functionality, only send the selectedTab info if it's a .tab type share. * Make the new toolbar share path explicit about sharing the currently selected tab. Add documentation. * Add TODO note for email subtitles from deep link sharesheet route. * Add telemetry to track cases where the ShareSheetCoordinator might not be deallocated properly in the previous session. Add fallback for existing ShareSheetCoordinators in BrowserCoordinator, LibraryCoordinator, and DownloadsCoordinator. * Update reader mode URL handling in the URLActivityItemProvider for sharing. Add documentation for handling reader mode URLs using a tab's displayURL.
- Loading branch information
Showing
27 changed files
with
743 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.