Bug 248219
| Summary: | ARQL truncates canonicalWebPageURL when it contains encoded query parameters | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Miles <mail> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, annevk, dino, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 18 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 18 | ||
Miles
When passing canonicalWebPageURL to ARQL as part of the USDZ file path, if the canonicalWebPageURL contains query parameters as part of the URL, even when URI encoded, ARQL will truncate the shared URL down to (and including) the first occurrence of an encoded '&' when clicking on the Share button from within the ARQL session.
For example, when giving a USDZ a path of:
https://example.com/example.usdz#canonicalWebPageURL=https%3A%2F%2Fexample.com%2F%3Ffoo%3D111%26bar%3D222
The shared URL will get truncated down to:
https://example.com/?foo=111
Rather than:
https://example.com/?foo=111&bar=222
This makes it not possible to specify a canonicalWebPageURL containing multiple query string parameters.
Repro:
- Visit: https://usdz-params.glitch.me
- Scroll to "6. Complex Share URL".
- Tap the image to launch ARQL.
- Model opens in ARQL.
- Tap the Share button.
- Copy the shared URL.
- Observe the shared URL is truncated.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/102762712>
Miles
Still seeing this as an issue in iOS 16.4 Public Beta 4.
Miles
Still seeing this as an issue in iOS 16.5 public beta
Miles
Still an issue in iOS 17.0 Beta 3.
Miles
Still an issue in iOS 17.0 Dev Beta 5
Miles
This is still an issue in iOS 17.2 beta (21C5029g)
Any chance of getting a fix in sometime?
Miles
Still an issue in iOS 17.2 beta 3 (21C5046c)
Miles
Still an issue in iOS 17.3 beta (21D5026f)
Miles
Still an issue in iOS 17.4 beta (21E5195e)
Miles
At this point, with this bug being present for over a year, we have found ways to work around it. For websites / web apps that may require sharing of 3D experiences that would have been otherwise been configured through URL query parameters, instead we have implement URL shortening rules and pass that as the canonicalWebPageURL ARQL parameter.
Miles
Still an issue in iOS 17.5 beta.
Miles
Retesting. Still an issue in iOS 18.0 Dev Beta 5 (22A5326f)
Miles
Still an issue in iOS 18.2
Miles
Still an issue with iOS 18.3.1
canonicalWebPageURL with multiple query params will get truncated down to jut the first query param when shared