Bug 122246 - [GTK] URIs with a "//whatever" scheme not working
Summary: [GTK] URIs with a "//whatever" scheme not working
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 16:24 PDT by Sebastian Keller
Modified: 2017-03-11 10:47 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Keller 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.
Comment 1 Martin Robinson 2013-10-03 14:40:47 PDT
Should these link to the root of the host?
Comment 2 Sebastian Keller 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.
Comment 3 Marcos Chavarría Teijeiro (irc: chavaone) 2015-03-19 03:50:17 PDT
I have just check it and this seems to be working.