CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 19:46:41 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/whatwg/url.git
etag: W/"29dd183887359114f0cd6acbb33946e3"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=SP4ySMBHRSjQnWFdTGdHSe8AKFwp69qTxGJqkNxBD%2F60dbS4M15gp6EKDJa%2Fy7VwQhoQjmge70Olcz3mJkKvkyVmzG4Q8TmVgh%2BWyPasfrK9wjcgHa6%2FV2HZsQorwKCH9IDTE%2FuvEULBDukJwUSYH1035Z8gO24RXwuWDWDLFHGbrMwZQafMpTHpnPrlWsonMRkFCvs60p15zN5K1bgFDrcllG7bdntxi0vdcvaO%2FzVYeATRbtUK%2BTimBipI95qkgS6Il8DxGQKNwwm6dLs5aw%3D%3D--dIZAOwyxtlLIkSHW--5R1V57rvobJc88Y8vzlO8Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.656180513.1752954400; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 19:46:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 19:46:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E342:110E0E:7DD46B:9E7434:687BF620
Ensure opaque paths always roundtrip · whatwg/url@6c78200 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit 6c78200
authored
Ensure opaque paths always roundtrip
In fdaa0e5 we tackled a problem whereby removing the fragment or query from a URL with an opaque path through the API would not make the URL roundtrip due to the opaque path being able to end in non-percent-encoded spaces.
However, this failed to address other ways of serializing the URL. As such this is a new approach whereby opaque paths simply cannot end with non-percent-encoded spaces. Enforcing this in the URL parser allows us to completely revert the aforementioned commit, greatly simplifying the API implementation.
Tests: web-platform-tests/wpt#51129.
Fixes #784. Supersedes and closes #785.1 parent 076afff commit 6c78200Copy full SHA for 6c78200
Expand file treeCollapse file tree
1 file changed
+19
-61
lines changed+19-61Lines changed: 19 additions & 61 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2920 | 2920 |
| |
2921 | 2921 |
| |
2922 | 2922 |
| |
2923 |
| - | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
2924 | 2934 |
| |
2925 | 2935 |
| |
2926 |
| - | |
2927 |
| - | |
| 2936 | + | |
| 2937 | + | |
2928 | 2938 |
| |
2929 | 2939 |
| |
2930 | 2940 |
| |
2931 | 2941 |
| |
2932 |
| - | |
2933 |
| - | |
| 2942 | + | |
2934 | 2943 |
| |
2935 | 2944 |
| |
2936 | 2945 |
| |
| |||
3437 | 3446 |
| |
3438 | 3447 |
| |
3439 | 3448 |
| |
3440 |
| - | |
3441 |
| - | |
3442 |
| - | |
3443 |
| - | |
3444 |
| - | |
3445 |
| - | |
3446 |
| - | |
3447 |
| - | |
3448 |
| - | |
3449 |
| - | |
3450 |
| - | |
3451 |
| - | |
3452 |
| - | |
3453 |
| - | |
3454 |
| - | |
3455 |
| - | |
3456 |
| - | |
3457 | 3449 |
| |
3458 | 3450 |
| |
3459 | 3451 |
| |
| |||
3781 | 3773 |
| |
3782 | 3774 |
| |
3783 | 3775 |
| |
3784 |
| - | |
3785 |
| - | |
3786 |
| - | |
3787 |
| - | |
3788 |
| - | |
3789 |
| - | |
3790 |
| - | |
3791 |
| - | |
3792 |
| - | |
3793 |
| - | |
3794 |
| - | |
3795 |
| - | |
3796 |
| - | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
3797 | 3779 |
| |
3798 | 3780 |
| |
3799 | 3781 |
| |
| |||
3806 | 3788 |
| |
3807 | 3789 |
| |
3808 | 3790 |
| |
3809 |
| - | |
3810 |
| - | |
3811 |
| - | |
3812 |
| - | |
3813 |
| - | |
3814 | 3791 |
| |
3815 | 3792 |
| |
3816 | 3793 |
| |
| |||
3833 | 3810 |
| |
3834 | 3811 |
| |
3835 | 3812 |
| |
3836 |
| - | |
3837 |
| - | |
3838 |
| - | |
3839 |
| - | |
3840 |
| - | |
3841 |
| - | |
3842 |
| - | |
3843 |
| - | |
3844 |
| - | |
3845 |
| - | |
| 3813 | + | |
| 3814 | + | |
3846 | 3815 |
| |
3847 | 3816 |
| |
3848 | 3817 |
| |
| |||
3852 | 3821 |
| |
3853 | 3822 |
| |
3854 | 3823 |
| |
3855 |
| - | |
3856 |
| - | |
3857 |
| - | |
3858 | 3824 |
| |
3859 | 3825 |
| |
3860 | 3826 |
| |
| |||
3925 | 3891 |
| |
3926 | 3892 |
| |
3927 | 3893 |
| |
3928 |
| - | |
3929 |
| - | |
3930 |
| - | |
3931 |
| - | |
3932 | 3894 |
| |
3933 | 3895 |
| |
3934 | 3896 |
| |
| |||
3977 | 3939 |
| |
3978 | 3940 |
| |
3979 | 3941 |
| |
3980 |
| - | |
3981 |
| - | |
3982 |
| - | |
3983 |
| - | |
3984 | 3942 |
| |
3985 | 3943 |
| |
3986 | 3944 |
| |
|
You can’t perform that action at this time.
0 commit comments