Skip to content
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

Merged
merged 4 commits into from
Mar 17, 2022
Merged

Conversation

bwaresiak
Copy link
Collaborator

@bwaresiak bwaresiak commented Mar 11, 2022

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:

  • Test with Release configuration

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@bwaresiak bwaresiak changed the title [WIP] Improvements to data clearing Improvements to data clearing Mar 11, 2022
@bwaresiak bwaresiak requested a review from tomasstrba March 11, 2022 19:50
@brindy
Copy link
Contributor

brindy commented Mar 17, 2022

@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.

@brindy brindy assigned brindy and bwaresiak and unassigned brindy Mar 17, 2022
Copy link
Contributor

@brindy brindy left a 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.

@bwaresiak bwaresiak merged commit 25d011c into develop Mar 17, 2022
@bwaresiak bwaresiak deleted the bartek/better-data-clearing branch March 17, 2022 16:25
userContentController.removeAllUserScripts()

webView.navigationDelegate = caller
webView.load(URL(string: "about:blank")!)
Copy link
Contributor

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 {
Copy link
Contributor

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?

samsymons added a commit that referenced this pull request Mar 25, 2022
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants