UNCONFIRMED 122246
[GTK] URIs with a "//whatever" scheme not working
https://bugs.webkit.org/show_bug.cgi?id=122246
Summary [GTK] URIs with a "//whatever" scheme not working
Sebastian Keller
Reported 2013-10-02 16:24:31 PDT
Currently http://imgur.com seems to have some links and images that have an URI scheme like href="//whatever". While this is probably a mistake on their part those still seem to be valid according to RFC 1630 and other browsers seem to handle them just fine so I think it would be good to support them in webkitgtk as well.
Attachments
Martin Robinson
Comment 1 2013-10-03 14:40:47 PDT
Should these link to the root of the host?
Sebastian Keller
Comment 2 2013-10-03 16:18:08 PDT
If the accessed document was "http://example.com" then href="//other-site.org" would refer to "http://other-site.org". If the accessed document was "https://example.com" it would refer to "https://other-site.org". So it basically means to keep just the protocol but not the host or anything else. https://tools.ietf.org/html/rfc1630 has a similar example on [Page 10] After thinking about this, the change on imgur.com seems to be intentional after all as this is an easy way to support http and https with the same html code. So other sites might adopt this in the future as well.
Marcos Chavarría Teijeiro (irc: chavaone)
Comment 3 2015-03-19 03:50:17 PDT
I have just check it and this seems to be working.
Note You need to log in before you can comment on or make changes to this bug.