<?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>116259</bug_id>
          
          <creation_ts>2013-05-16 20:11:38 -0700</creation_ts>
          <short_desc>REGRESSION(r150169): http/tests/cache/willsendrequest-returns-null-for-memory-cache-load.html fails</short_desc>
          <delta_ts>2026-04-23 01:17:18 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>
          <dependson>113626</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>chavarria1991</cc>
    
    <cc>hhjalmarsson</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>890109</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-05-16 20:11:38 -0700</bug_when>
    <thetext>http/tests/cache/willsendrequest-returns-null-for-memory-cache-load.html started failing after http://trac.webkit.org/changeset/150169.

http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fcache%2Fwillsendrequest-returns-null-for-memory-cache-load.html

The test is also failing on EFL and GTK+ WK1 builders as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890204</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2013-05-16 21:44:29 -0700</bug_when>
    <thetext>Hmm, on my machine the test passes when I run all of http/ but fails when I run it by itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023686</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-07-21 09:47:29 -0700</bug_when>
    <thetext>This is still an issue. The test used to be marked as failing on WK2, but it also sometimes fails on WK1 depending on which tests ran before it, so I&apos;m moving the expectation to platform/mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1068310</commentid>
    <comment_count>3</comment_count>
    <who name="Marcos Chavarría Teijeiro (irc: chavaone)">chavarria1991</who>
    <bug_when>2015-02-11 03:00:54 -0800</bug_when>
    <thetext>This issue is also happening on the GTK port. I&apos;m going to update the platform TestExpectations file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888748</commentid>
    <comment_count>4</comment_count>
    <who name="Hercules Hjalmarsson">hhjalmarsson</who>
    <bug_when>2022-08-03 16:45:24 -0700</bug_when>
    <thetext>REGRESSION(252611@main) http/tests/cache/willsendrequest-returns-null-for-memory-cache-load.html is a constant crash.

This is now consistently crashing on macOS ToT and since 252611@main. Before that it was failing expectedly.

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fcache%2Fwillsendrequest-returns-null-for-memory-cache-load.html

DIFF:
No crash log found for DumpRenderTree:21314.

stdout:

stderr:
ASSERTION FAILED: error.isCancellation()
loader/ResourceLoadNotifier.cpp(189) : void WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages(WebCore::DocumentLoader *, WebCore::ResourceLoaderIdentifier, const WebCore::ResourceRequest &amp;, const WebCore::ResourceResponse &amp;, const WebCore::SharedBuffer *, int, int, const WebCore::ResourceError &amp;)
1   0x102585990 WTFCrash
2   0x12b153ec0 WebCore::JSDOMGlobalObject* JSC::jsCast&lt;WebCore::JSDOMGlobalObject*, JSC::JSGlobalObject&gt;(JSC::JSGlobalObject*)
3   0x12ee7acb8 WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages(WebCore::DocumentLoader*, WTF::ObjectIdentifier&lt;WebCore::ResourceLoader&gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceResponse const&amp;, WebCore::SharedBuffer const*, int, int, WebCore::ResourceError const&amp;)
4   0x12edfb7fc WebCore::FrameLoader::loadedResourceFromMemoryCache(WebCore::CachedResource&amp;, WebCore::ResourceRequest&amp;, WebCore::ResourceError&amp;)
5   0x12ef3b5b8 WebCore::CachedResourceLoader::shouldContinueAfterNotifyingLoadedFromMemoryCache(WebCore::CachedResourceRequest const&amp;, WebCore::CachedResource&amp;, WebCore::ResourceError&amp;)
6   0x12ef388fc WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&amp;&amp;, WebCore::CachedResourceLoader::ForPreload, WebCore::ImageLoading)
7   0x12ef3688c WebCore::CachedResourceLoader::requestImage(WebCore::CachedResourceRequest&amp;&amp;, WebCore::ImageLoading)
8   0x12ee1f6e8 WebCore::ImageLoader::updateFromElement(WebCore::RelevantMutation)
9   0x12ee20028 WebCore::ImageLoader::updateFromElementIgnoringPreviousError(WebCore::RelevantMutation)
10  0x12e5f6324 WebCore::HTMLImageElement::selectImageSource(WebCore::RelevantMutation)
11  0x12e5f6878 WebCore::HTMLImageElement::parseAttribute(WebCore::QualifiedName const&amp;, WTF::AtomString const&amp;)
12  0x12e13df74 WebCore::Element::attributeChanged(WebCore::QualifiedName const&amp;, WTF::AtomString const&amp;, WTF::AtomString const&amp;, WebCore::Element::AttributeModificationReason)
13  0x12e2df208 WebCore::StyledElement::attributeChanged(WebCore::QualifiedName const&amp;, WTF::AtomString const&amp;, WTF::AtomString const&amp;, WebCore::Element::AttributeModificationReason)
14  0x12e5f6520 WebCore::HTMLImageElement::attributeChanged(WebCore::QualifiedName const&amp;, WTF::AtomString const&amp;, WTF::AtomString const&amp;, WebCore::Element::AttributeModificationReason)
15  0x12e140bf0 WebCore::Element::parserSetAttributes(WTF::Vector&lt;WebCore::Attribute, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)
16  0x12e88ee74 WebCore::setAttributes(WebCore::Element&amp;, WTF::Vector&lt;WebCore::Attribute, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WebCore::HasDuplicateAttribute, WebCore::ParserContentPolicy)
17  0x12e88c4a8 WebCore::setAttributes(WebCore::Element&amp;, WebCore::AtomHTMLToken&amp;, WebCore::ParserContentPolicy)
18  0x12e88eba4 WebCore::HTMLConstructionSite::createHTMLElementOrFindCustomElementInterface(WebCore::AtomHTMLToken&amp;, WebCore::JSCustomElementInterface**)
19  0x12e88e0e0 WebCore::HTMLConstructionSite::createHTMLElement(WebCore::AtomHTMLToken&amp;)
20  0x12e88ef8c WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement(WebCore::AtomHTMLToken&amp;&amp;)
21  0x12e8cd38c WebCore::HTMLTreeBuilder::processStartTagForInBody(WebCore::AtomHTMLToken&amp;&amp;)
22  0x12e8c7484 WebCore::HTMLTreeBuilder::processStartTag(WebCore::AtomHTMLToken&amp;&amp;)
23  0x12e8c6838 WebCore::HTMLTreeBuilder::processToken(WebCore::AtomHTMLToken&amp;&amp;)
24  0x12e8c5660 WebCore::HTMLTreeBuilder::constructTree(WebCore::AtomHTMLToken&amp;&amp;)
25  0x12e89bbe8 WebCore::HTMLDocumentParser::constructTreeFromHTMLToken(WebCore::HTMLTokenizer::TokenPtr&amp;)
26  0x12e89b96c WebCore::HTMLDocumentParser::pumpTokenizerLoop(WebCore::HTMLDocumentParser::SynchronousMode, bool, WebCore::PumpSession&amp;)
27  0x12e89abb8 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode)
28  0x12e89a3ec WebCore::HTMLDocumentParser::pumpTokenizerIfPossible(WebCore::HTMLDocumentParser::SynchronousMode)
29  0x12e89c3cc WebCore::HTMLDocumentParser::append(WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt; &gt;&amp;&amp;, WebCore::HTMLDocumentParser::SynchronousMode)
30  0x12e89c200 WebCore::HTMLDocumentParser::append(WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt; &gt;&amp;&amp;)
31  0x12e034b34 WebCore::DecodedDataDocumentParser::flush(WebCore::DocumentWriter&amp;)

DIFF URL:
https://build.webkit.org/results/Apple-BigSur-Debug-AppleSilicon-WK1-Tests/252613@main%20(7489)/http/tests/cache/willsendrequest-returns-null-for-memory-cache-load-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888749</commentid>
    <comment_count>5</comment_count>
    <who name="Hercules Hjalmarsson">hhjalmarsson</who>
    <bug_when>2022-08-03 16:48:21 -0700</bug_when>
    <thetext>I was able to bisect this issue to 252611@main by running command:

run-webkit-tests --debug http/tests/cache/willsendrequest-returns-null-for-memory-cache-load.html

Build 252610@main (macOS Debug) is only available by downloading it similar to the bots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888750</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-03 16:48:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/98084903&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888753</commentid>
    <comment_count>7</comment_count>
    <who name="Hercules Hjalmarsson">hhjalmarsson</who>
    <bug_when>2022-08-03 16:53:00 -0700</bug_when>
    <thetext>To clarify:

This is now consistently crashing on macOS (Debug) ToT and since 252611@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888859</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-08-04 08:23:45 -0700</bug_when>
    <thetext>(In reply to Hercules Hjalmarsson from comment #7)
&gt; To clarify:
&gt; 
&gt; This is now consistently crashing on macOS (Debug) ToT and since 252611@main.

Reusing this very old bug about the test failing to track a recent crash regression is not a good idea. Please file a separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888873</commentid>
    <comment_count>9</comment_count>
    <who name="Hercules Hjalmarsson">hhjalmarsson</who>
    <bug_when>2022-08-04 08:51:55 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #8)
&gt; (In reply to Hercules Hjalmarsson from comment #7)
&gt; &gt; To clarify:
&gt; &gt; 
&gt; &gt; This is now consistently crashing on macOS (Debug) ToT and since 252611@main.
&gt; 
&gt; Reusing this very old bug about the test failing to track a recent crash
&gt; regression is not a good idea. Please file a separate issue.

Filed new bug, rdar://98127995 to track crash regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891251</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-14 13:22:06 -0700</bug_when>
    <thetext>The current state is that the recently regressed assertion is fixed; the test continues to 100% fail on all bots.

The test fully relies on loading callback logging:

@@ -1,9 +1,9 @@
-http://127.0.0.1:8000/misc/resources/compass.jpg - willSendRequest &lt;NSURLRequest URL http://127.0.0.1:8000/misc/resources/compass.jpg, main document URL (null), http method GET&gt; redirectResponse (null)
+http://127.0.0.1:8000/misc/resources/compass.jpg - willSendRequest &lt;NSURLRequest URL http://127.0.0.1:8000/misc/resources/compass.jpg, main document URL http://127.0.0.1:8000/cache/willsendrequest-returns-null-for-memory-cache-load.html, http method GET&gt; redirectResponse (null)
+http://127.0.0.1:8000/cache/willsendrequest-returns-null-for-memory-cache-load.html - didFinishLoading
 http://127.0.0.1:8000/misc/resources/compass.jpg - didReceiveResponse &lt;NSURLResponse http://127.0.0.1:8000/misc/resources/compass.jpg, http status code 200&gt;
 http://127.0.0.1:8000/misc/resources/compass.jpg - didFinishLoading
-http://127.0.0.1:8000/cache/willsendrequest-returns-null-for-memory-cache-load.html - didFinishLoading
 http://127.0.0.1:8000/cache/resources/cached-image.html - willSendRequest &lt;NSURLRequest URL http://127.0.0.1:8000/cache/resources/cached-image.html, main document URL http://127.0.0.1:8000/cache/willsendrequest-returns-null-for-memory-cache-load.html, http method GET&gt; redirectResponse (null)
 http://127.0.0.1:8000/cache/resources/cached-image.html - didReceiveResponse &lt;NSURLResponse http://127.0.0.1:8000/cache/resources/cached-image.html, http status code 200&gt;
 http://127.0.0.1:8000/misc/resources/compass.jpg - willSendRequest &lt;NSURLRequest URL http://127.0.0.1:8000/misc/resources/compass.jpg, main document URL (null), http method GET&gt; redirectResponse (null)
-http://127.0.0.1:8000/misc/resources/compass.jpg - didFailLoadingWithError: &lt;NSError domain NSURLErrorDomain, code -999, failing URL &quot;http://127.0.0.1:8000/misc/resources/compass.jpg&quot;&gt;
+http://127.0.0.1:8000/misc/resources/compass.jpg - didFailLoadingWithError: &lt;NSError domain WebKitErrorDomain, code 103, failing URL &quot;http://127.0.0.1:8000/misc/resources/compass.jpg&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891252</commentid>
    <comment_count>11</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-14 13:22:48 -0700</bug_when>
    <thetext>&lt;rdar://problem/98644331&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203574</commentid>
    <comment_count>12</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2026-04-23 01:17:18 -0700</bug_when>
    <thetext>I&apos;m addressing this bug issue in https://bugs.webkit.org/show_bug.cgi?id=313111.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>