<?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>192876</bug_id>
          
          <creation_ts>2018-12-19 14:04:39 -0800</creation_ts>
          <short_desc>Application Cache does not check for update properly on browser launch</short_desc>
          <delta_ts>2018-12-20 16:22:53 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>Safari 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jjulik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1489465</commentid>
    <comment_count>0</comment_count>
      <attachid>357722</attachid>
    <who name="">jjulik</who>
    <bug_when>2018-12-19 14:04:39 -0800</bug_when>
    <thetext>Created attachment 357722
Compressed site for testing bug

When visiting a page that has a cache manifest specified, Safari will fire a checking event. Afterwards, no further events are fired. You would expect a noupdate event to fire afterwards normally. It looks like Safari never actually makes a request to get the cache manifest when this occurs. I checked my server logs and didn&apos;t see any requests for the cache manifest file.

The easiest way to reproduce the issue is as follows:
1. Setup a server to host the attached html and cache manifest
2. In preferences, set &quot;Safari opens with&quot; to &quot;All windows from last session&quot;
3. Visit the page
4. Close safari
5. Restart your mac
6. Open safari. It should open up your page, but will only fire a checking event. Note that if you then reload the page it will fire a checking event, followed by a noupdate.

I have reproduced this on an iPad Air 2 running iOS 12.1.1 and a Macbook Pro running running macOS 10.14 w/ Safari version 12.0 (14606.136.1.9). I can also intermittently reproduce the issue if I just normally visit a page that has a cache manifest specified, but the most consistent way is by restarting the mac. It happens every time if I restart.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>357722</attachid>
            <date>2018-12-19 14:04:39 -0800</date>
            <delta_ts>2018-12-19 14:04:39 -0800</delta_ts>
            <desc>Compressed site for testing bug</desc>
            <filename>AppCacheTest.zip</filename>
            <type>application/x-zip-compressed</type>
            <size>772</size>
            <attacher>jjulik</attacher>
            
              <data encoding="base64">UEsDBBQAAAAIAGyAk00JEx/IygEAAJsEAAARAAAAQXBwQ2FjaGVUZXN0Lmh0bWyFVNtu2zAMfW6B
/QPhFzvo4GB7TJwAxdAvaH6AkZhYmywJkpw0GPrvo3xJvLSo9WDD5OEhDym6qmOjoUGjDhTiJnt2
7heKmnb8VY7mbPvtsaoJJb8fqqiipi0DoUNCglbL3pr8QXjlIsSLo00W6S0uf+MJe2tiguEUh9aI
qKyBYgF/b/Z08jYQhOiViPn6f9cJPeBQJWzgrIy055ItWglMdJ3nLuiail3iz2vE2IaCPqQd+UMH
YHYqk4z15yjS1JCJtyKkFW2ylMITRnrp/UXu8gVTPPAZQkplDPkd94aDc65ddGrolOgOypNcQQ5P
Qx1D7H2SvZWXpJuMLAbeMY2wJlhNpbbHYpZ+CHrvnmNnS2taJ1kEK5EXrnLSuPU9sqOXc6DkU+Y4
A2OJRluU80jy3voZjLG9ihmY3ad2zcKct0dPIXwGm7Y8bRFMeh4gUITWZYsvsf04VpDxaK5ZbzMa
r957sRg/q2W/VpP9rNK16Paw/vFhSdmUPG67q1UAh0dOWttWS5AqOI0XwAiaMET4CQ0rZUSAPWl7
XgHCdYSdqu+ARrL12uP+fvFMEKZTHK6d1cz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