-
Notifications
You must be signed in to change notification settings - Fork 121
Application password experiment: Clear flagged sites after 14 days #16107
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
Application password experiment: Clear flagged sites after 14 days #16107
Conversation
|
|
RafaelKayumov
left a comment
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.
LGTM. Left just 1 nit
| return false | ||
| } | ||
|
|
||
| let timeElapsed = Date().timeIntervalSince1970 - flagDate.timeIntervalSince1970 |
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.
Nit: There is a method to obtain difference between dates
let timeElapsed = Date().timeIntervalSince(flagDate)
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.
👍 Updated in 8e8839a.

Closes WOOMOB-1187
Description
This PR adds the capability to clear sites flagged as unsupported for network switching to direct requests after 14 days. This is to ensure that sites can take advantage of the switch if app passwords are enabled again.
Changes include:
applicationPasswordUnsupportedListto dictionary of type [String: Date] to store site IDs along with the flagged date. String is required as dictionaries stored inUserDefaultsneed to be compliant to property list type with keys being strings.Testing steps
Follow the TC7 test steps from here pe5sF9-4Am-p2.
Testing information
Tested and confirmed TC7 with the alpha build on my iPhone.
Screenshots
N/A
RELEASE-NOTES.txtif necessary.