<?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>147598</bug_id>
          
          <creation_ts>2015-08-03 16:13:41 -0700</creation_ts>
          <short_desc>AppCache can fire both &quot;cached&quot; and &quot;noupdate&quot; event for the same manifest revalidation.</short_desc>
          <delta_ts>2015-08-03 16:52:35 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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 name="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1114426</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-08-03 16:13:41 -0700</bug_when>
    <thetext>AppCache can fire both &quot;cached&quot; and &quot;noupdate&quot; event for the same manifest revalidation.

The spec (http://www.w3.org/TR/2011/WD-html5-20110525/offline.html) says that both &quot;cached&quot; and &quot;noupdate&quot; are terminal events - &quot;Last event in sequence&quot; - so it seems this is wrong.

To see this reproduce, run the layout test http/tests/appcache/identifier-test.html and notice that the event handler is called twice, once for each of these events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114441</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-08-03 16:52:35 -0700</bug_when>
    <thetext>Turns out that it&apos;s called twice because a handler is installed in two windows, and each gets an event.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>