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

DuckPlayer: Don’t open new tabs or DuckPlayer at launch when in alwaysAsk mode #3738

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

afterxleep
Copy link
Collaborator

@afterxleep afterxleep commented Dec 18, 2024

Task/Issue URL: https://app.asana.com/0/1204099484721401/1208896356321073/f
Tech Design URL:
CC:

Description:
Bugfix: When launching the app after a crash or force close with DuckPlayer in 'Ask' mode, the app automatically opened youtube.com/watch pages (videos) in DuckPlayer when it shouldn't.

This was caused by DuckPlayer's 'open in new tab' feature. When the app was first launched, a new tab opened for every youtube.com/watch page, which triggered DuckPlayer by default.

Steps to test this PR:

  • Set Duck Player to "always ask", in Settings
  • Visit youtube.com and select a video to have the overlay displayed
  • Open a new tab and navigate to other URL
  • Go back to the Youtube Tab
  • Force kill the app and relaunch (if on the simulator, re-run from Xcode)
  • Confirm no new (empty) tabs are opened
  • Confirm the YouTube video page shows the DuckPlayer overlay.

Demo:
ScreenRecording_12-18-2024 6-54-04 PM_1

@afterxleep afterxleep requested review from a team, quanganhdo and jdjackson and removed request for a team and quanganhdo December 18, 2024 17:58
@afterxleep afterxleep changed the title DuckPlayer: Don’t open new tabs at launch when in alwaysAsk mode DuckPlayer: Don’t open new tabs or DuckPlayer at launch when in alwaysAsk mode Dec 18, 2024
Copy link
Contributor

@jdjackson jdjackson left a comment

Choose a reason for hiding this comment

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

Looks good to me. Tested per steps without change and was able to reproduce the issue. With your changes, it works as expected.

@afterxleep afterxleep merged commit 8a8f641 into main Dec 19, 2024
64 checks passed
@afterxleep afterxleep deleted the daniel/youtube.launch branch December 19, 2024 17:22
samsymons added a commit that referenced this pull request Dec 19, 2024
# By Michal Smaga (10) and others
# Via Michal Smaga (4) and others
* main: (66 commits)
  DuckPlayer: Don’t open new tabs or DuckPlayer at launch when in alwaysAsk mode (#3738)
  Fix BrowsingMenu layout (#3712)
  Remove ESLint config files (#3739)
  Release 7.150.0-1 (#3742)
  An additional protective in case users try to access the passwords list via the extension, before launching the app
  Ensure migration has occurred before accessing vault
  Populate credential store if user has enabled before launching app
  Update to target main app
  Ensure migration has occurred before accessing vault
  Release 7.149.1-0 (#3740)
  An additional protective in case users try to access the passwords list via the extension, before launching the app
  Ensure migration has occurred before accessing vault
  Populate credential store if user has enabled before launching app
  Update to target main app
  Ensure migration has occurred before accessing vault
  Bugfix: Fix Youtube Internal links when 'Watching on Youtube' from Duck Player (#3733)
  point to BSK branch (#3732)
  Remove duck.ai 10min timer (#3731)
  Release 7.150.0-0 (#3729)
  Update autoconsent to v12.3.0 (#3728)
  ...

# Conflicts:
#	Core/PixelEvent.swift
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
samsymons added a commit that referenced this pull request Dec 19, 2024
* main:
  Crash report cohort ID support for iOS (#3692)
  Fix sharing via the Share & Action extensions on iOS 18 (#3745)
  DuckPlayer: Don’t open new tabs or DuckPlayer at launch when in alwaysAsk mode (#3738)
  Fix BrowsingMenu layout (#3712)
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