<?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>183709</bug_id>
          
          <creation_ts>2018-03-16 15:01:02 -0700</creation_ts>
          <short_desc>Ensure Document::responseReceived and clearResource are called on the main thread</short_desc>
          <delta_ts>2018-03-19 12:48:05 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="youenn fablet">youennf</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>achristensen</cc>
    
    <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>japhet</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1407128</commentid>
    <comment_count>0</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2018-03-16 15:01:02 -0700</bug_when>
    <thetext>Ensure Document::responseReceived and clearResource are called on the main thread
This might help debugging rdar://problem/36256931</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407129</commentid>
    <comment_count>1</comment_count>
      <attachid>335974</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2018-03-16 15:02:12 -0700</bug_when>
    <thetext>Created attachment 335974
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407183</commentid>
    <comment_count>2</comment_count>
      <attachid>335974</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-03-16 17:39:50 -0700</bug_when>
    <thetext>Comment on attachment 335974
Patch

Clearing flags on attachment: 335974

Committed r229690: &lt;https://trac.webkit.org/changeset/229690&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407184</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-03-16 17:39:51 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407187</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-03-16 17:41:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/38566063&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407372</commentid>
    <comment_count>5</comment_count>
      <attachid>335974</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-03-19 09:32:17 -0700</bug_when>
    <thetext>Comment on attachment 335974
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335974&amp;action=review

&gt; Source/WebCore/loader/DocumentLoader.cpp:704
&gt; +    ASSERT(isMainThread());

I don&apos;t think that this qualifies as &quot;ensure&quot;. &quot;Try to find cases when not&quot;, maybe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407373</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2018-03-19 09:34:12 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #5)
&gt; Comment on attachment 335974 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=335974&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/loader/DocumentLoader.cpp:704
&gt; &gt; +    ASSERT(isMainThread());
&gt; 
&gt; I don&apos;t think that this qualifies as &quot;ensure&quot;. &quot;Try to find cases when not&quot;,
&gt; maybe.

... or are we ensuring by crashing otherwise?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407431</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-03-19 12:48:05 -0700</bug_when>
    <thetext>That&apos;s only in debug mode.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>335974</attachid>
            <date>2018-03-16 15:02:12 -0700</date>
            <delta_ts>2018-03-16 17:39:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-183709-20180316150211.patch</filename>
            <type>text/plain</type>
            <size>1740</size>
            <attacher name="youenn fablet">youennf</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjI5NTU2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzJlMWI0NGEwZjU1ZTJk
ZGRmZWY5MmFjODhhMGU2ODA3YjJhMzg2My4uYWMyOTQ3ZThjMWQ3ZWIyODgwMmU2N2NjMDljZjhj
NzE1NzQyZmY4NyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDE4LTAzLTE2ICBZb3Vl
bm4gRmFibGV0ICA8eW91ZW5uQGFwcGxlLmNvbT4KKworICAgICAgICBFbnN1cmUgRG9jdW1lbnQ6
OnJlc3BvbnNlUmVjZW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lJiByZXNvdXJjZSwgY29uc3QgUmVzb3VyY2VSZQogCiB2b2lkIERvY3VtZW50
TG9hZGVyOjpyZXNwb25zZVJlY2VpdmVkKGNvbnN0IFJlc291cmNlUmVzcG9uc2UmIHJlc3BvbnNl
KQogeworICAgIEFTU0VSVChpc01haW5UaHJlYWQoKSk7CiAjaWYgRU5BQkxFKENPTlRFTlRfRklM
VEVSSU5HKQogICAgIGlmIChtX2NvbnRlbnRGaWx0ZXIgJiYgIW1fY29udGVudEZpbHRlci0+Y29u
dGludWVBZnRlclJlc3BvbnNlUmVjZWl2ZWQocmVzcG9uc2UpKQogICAgICAgICByZXR1cm47CkBA
IC0xNzYxLDYgKzE3NjIsNyBAQCB2b2lkIERvY3VtZW50TG9hZGVyOjp3aWxsQ29udGludWVNYWlu
UmVzb3VyY2VMb2FkQWZ0ZXJSZWRpcmVjdChjb25zdCBSZXNvdXJjZVJlcQogCiB2b2lkIERvY3Vt
ZW50TG9hZGVyOjpjbGVhck1haW5SZXNvdXJjZSgpCiB7CisgICAgQVNTRVJUKGlzTWFpblRocmVh
ZCgpKTsKICAgICBpZiAobV9tYWluUmVzb3VyY2UgJiYgbV9tYWluUmVzb3VyY2UtPmhhc0NsaWVu
dCgqdGhpcykpCiAgICAgICAgIG1fbWFpblJlc291cmNlLT5yZW1vdmVDbGllbnQoKnRoaXMpOwog
I2lmIEVOQUJMRShDT05URU5UX0ZJTFRFUklORykK
</data>

          </attachment>
      

    </bug>

</bugzilla>