-
Notifications
You must be signed in to change notification settings - Fork 423
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
clean up clear data code #2449
clean up clear data code #2449
Conversation
…t wiped and also clear cookies when a domain doesn't have them any more
…r to 'consume' cookies so they can be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this a lot Today, and found two issues:
- When using Auto Clear data, fireproofing doesn't seem to work when I kill and restart the app.
- When data clear animation is set to "None" URL is not cleared from URL bar.
Other than this good job @brindy:
- Tested both iOS 15 and 17.
- Upgrading app works fine.
- With regular animation I could not reproduce the problem with URL bar glitch/data.
- Tested various scenarios, opening, navigating, clearing, reopening, restarting... all of these worked as expected.
# Conflicts: # DuckDuckGo/MainViewController.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DuckDuckGo/AppDelegate.swift
Outdated
// Internally this thing has always called 'async' functions but just never waited for them | ||
// so this is no different really. | ||
// await autoClear?.applicationDidLaunch() | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove? :)
DuckDuckGo/MainViewController.swift
Outdated
@@ -154,6 +154,7 @@ class MainViewController: UIViewController { | |||
|
|||
var postClear: (() -> Void)? | |||
var clearInProgress = false | |||
var dataStoreReadiness: DataStoreWarmup? = DataStoreWarmup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readiness or a warmup? ;)
@bwaresiak haven't addressed the missing bar on the empty view because I think that is not related to this change, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Task/Issue URL: https://app.asana.com/0/414235014887631/1206545081824897/f
Tech Design URL:
CC: @loremattei
Description:
Steps to test this PR:
Maestro
Migration
main
will do)General Usage