New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 684751 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug
Team-Security-UX



Sign in to add a comment

blob should be added to the list of standard scheme

Project Member Reported by mea...@chromium.org, Jan 24 2017

Issue description

The definition of GURL::IsStandard points to https://tools.ietf.org/html/rfc3986#section-3 which defines the generic URI syntax.

It seems that blob confirms this definition. It has the same format as filesystem URLs, and filesystem is listed in kStandardURLSchemes in url_util.cc.

We should add blob to StandardURLSchemes.
 

Comment 1 by mea...@chromium.org, Jan 24 2017

Components: UI>Security>UrlFormatting Internals

Comment 2 by mea...@chromium.org, Jan 24 2017

Status: Assigned (was: Untriaged)

Comment 3 by creis@chromium.org, Jan 24 2017

Cc: nick@chromium.org
Please confirm with nick@ before landing a change here, since he did a lot of security work on blob URLs recently.

Comment 4 by mea...@chromium.org, Jan 24 2017

nick: Are you also familiar with filesystem URLs? I'm wondering why filesystem is marked as SCHEME_WITHOUT_AUTHORITY in kStandardURLSchemes, given that filesystem URLs always have an associated origin (test page: http://meacer.com/filesystem.html).

Comment 5 Deleted

Comment 6 by nick@chromium.org, Jan 25 2017

I'm fairly familiar with both blob and filesystem.

blobs URLS have inner origins (which GURL, outside of the url::Origin code, doesn't really recognize), and filesystem URLs have inner URLs (which GURL does parse into an inner_url() member).

My understanding of rfc3986 -- which may well be incorrect -- was that these inner origins / inner urls weren't authorities, but, they had authorities inside of them (since they embed standard schemes).

Or put differently: you can't parse the authority out of a blob or filesystem URLs the same way you can an http, https, chrome, or chrome-extension URL.

I'm generally in support of efforts to have GURL do more canonicalization of blob URLs. I think SCHEME_WITHOUT_AUTHORITY is probably appropriate for blobs, but it's not 100% clear to me quite what SCHEME_WITHOUT_AUTHORITY actually means.

Comment 7 by est...@chromium.org, Nov 10 2017

Labels: Hotlist-EnamelAndFriendsFixIt

Comment 8 by est...@chromium.org, Feb 18 2018

Labels: -Hotlist-EnamelAndFriendsFixIt
Components: -Internals

Sign in to add a comment