-
Notifications
You must be signed in to change notification settings - Fork 16
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
Improvements to data clearing #467
Conversation
@bwaresiak I had a quick look at this. The counter is obviously reset, but then it usually has a value of 1 or 3, something like that after the fire button. |
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.
Actually I was testing the wrong PR! This is working fine.
userContentController.removeAllUserScripts() | ||
|
||
webView.navigationDelegate = caller | ||
webView.load(URL(string: "about:blank")!) |
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.
There is a probability about:black will be reused in multiple places. Could be defined in Common folder
|
||
Once done, remove Tab objects. | ||
*/ | ||
final class TabDataCleaner: NSObject, WKNavigationDelegate { |
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.
Why is this class called TabDataCleaner when data are cleaned outside of it, in clearData()
of fileprivate extension TabCollectionViewModel
?
# By Tomas Strba (3) and others # Via GitHub * develop: Testing Checklist Updates (#480) Xcode Clean Up (#479) External App Scheme permission (#419) Update dashboard to correct version (#477) Update BSK to fix percent encoding query parameters (#475) bump version 0.21.0 add alternate for paste and match with style (#474) First reponder issues when switching tabs (#464) Pre-beta copy updates (#472) Improvements to data clearing (#467) Open feedback form upon tapping "Send Feedback" in the About page (#473) new tab tweaks (#471) # Conflicts: # DuckDuckGo.xcodeproj/project.pbxproj # DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved # DuckDuckGo/Secure Vault/View/SaveIdentityPopover.swift # DuckDuckGo/Secure Vault/View/SaveIdentityViewController.swift # DuckDuckGo/Secure Vault/View/SavePaymentMethodPopover.swift # DuckDuckGo/Secure Vault/View/SavePaymentMethodViewController.swift
Task/Issue URL: https://app.asana.com/0/856498667320406/1201649423461228
Tech Design URL:
CC:
Description:
Ensure data is fully flushed to disk before we burn the tab.
Steps to test this PR:
Open Test Page (https://privacy-test-pages.glitch.me/features/local-storage.html) - check if fire button works correctly in all scenarios (all, some domains only, fireproof, etc).
General some tests.
Testing checklist:
Internal references:
Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM