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 site: queries escaping with iOS 17 SDK (#640) #640

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

dus7
Copy link
Contributor

@dus7 dus7 commented Jan 29, 2024

Please review the release process for BrowserServicesKit here.

Required:

Task/Issue URL: https://app.asana.com/0/414235014887631/1206343150540010/f
iOS PR: duckduckgo/iOS#2402
macOS PR: duckduckgo/macos-browser#2130
What kind of version bump will this require?: Patch

Description:

Linking to iOS 17 SDK modifies how URLs are being parsed and escaped (see release notes). This change re-uses the solution done for macOS.

Steps to test this PR:

  1. Open a new tab
  2. Search for site:drivingline.com cummins
  3. SERP with results from drivingline.com should appear

OS Testing:

  • iOS 16
  • iOS 17

After moving to Xcode 15 the following change in URL parsing had effect:
https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes
Fixed: For apps linked on or after iOS 17 and aligned OS versions, URL parsing has updated from the obsolete RFC 1738/1808 parsing to the same RFC 3986 parsing as URLComponents. This unifies the parsing behaviors of the URLand URLComponents APIs. Now, URL automatically percent- or IDNA-encodes invalid characters to help create a valid URL.
Copy link
Contributor

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

LGTM, great job!

@dus7 dus7 changed the title Fix site: queries escaping for iOS 17 SDK Fix site: queries escaping with iOS 17 SDK (#640) Jan 29, 2024
@dus7 dus7 merged commit 055cc2d into main Jan 29, 2024
10 checks passed
@dus7 dus7 deleted the mariusz/url-escaping-ios17 branch January 29, 2024 15:22
dus7 added a commit to duckduckgo/macos-browser that referenced this pull request Jan 29, 2024
Task/Issue URL:
https://app.asana.com/0/414235014887631/1206343150540010/f

**Description**:
Linking to iOS 17 SDK modifies how URLs are being parsed and escaped
(see [release
notes](https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes)).
This change re-uses the solution done for macOS.

**Steps to test this PR**:
See [PR in
BSK](duckduckgo/BrowserServicesKit#640)
samsymons added a commit that referenced this pull request Jan 30, 2024
* main:
  Bump content-scope-scripts to 4.59.2 (#638)
  Fix `site:` queries escaping with iOS 17 SDK (#640)
  Breakage improvement (#621)
samsymons added a commit that referenced this pull request Feb 8, 2024
* main:
  add alternateHtmlLoad navigation type (HTML Error Page) (#644)
  Check subfeature state before reading rollout data (#649)
  Add NavigationPreferences CustomHeaderFields (#651)
  Update autofill to 10.1.0 (#643)
  Add Autoconsent onByDefault subfeature (#647)
  Add error codes to site breakage reports (#642)
  Run unit tests also on iOS Simulator (#641)
  Improve VPN auth token storage (#639)
  Bump content-scope-scripts to 4.59.2 (#638)
  Fix `site:` queries escaping with iOS 17 SDK (#640)
  Breakage improvement (#621)
  Don't report CancellationError from BookmarksFaviconsFetcher (#634)
  Add explicit mapping of SyncError to error code (#637)
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