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

Fix threading issues in Autoconsent #478

Merged
merged 10 commits into from
Mar 30, 2022
Merged

Conversation

mallexxx
Copy link
Collaborator

CC: @sammacbeth

Description:
Fixes failing tests on Xcode 13.3;
Fixes threading issues caused by async calls whereas WebKit requires calls from the main thread

Steps to test this PR:

  1. Validate Autoconsent alert/popover is shown
  2. Validate Autoconsent works
  3. Validate tests pass on Xcode 13.3

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

@mallexxx mallexxx requested a review from tomasstrba March 23, 2022 09:48
@tomasstrba tomasstrba self-assigned this Mar 23, 2022
@tomasstrba
Copy link
Contributor

tomasstrba commented Mar 28, 2022

Can't compile this on Xcode 13.3 EDIT: 13.2. Thinking what would be the best next step. When do you think the team could switch to Xcode 13.3? I could update, review and then we all can switch. What do you think?

@tomasstrba tomasstrba assigned mallexxx and unassigned tomasstrba Mar 28, 2022
@mallexxx
Copy link
Collaborator Author

@tomasstrba , Xcode 13.3 has an updated Package format, probably that's the reason;
After this one is approved I'll open a task for each of the O-J team members to update Xcode and after it's ready I'll merge

@tomasstrba tomasstrba assigned tomasstrba and unassigned mallexxx Mar 29, 2022
Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT! 👍 compilation works, auto-consent works.

I am getting a failed assertion when running unit tests locally, but I don't think it is related to this PR
Screen Shot 2022-03-29 at 14 50 48

@tomasstrba tomasstrba assigned mallexxx and unassigned tomasstrba Mar 29, 2022
@mallexxx
Copy link
Collaborator Author

@tomasstrba I can‘t catch it now, it works when I look at it.. 🤷‍♂️

@mallexxx mallexxx merged commit 6d06bd5 into develop Mar 30, 2022
@mallexxx mallexxx deleted the alex/fix-autoconsent-tests branch March 30, 2022 09:49
samsymons added a commit that referenced this pull request Apr 4, 2022
# By Tomas Strba (5) and others
# Via GitHub
* develop:
  Refresh the Autofill panel after importing (#496)
  Require authentication for login export (#494)
  Observations database clearing improvements (#495)
  Fix handling external schemes in address bar (#493)
  New autoconsent rules and move tab cleanup out of onCommitted (#489)
  Safari CSV Passwords import +LastPass, 1Password (#483)
  Split preferences into multiple screens and add an option to show full URL (#487)
  Color of hover label fixed (#497)
  Add AMP links protection (#488)
  Enhancements of fire button options (#484)
  Rename Logins+ to Autofill (#492)
  new tab page low hanging fruit (#491)
  Fix threading issues in Autoconsent (#478)
  Navigation bar improvement: CMD + back or CMD + forward opens a new tab (#486)
  TextField refactored to TextView in order to make it scrollable (#481)
  More Xcode cleaning (#485)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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.

2 participants