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

Issue 796173 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

kDataUriHasOctothorpe UseCounter hook can fire before commit for iframes

Project Member Reported by smcgruer@chromium.org, Dec 19 2017

Issue description

In ResourceFetcher::RequestResource we have a UseCounter hook for tracking data URIs that have '#' in them (see issue 123004).

When adding kDataUriHasOctothorpe as a UKM-enabled metric, however, we discovered that this hook fires too early if the data URI is the source of an iframe. For the following HTML:

<iframe src="data:text/html,#"></iframe>

ResourceFetcher::RequestResource will occur before commit for the iframe, because commit is triggered by the first bytes of the main resource coming in. As such MetricsRenderFrameObserver will not yet have a PageTimingMetricsSender, so the UKM data will not be recorded.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Dec 19 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f79fcd1fbc8c6e71d9527501973430650abb9d97

commit f79fcd1fbc8c6e71d9527501973430650abb9d97
Author: Stephen McGruer <smcgruer@chromium.org>
Date: Tue Dec 19 16:18:11 2017

Add a TODO about UKM metrics and the call to RecordDataUriWithOctothorpe

Bug: 796173
Change-Id: Ibbe7aba0264c21b98921406f9e4c75e175127746

TBR=japhet@chromium.org

Change-Id: Ibbe7aba0264c21b98921406f9e4c75e175127746
Reviewed-on: https://chromium-review.googlesource.com/833201
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525051}
[modify] https://crrev.com/f79fcd1fbc8c6e71d9527501973430650abb9d97/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Comment 3 by holte@chromium.org, Apr 25 2018

Components: -Internals>Metrics>UKM
Labels: Hotlist-Metrics
Status: Untriaged (was: Available)
Available, but no owner or component? Please find a component, as no one will ever find this without one.

Sign in to add a comment