Bug 231652 - URLs getting trimmed in address bar
Summary: URLs getting trimmed in address bar
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-12 18:17 PDT by Jack Wellborn
Modified: 2021-10-14 05:51 PDT (History)
3 users (show)

See Also:


Attachments
Video Showing the Behavior (4.54 MB, video/mp4)
2021-10-12 18:17 PDT, Jack Wellborn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Wellborn 2021-10-12 18:17:27 PDT
Created attachment 441026 [details]
Video Showing the Behavior

I found a hairy bug wherein the address bar trims URLs to 4096 characters. The browser still requests the larger URL, thankfully, but editing that URL in the address bar trims subsequent requests. I'm not sure if this belongs in Webkit so let me know if I should send this as a Safari Radar.
Comment 1 Sam Sneddon [:gsnedders] 2021-10-13 13:36:49 PDT
Strongly assume Safari, but let's just imported it from here and migrate it.
Comment 2 Radar WebKit Bug Importer 2021-10-13 13:37:03 PDT
<rdar://problem/84214202>
Comment 3 Alexey Proskuryakov 2021-10-13 17:05:12 PDT
This will get tracked by Apple via the import, however it is always better to have people report their own bugs via feedbackassistant.apple.com. That way, there is a channel for communication between Apple and the reporter.

That said, 4096 seems like a lot, a quick web search suggests that other browsers support less? E.g. https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers

Anyway, marking as INVALID as a non-WebKit issue.
Comment 4 Jack Wellborn 2021-10-14 05:51:36 PDT
Thanks. Trust me, I do not endorse stupid long urls. That said, I don’t think the bug is the limit, rather the discrepancy between what the browser requests and what is presented in, and then propagated from, the UI. For what it’s worth, this bug caused me some consternation troubleshooting a request, which went downs something like this:

1. Stupid long url isn’t working as expected for reason A.
2. Edit stupid long url to remove reason A, load, and don’t notice that Safari trimmed the stupid long url.
3. See stupid long url still isn’t working
4. Ponder the meaning of life.

Anyhow, thanks again.