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 auto-consent preferences on opened tabs #666

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

Bunn
Copy link
Collaborator

@Bunn Bunn commented Aug 2, 2022

Task/Issue URL: https://app.asana.com/0/1177771139624306/1202688773645648/f

Description:
This fixes an issue where only new tabs would respect the cookie auto-consent preferences

Steps to test this PR:
Details on how to reproduce the bug without the fix here
Test page: http://privacy-test-pages.glitch.me/features/autoconsent/

With Settings/Privacy/Cookie Consent pop-ups OFF

  1. Open test page
  2. Validate that cookie consent wasn't managed
  3. Open settings and enable cookie consent
  4. Open new tab with the same test page
  5. Validate that cookie was managed
  6. Go back to the first tab, reload, validate that cookie was managed

With Settings/Privacy/Cookie Consent pop-ups ON

  1. Open test page
  2. Validate that cookie consent was managed
  3. Open settings and disable cookie consent
  4. Open new tab with the same test page
  5. Validate that cookie wasn't managed
  6. Go back to the first tab, reload, validate that cookie wasn't managed

Testing checklist:

  • Test with Release configuration
  • Test proper deallocation of tabs
  • Make sure committed submodule changes are desired

Internal references:

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

@tomasstrba tomasstrba self-requested a review August 3, 2022 09:22
@tomasstrba tomasstrba self-assigned this Aug 3, 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.

LGTM! 👍 My apology again for the late review. 🙏

@tomasstrba tomasstrba assigned Bunn and unassigned tomasstrba Aug 9, 2022
@Bunn Bunn merged commit 1b00dea into develop Aug 9, 2022
@Bunn Bunn deleted the bugfix/bunn/cookie-consent-settings branch August 9, 2022 15:53
samsymons added a commit that referenced this pull request Aug 15, 2022
* develop:
  Bookmarks phase 2 bug fixes (#686)
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
samsymons added a commit that referenced this pull request Aug 18, 2022
# By Sam Symons (14) and others
# Via GitHub (1) and others
* develop: (45 commits)
  Revert "Prevent the app from quitting while the Fire button is active" (#690)
  Disable link preview. (#691)
  Fire Button quick wins (#677)
  Bookmarks phase 2 bug fixes (#686)
  Set version to 0.28.3.
  Only clear the selection if the selection needs to change. (#689)
  Set version to 0.28.2.
  Update embedded files for 0.28.2.
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
  Use localized compare to sort autofill items (#674)
  0.28.1
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
@ayoy ayoy unassigned Bunn Feb 23, 2023
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