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

Issue 709625 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug-Regression



Sign in to add a comment

chase.com site is broken missing Referer on CSS requests

Project Member Reported by wfh@chromium.org, Apr 7 2017

Issue description

Chrome Version: (copy from chrome://version)
OS: Win10

What steps will reproduce the problem?
(1) Visit chase.com
(2)
(3)

What is the expected result?

loads correctly

What happens instead?

loads wrongly

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

I have bisected this to

You are probably looking for a change made after 460343 (known good), but no later than 460344 (first known bad).
CHANGELOG URL:
The script might not always return single CL as suspect as some perf builds might get missing due to failure.
  https://chromium.googlesource.com/chromium/src/+log/88d07c763d35621da2c62b9f18822109bbd7a261..57c4423dceffc997459ae34640abdfc1f067cc2e

https://codereview.chromium.org/2780533002 -> jochen
 

Comment 1 by wfh@chromium.org, Apr 7 2017

Cc: mkwst@chromium.org
Labels: Security
Components: -Blink Blink>SecurityFeature>Referrer
Summary: chase.com site is broken by Referer policy (was: chase.com site is broken)
The site fails the download request if the request for the CSS file does not specify the proper referer header.

GET https://www.chase.com/c/032417/etc/designs/chase-ux/css/blue-ui.min.css
504 Fiddler - Receive Failure (text/html)

GET https://www.chase.com/c/032417/etc/designs/chase-ux/css/site.min.css
504 Fiddler - Receive Failure (text/html)


Summary: chase.com site is broken missing Referer on CSS requests (was: chase.com site is broken by Referer policy)
Both stylesheets are referenced directly in the HTML:

    <link rel="stylesheet" href="/c/032417/etc/designs/chase-ux/css/blue-ui.min.css" type="text/css">
  <link rel="stylesheet" href="/c/032417/etc/designs/chase-ux/css/site.min.css" type="text/css">

Loading my site (https://bayden.com) which uses nothing special, I see that my .CSS download also no longer sends a referer on the request for the CSS file.
Removing the change to PreloadRequest.cpp:
 
- m_resourceType == Resource::CSSStyleSheet
-        ? m_baseURL.strippedForUseAsReferrer()
-        :
 
...resolves the regression. In the failure scenario, logging m_baseURL.getString() returns "<null>". The preloader apparently uses a "speculative" base URL (m_predictedBaseElementURL) for CSS requests?

Comment 5 by wfh@chromium.org, Apr 8 2017

Labels: OS-All
Also affecting Android it seems.
Screenshot_20170407-220025.png
247 KB View Download

Comment 6 by jochen@chromium.org, Apr 10 2017

Labels: -Security ReleaseBlock-Beta M-59
thanks for the report and the detailed analysis. Fix is here: https://codereview.chromium.org/2808663003

Comment 8 by jochen@chromium.org, Apr 10 2017

Status: Fixed (was: Assigned)

Comment 9 by jochen@chromium.org, Apr 11 2017

Cc: sureshkumari@chromium.org jochen@chromium.org
 Issue 709810  has been merged into this issue.
Labels: TE-Verified-59.0.3071.9 TE-Verified-M59
Tested the issue on Mac 10.12.4,Windows 7 & Ubuntu 14.04 using chrome version# 59.0.3071.9.
Observed that "chase.com" site loaded successfully without any issue.Hence adding TE-Verified labels.
Please find the attached screen cast for the same.
Thanks!!
709625.mp4
3.7 MB View Download

Sign in to add a comment