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 Tab not closed for redrected download #2715

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

mallexxx
Copy link
Collaborator

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

Description:

  • Fixes tab closing after a redirected download starts

Steps to test this PR:

  1. Open https://kodi.tv/download/macos/, click Download
  2. A new tab is opened and download starts
  3. Expected: the tab is closed after starting the download

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@mallexxx mallexxx requested review from a team, dus7 and alessandroboron and removed request for a team and dus7 April 29, 2024 12:58
Copy link
Contributor

@alessandroboron alessandroboron left a comment

Choose a reason for hiding this comment

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

Work as expected! 💪

Suggestion: If we created a mock for WebKitDownload we could test the logic and ensure that webView.close is getting called. This would help us to not introduce regressions in the future if we change the logic.

@mallexxx mallexxx merged commit 632cb2e into main Apr 30, 2024
18 checks passed
@mallexxx mallexxx deleted the alex/redirected-download-tab-close branch April 30, 2024 13:58
samsymons added a commit that referenced this pull request May 1, 2024
# By Fernando Bunn (3) and others
# Via GitHub
* main:
  Revert "Use NotLocalizedString on DBP error screen copy" (#2731)
  Use NotLocalizedString on DBP error screen copy
  Bump version to 1.86.0 (180)
  Bump version to 1.86.0 (179)
  Update embedded files
  Tentative fix for tab crashes (#2727)
  macOS: Set Error Reporter on All SecureVault Initializations  (#2717)
  Bump version to 1.86.0 (178)
  Alessandro/create subtask on pr requested (#2692)
  Prevent queued operations from cancelling manual scans (#2719)
  Fix Tab not closed for redrected download (#2715)
  Egress Server Failure Detection & Recovery (#2657)

# 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