-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Bugfix FXIOS-10996, FXIOS-11158 Fix app crashes in HistoryPanel due to duplicate Site identifiers #24116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ih-codes
merged 40 commits into
main
from
ih/FXIOS-10996-refactor-history-panel-hashable-conformance
Jan 23, 2025
Merged
Bugfix FXIOS-10996, FXIOS-11158 Fix app crashes in HistoryPanel due to duplicate Site identifiers #24116
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
7dea3c0
FXIOS-11014 - Remove deprecated Site GUID from SQL Lite Database
ih-codes 775496f
FXIOS-11015 - Bugfix - Sites inserted into the SQLite database with Sβ¦
ih-codes 4fadb16
Add unit test for int64 size Site IDs to TestSQLitePinnedSites.swift.β¦
ih-codes f239bb5
Cleanup.
ih-codes 125b057
Refactor the Site class to be a BasicSite struct adhering to the Siteβ¦
ih-codes 0846222
Update SQLLite factories for new Site type. Remove deprecated GUID roβ¦
ih-codes 4c2525f
Move all Site related files to Storage > Sites.
ih-codes e3bbd78
Rough in new Site struct and related types enum and its associatedTypβ¦
ih-codes e50363c
Adjust file naming for new model naming.
ih-codes 5cee67e
Remove site info model types from Client membership.
ih-codes 70f26c9
Migrate DefaultSuggestedSites, SQLLite related files, and RustPlaces β¦
ih-codes c7fd99c
Migrate MainMenuActionHelper, SearchHighlightItem, SearchViewControllβ¦
ih-codes ef6ed09
Migrate TopSites related code to use the new Site type.
ih-codes bee92de
More Site cleanup.
ih-codes 5597bf5
Fix unit tests and other compilation errors with Site updates. Add exβ¦
ih-codes c031774
Merge branch 'ih/FXIOS-11015-fix-sqlite-int64-storage' into ih/FXIOS-β¦
ih-codes b8883fc
Amend fix merge for new Site with forced unique non-nil IDs.
ih-codes 1bcfbea
Fix widget extension by making encode/decode of IDs optional (for migβ¦
ih-codes 1370f0e
Rename "suggested" google site to "pinned" site data.
ih-codes 3738596
Unit test fixes for google pinned site rename.
ih-codes fbf7a76
Refactoring and cleanup. Added documentation. Renaming. Cleaning up Fβ¦
ih-codes 8e44370
Swiftlint fixes.
ih-codes 64c46c6
Simplify some logic.
ih-codes 19e1fc6
Merge remote-tracking branch 'mozilla/main' into ih/FXIOS-10996-refacβ¦
ih-codes d8076b1
Bugfix from refactor.
ih-codes 477fc9f
Move SiteType to its own file.
ih-codes dafabd9
Remove unused placeholder "google guid."
ih-codes 3d8a49d
Cleanup. Revert a doc change.
ih-codes 06ccf62
Add type helper to TopSiteState.
ih-codes 3159687
Be more explicit about ignoring places deferred closure.
ih-codes a2db44c
Add documentation to be more explicit about sending telemetry for spoβ¦
ih-codes 7208770
Add some Site helpers for type. Use to simplify some type checks.
ih-codes 48800cc
Make Site default inits private so we consistently use factory methodβ¦
ih-codes 04d95da
Simplify countPinnedSites.
ih-codes 8641fed
Fix passing favicon resource to the google pinned tile.
ih-codes 6145d2e
Merge remote-tracking branch 'mozilla/main' into ih/FXIOS-10996-refacβ¦
ih-codes 3f75507
Fix unit tests compiling.
ih-codes 4775310
Merge with main and resolve conflicts from PR 24257 related to sponsoβ¦
ih-codes 2a0d10a
Additional merge fixes and unit test fixes.
ih-codes 8bc6779
Merge remote-tracking branch 'mozilla/main' into ih/FXIOS-10996-refacβ¦
ih-codes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
19 changes: 19 additions & 0 deletions
19
firefox-ios/Client/Frontend/Home/Homepage Rebuild/TopSites/Site+createSponsoredSite.swift
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
import Storage | ||
|
||
extension Site { | ||
/// A helper to instantiate a Site from the Storage target using the Client target `Contile` type. | ||
static func createSponsoredSite(fromContile contile: Contile) -> Site { | ||
let siteInfo = SponsoredSiteInfo( | ||
tileId: contile.id, | ||
impressionURL: contile.impressionUrl, | ||
clickURL: contile.clickUrl, | ||
imageURL: contile.imageUrl | ||
) | ||
|
||
return Site.createSponsoredSite(url: contile.url, title: contile.name, siteInfo: siteInfo) | ||
} | ||
} |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.