You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
fix crash in Navigation.debugDescription, wrap os_log (#1120)
Task/Issue URL:
https://app.asana.com/0/1177771139624306/1204359032555835/f
BSK PR: duckduckgo/BrowserServicesKit#312
iOS PR: duckduckgo/iOS#1638
**Description**:
- fixed the navigation flow when fragment Navigation could end-up
without a NavigationAction assigned
- introduced os_log wrapper in BSK to accept message arguments as
autoclosures i.e. computed only if valid log and log level are passed
**Steps to test this PR**:
1. Validate that every Navigation appearing in willStart and
didStart NavigationResponder calls has a NavigationAction assigned
(DistributedNavigationDelegate.swift:279) - only actual for macOS now
2. Validate `os_log` calls across the codebase don‘t need changing (only
need to replace `replace import` os with `import Common`), arguments
passed as %s and %d parameters are printed correctly, to the right log
and with correct log level. Validate interpolated string passed to
`os_log` works (`os_log("interpolated \(string)")`)
3. Validate `import os.log` is discouraged by swiftlint in favour of
`import Common`
4. Validate Debug->Logging menu is working as intended including BSK
logging categories
<!--
Tagging instructions
If this PR isn't ready to be merged for whatever reason it should be
marked with the `DO NOT MERGE` label (particularly if it's a draft)
If it's pending Product Review/PFR, please add the `Pending Product
Review` label.
If at any point it isn't actively being worked on/ready for
review/otherwise moving forward (besides the above PR/PFR exception)
strongly consider closing it (or not opening it in the first place). If
you decide not to close it, make sure it's labelled to make it clear the
PRs state and comment with more information.
-->
---
###### Internal references:
[Pull Request Review
Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f)
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
**When ready for review, remember to post the PR in MM**
0 commit comments