Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Issue 338503006: Allow data urls to have a fragment part.

Created:
6 years, 6 months ago by Erik Dahlström (inactive)
Modified:
6 years, 4 months ago
Reviewers:
asanka
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow data urls to have a fragment or query part. BUG=123004, 120248

Patch Set 1 #

Patch Set 2 : check for "data" scheme #

Total comments: 6

Patch Set 3 : fix review issues #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -9 lines) Patch
M net/base/data_url.cc View 1 2 1 chunk +6 lines, -8 lines 1 comment Download
M net/base/data_url_unittest.cc View 1 2 1 chunk +93 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Erik Dahlström (inactive)
6 years, 6 months ago (2014-06-16 15:43:59 UTC) #1
asanka
The bug for this is https://code.google.com/p/chromium/issues/detail?id=123004. I've assigned the bug to you. Could you run ...
6 years, 6 months ago (2014-06-16 17:45:48 UTC) #2
Erik Dahlström (inactive)
https://codereview.chromium.org/338503006/diff/20001/net/base/data_url.cc File net/base/data_url.cc (right): https://codereview.chromium.org/338503006/diff/20001/net/base/data_url.cc#newcode27 net/base/data_url.cc:27: if (!url.SchemeIs("data")) On 2014/06/16 17:45:48, asanka wrote: > Make ...
6 years, 6 months ago (2014-06-17 13:10:21 UTC) #3
asanka
Whoa! Apologies if this was waiting for me. Feel free to ping in the future ...
6 years, 4 months ago (2014-08-13 15:41:41 UTC) #4
Erik Dahlström (inactive)
On 2014/08/13 15:41:41, asanka wrote: > Whoa! Apologies if this was waiting for me. Feel ...
6 years, 4 months ago (2014-08-13 16:01:13 UTC) #5
asanka
On 2014/08/13 16:01:13, Erik Dahlström wrote: > On 2014/08/13 15:41:41, asanka wrote: > > Whoa! ...
6 years, 4 months ago (2014-08-13 16:17:40 UTC) #6
Erik Dahlström (inactive)
6 years, 4 months ago (2014-08-14 08:52:51 UTC) #7
On 2014/08/13 16:17:40, asanka wrote:
> On 2014/08/13 16:01:13, Erik Dahlström wrote:
> > On 2014/08/13 15:41:41, asanka wrote:
> > > Whoa! Apologies if this was waiting for me. Feel free to ping in the
future
> if
> > > you don't hear back within a day or two.
> > 
> > Thanks, will do in the future :) 
> > 
> > I put this aside because of
> > http://code.google.com/p/chromium/issues/detail?id=123004#c26, do you have
any
> > bright ideas for how to address that? I don't have that data, and having
read
> > the thread on the whatwg list it seemed the proposal for specialized parsing
> > (essentially to tolerate unescaped # and ? for the cases where these don't
> mean
> > fragment or query) was shot down back then. I see no other good way to
> reconcile
> > the two. I do think it's a bug that fragments can't be used with data urls
and
> > blobs in blink.
> 
> That's a valid concern.
> 
> One way to go about answering the question would be to collect some UMA data
> (carefully) to see what the incidence rate is for unescaped # and ?. That
would
> reduce the uncertainty somewhat.

UMA?

Adding some sort of UseCounter might be possible, but it would essentially have
to implement something like the parsing proposal in the WhatWG thread to be able
to count each of these cases properly. That would most likely incur a performace
penalty.

Powered by Google App Engine
This is Rietveld 408576698