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

If navigationAction does not target main frame open in new tab #557

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

SlayterDev
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1177771139624306/1202174754994009/f
Tech Design URL:
CC: @brindy

Description:
When rewriting tracking links we need to check isTargetingMainFrame and handle the action accordingly.

Steps to test this PR:

  1. Send an email to yourself with this link: https://example.com/?utm_campaign=test
  2. Open the link from a web email client like fastmail.com
  3. Link should open in new tab and the tracking parameter removed

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

@SlayterDev SlayterDev requested a review from brindy April 27, 2022 15:42
@brindy brindy self-assigned this Apr 27, 2022
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 Brad!

@brindy brindy assigned SlayterDev and unassigned brindy Apr 27, 2022
@SlayterDev SlayterDev merged commit 8729989 into develop Apr 27, 2022
@SlayterDev SlayterDev deleted the brad/new-tab-fix branch April 27, 2022 17:21
samsymons added a commit that referenced this pull request May 4, 2022
# By Sam Symons (2) and others
# Via Sam Symons (2) and GitHub (1)
* develop:
  Autoconsent: prompt only when if an actual cookie popup is found (#565)
  Fix incorrect action name for selfTest (#561)
  BSK: Check array items for surrogate methods (#563)
  BSK: Check array items for surrogate methods (#563)
  Navigation failure handled in navigation bar buttons and their menus (#540)
  Version 0.23.1
  Ensure that we don’t trip an assertion failure when Fireproofing. (#559)
  Tweak autoconsent events (#554)
  Remove Punycode reference after recent bump of BSK (#560)
  If navigationAction does not target main frame open in new tab (#557)
  Use macos-12 environment in GitHub Actions workflows (#556)
  Version 0.23.0

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
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