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

[navigation #1] Navigation Delegate Refactoring #884

Merged
merged 111 commits into from
Feb 21, 2023

Conversation

mallexxx
Copy link
Collaborator

@mallexxx mallexxx commented Dec 9, 2022

Task/Issue URL: https://app.asana.com/0/0/1203487090719125/f
Tech Design URL: https://app.asana.com/0/481882893211075/1203268245242140
BSK PR: duckduckgo/BrowserServicesKit#198
CC: @bwaresiak @tomasstrba

Description:
Refactor WKNavigationDelegate to NavigationResponder (without TabExtensions yet)

Steps to test this PR:

  1. Validate navigation flows
  2. content blocking/ref trimming/gpc... scenarios
  3. downloads
  4. popups
  5. redirects

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

@ayoy ayoy removed their assignment Feb 8, 2023
@mallexxx
Copy link
Collaborator Author

mallexxx commented Feb 9, 2023

comment by @tomasstrba left in #885: If you play any video and close the tab, it continues playing for few seconds. If possible, please make sure this issue is resolved before merging this to develop
Upd: caused by the long-decision-making check, fixed in BSK

mallexxx and others added 8 commits February 9, 2023 21:59
* AdClickAttributionTabExtension+NavigationResponder

* fix TabExtension test overrides, adClick extension tests

* fix AdClickAttributionTabExtensionTests teardown

* cleanup

* don‘t use shared state in tests

* fix adClick inherited attribution initialization

* cleanup

* Adjust adClick tests to better match UserScripts/UserContentController behaviour; cleanup

* fix RELEASE

* remove Swifter dependency

* fix file header

* [navigation #3+4] canGoBack/GoForward; SERP headers (#885)

* canGoBack, canGoForward RePublished, Tab.publishers refactored

* redo redirect(_:NavigationAction, invalidatingBackItemIfNeeded)

* tests

* don‘t use shared state in tests

* fix RELEASE

* rollback renaming

* drop RePublished

* fix header name

* [navigation #4] SERP headers navigation responder (#887)

* SERP headers handling in SerpHeadersNavigationResponder

* convert TabTests to custom SchemeHandler
@mallexxx
Copy link
Collaborator Author

posted wrong commit message, "1.34.1" ofc, it‘s correct in the project file

@mallexxx mallexxx merged commit d871825 into develop Feb 21, 2023
@mallexxx mallexxx deleted the alex/dist-nav-delegate branch February 21, 2023 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants