<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>186316</bug_id>
          
          <creation_ts>2018-06-05 12:28:12 -0700</creation_ts>
          <short_desc>Tinder.com sometimes gets the wrong fonts</short_desc>
          <delta_ts>2018-07-09 23:30:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Service Workers</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>187228</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1430174</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-06-05 12:28:12 -0700</bug_when>
    <thetext>Once a tab is in a bad state, it does not recover unless you shift-reload, so it could be memory cache related. Other tabs loaded at the same time work fine even though they use the same registration / service worker.

Looks like the issue could be related to a stylesheet missing: style.&lt;SHA&gt;.css according to WebInspector. It does not reproduce 100%, it is flaky. But once it occurs in a tab, this tabs stays in the bad state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430175</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-06-05 12:28:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/40818514&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430252</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-06-05 15:35:40 -0700</bug_when>
    <thetext>I haven&apos;t been able to reproduce yet but I do see the following in the console:
The resource https://tinder.com/static/build/style.2d2101fd39f2a8cf9be861384dd3e7f1.css was preloaded using link preload but not used within a few seconds from the window&apos;s load event. Please make sure it wasn&apos;t preloaded for nothing.

Could be an interaction between service workers and preloading?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430254</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-06-05 15:38:49 -0700</bug_when>
    <thetext>Initially, style.2d2101fd39f2a8cf9be861384dd3e7f1.css is served by the service worker. Upon reloads, it comes from the memory cache.

Blowing away the memory cache using CND+Reload fixes it so this may indicate the service worker served us something bad and we stored it in the memory cache. Which would explain why following reload do not fix it (they keep getting the bad cached resource?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430267</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-06-05 16:07:14 -0700</bug_when>
    <thetext>Response:
ETag: W/&quot;fa18-163b32ae960&quot;
Age: 519208
X-WebKit-CSP: default-src *; script-src * &apos;unsafe-inline&apos;; style-src * &apos;unsafe-inline&apos; blob:; img-src * data: blob:
X-Frame-Options: SAMEORIGIN
Content-Encoding: gzip
X-DNS-Prefetch-Control: on
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src *; script-src * &apos;unsafe-inline&apos;; style-src * &apos;unsafe-inline&apos; blob:; img-src * data: blob:
Content-Type: text/css; charset=UTF-8
Vary: Accept-Encoding
Via: 1.1 2a47832c458ab2a6b20c8363f5aa35ea.cloudfront.net (CloudFront)
Last-Modified: Wed, 30 May 2018 22:28:44 GMT
Date: Wed, 30 May 2018 22:36:27 GMT
Referrer-Policy: origin-when-cross-origin
Cache-Control: public, max-age=31536000, immutable
Accept-Ranges: bytes
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=15552000; includeSubDomains
Server: nginx/1.12.1
x-download-options: noopen
x-amz-cf-id: xOz9jtSLtpkIqXyTjQL5Wu8_P8nQDb9SGe_2DmB_LUS8z28Cy2tvBQ==
x-cache: Hit from cloudfront
x-content-security-policy: default-src *; script-src * &apos;unsafe-inline&apos;; style-src * &apos;unsafe-inline&apos; blob:; img-src * data: blob:


Note that the resource has Cache-Control: immutable. As a result, if we had something bad cached locally, a reload would not help recover because we would not revalidate until the resource has expired (and max-age is pretty high).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430269</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-06-05 16:11:48 -0700</bug_when>
    <thetext>Note that the issue is that the fonts used are not right. For one of the elements, I looked at its font:
font-family: ProximaNova,sans-serif;

Which comes from https://tinder.com/static/build/style.2d2101fd39f2a8cf9be861384dd3e7f1.css

This seems to confirm that the issue is related to this stylesheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440705</commentid>
    <comment_count>6</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-07-09 20:31:56 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #5)
&gt; Note that the issue is that the fonts used are not right. For one of the
&gt; elements, I looked at its font:
&gt; font-family: ProximaNova,sans-serif;
&gt; 
&gt; Which comes from
&gt; https://tinder.com/static/build/style.2d2101fd39f2a8cf9be861384dd3e7f1.css
&gt; 
&gt; This seems to confirm that the issue is related to this stylesheet.

Do you have Proxima Nova locally-installed? https://trac.webkit.org/changeset/233447/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440737</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-07-09 22:40:16 -0700</bug_when>
    <thetext>(In reply to Myles C. Maxfield from comment #6)
&gt; (In reply to Chris Dumez from comment #5)
&gt; &gt; Note that the issue is that the fonts used are not right. For one of the
&gt; &gt; elements, I looked at its font:
&gt; &gt; font-family: ProximaNova,sans-serif;
&gt; &gt; 
&gt; &gt; Which comes from
&gt; &gt; https://tinder.com/static/build/style.2d2101fd39f2a8cf9be861384dd3e7f1.css
&gt; &gt; 
&gt; &gt; This seems to confirm that the issue is related to this stylesheet.
&gt; 
&gt; Do you have Proxima Nova locally-installed?
&gt; https://trac.webkit.org/changeset/233447/webkit

I was never able to reproduce. It was reported at WWDC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440758</commentid>
    <comment_count>8</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-07-09 23:30:24 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 187228 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>