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 crash when background tabs trigger cookie popup #439

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

sammacbeth
Copy link
Contributor

@sammacbeth sammacbeth commented Feb 23, 2022

The webview may not have a window when we run this code.

Task/Issue URL: https://app.asana.com/0/1163321984198618/1201869397036687/f
Tech Design URL:
CC:

Description:

Steps to test this PR:

  1. Clear app settings
  2. Load several tabs in the background (which should have cookie popups)
  3. Switch to closed tabs
  4. Browser shouldn't crash.

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

The webview may not have a window when we run this code.
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.

LGTM, thanks. I couldn't get it to crash, but please create a follow up task to consider rearchitecting this. Ideally these script implementations should be platform agnostic - e.g if we want to re-use this on iOS right now we'd have to edit it before moving it into BSK.

@brindy brindy assigned sammacbeth and unassigned brindy Feb 24, 2022
@sammacbeth sammacbeth merged commit 28e769d into develop Feb 24, 2022
@sammacbeth sammacbeth deleted the sammacbeth/autoconsent-crash branch February 24, 2022 14:30
samsymons added a commit that referenced this pull request Feb 25, 2022
# By Sam Macbeth (2) and others
# Via GitHub
* develop:
  Top autofill (#432)
  Option to add new notes or edit existing is disabled (#446)
  Use our own autoconsent fork (#444)
  New Feedback Form (#424)
  Update privacy dashboard (#440)
  Fix crash when background tabs trigger cookie popup (#439)
  Update clickToLoadConfig.json (#435)
  rename weakAssign to assign(to:onWeaklyHeld:) (#442)
  Improve Safari favorite importing (#436)

# 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