<?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>215931</bug_id>
          
          <creation_ts>2020-08-28 09:46:00 -0700</creation_ts>
          <short_desc>REGRESSION(r266187): ARGUMENT BAD: WebIconUtilities.mm(138) : RetainPtr&lt;UIImage&gt; WebKit::iconForFile(NSURL *) file, [file isFileURL]</short_desc>
          <delta_ts>2020-08-28 11:33:58 -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>New Bugs</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="Hector Lopez">hector_i_lopez</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <cc>achristensen</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1683668</commentid>
    <comment_count>0</comment_count>
    <who name="Hector Lopez">hector_i_lopez</who>
    <bug_when>2020-08-28 09:46:00 -0700</bug_when>
    <thetext>7 Tests are constantly crashing after revision r266187 on iOS wk2 Debug.

imported/w3c/web-platform-tests/FileAPI/file/send-file-form-iso-2022-jp.tentative.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2FFileAPI%2Ffile%2Fsend-file-form-iso-2022-jp.tentative.html&amp;platform=ios&amp;style=debug

imported/w3c/web-platform-tests/FileAPI/file/send-file-form-utf-8.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2FFileAPI%2Ffile%2Fsend-file-form-utf-8.html&amp;platform=ios&amp;style=debug

imported/w3c/web-platform-tests/FileAPI/file/send-file-form-windows-1252.tentative.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2FFileAPI%2Ffile%2Fsend-file-form-windows-1252.tentative.html&amp;platform=ios&amp;style=debug

imported/w3c/web-platform-tests/FileAPI/file/send-file-form-x-user-defined.tentative.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2FFileAPI%2Ffile%2Fsend-file-form-x-user-defined.tentative.html&amp;platform=ios&amp;style=debug

imported/w3c/web-platform-tests/FileAPI/file/send-file-form.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2FFileAPI%2Ffile%2Fsend-file-form.html&amp;style=debug&amp;platform=ios

imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submit-file.sub.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fsemantics%2Fforms%2Fform-submission-0%2Fsubmit-file.sub.html&amp;platform=ios&amp;style=debug

imported/w3c/web-platform-tests/service-workers/service-worker/data-transfer-files.https.html
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fservice-workers%2Fservice-worker%2Fdata-transfer-files.https.html&amp;platform=ios&amp;style=debug


Crash log:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x0000000235beea0e WTFCrash + 14 (Assertions.cpp:295)
1   com.apple.WebKit              	0x00000002209d27ee WebKit::iconForFile(NSURL*) + 94 (WebIconUtilities.mm:138)
2   com.apple.WebKit              	0x0000000221258a2e WebKit::WebChromeClient::createIconForFiles(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;) + 158 (WebChromeClientIOS.mm:157)
3   com.apple.WebKit              	0x00000002216a0240 WebKit::WebChromeClient::loadIconForFiles(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::FileIconLoader&amp;) + 48 (WebChromeClient.cpp:807)
4   com.apple.WebCore             	0x0000000240bc8fa0 WebCore::Chrome::loadIconForFiles(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::FileIconLoader&amp;) + 48 (Chrome.cpp:478)
5   com.apple.WebCore             	0x000000024025c18f WebCore::FileInputType::requestIcon(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;) + 319 (FileInputType.cpp:331)

Stderr:
ARGUMENT BAD: file, [file isFileURL]
/Volumes/Data/slave/ios-simulator-13-debug/build/Source/WebKit/Shared/ios/WebIconUtilities.mm(138) : RetainPtr&lt;UIImage&gt; WebKit::iconForFile(NSURL *)
1   0x3b5beea09 WTFCrash
2   0x3a09d27ee WebKit::iconForFile(NSURL*)
3   0x3a1258a2e WebKit::WebChromeClient::createIconForFiles(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)
4   0x3a16a0240 WebKit::WebChromeClient::loadIconForFiles(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::FileIconLoader&amp;)
5   0x3c0bc8fa0 WebCore::Chrome::loadIconForFiles(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::FileIconLoader&amp;)
6   0x3c025c18f WebCore::FileInputType::requestIcon(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)
7   0x3c025c97e WebCore::FileInputType::setFiles(WTF::RefPtr&lt;WebCore::FileList, WTF::DumbPtrTraits&lt;WebCore::FileList&gt; &gt;&amp;&amp;, WebCore::FileInputType::RequestIcon)
8   0x3c025c6d2 WebCore::FileInputType::setFiles(WTF::RefPtr&lt;WebCore::FileList, WTF::DumbPtrTraits&lt;WebCore::FileList&gt; &gt;&amp;&amp;)
9   0x3c0323ba2 WebCore::HTMLInputElement::setFiles(WTF::RefPtr&lt;WebCore::FileList, WTF::DumbPtrTraits&lt;WebCore::FileList&gt; &gt;&amp;&amp;)
10  0x3be158d9c WebCore::setJSHTMLInputElementFilesSetter(JSC::JSGlobalObject&amp;, WebCore::JSHTMLInputElement&amp;, JSC::JSValue)::&apos;lambda&apos;()::operator()() const
11  0x3be158b2d std::__1::enable_if&lt;std::is_same&lt;void, decltype(fp1())&gt;::value, void&gt;::type WebCore::AttributeSetter::call&lt;WebCore::setJSHTMLInputElementFilesSetter(JSC::JSGlobalObject&amp;, WebCore::JSHTMLInputElement&amp;, JSC::JSValue)::&apos;lambda&apos;()&gt;(JSC::JSGlobalObject&amp;, JSC::ThrowScope&amp;, WebCore::setJSHTMLInputElementFilesSetter(JSC::JSGlobalObject&amp;, WebCore::JSHTMLInputElement&amp;, JSC::JSValue)::&apos;lambda&apos;()&amp;&amp;)
12  0x3be158a93 WebCore::setJSHTMLInputElementFilesSetter(JSC::JSGlobalObject&amp;, WebCore::JSHTMLInputElement&amp;, JSC::JSValue)
13  0x3be07975e bool WebCore::IDLAttribute&lt;WebCore::JSHTMLInputElement&gt;::set&lt;&amp;(WebCore::setJSHTMLInputElementFilesSetter(JSC::JSGlobalObject&amp;, WebCore::JSHTMLInputElement&amp;, JSC::JSValue)), (WebCore::CastedThisErrorBehavior)0&gt;(JSC::JSGlobalObject&amp;, long long, long long, char const*)
14  0x3be0795fc WebCore::setJSHTMLInputElementFiles(JSC::JSGlobalObject*, long long, long long)
15  0x3b73c704e JSC::callCustomSetter(JSC::JSGlobalObject*, bool (*)(JSC::JSGlobalObject*, long long, long long), bool, JSC::JSValue, JSC::JSValue)
16  0x3b73c7122 JSC::callCustomSetter(JSC::JSGlobalObject*, JSC::JSValue, bool, JSC::JSObject*, JSC::JSValue, JSC::JSValue)
17  0x3b75bf30e JSC::JSObject::putInlineSlow(JSC::JSGlobalObject*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
18  0x3b7310d31 JSC::JSObject::putInlineForJSObject(JSC::JSCell*, JSC::JSGlobalObject*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
19  0x3b6c75338 JSC::JSCell::putInline(JSC::JSGlobalObject*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
20  0x3b6c76a33 JSC::JSValue::putInline(JSC::JSGlobalObject*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
21  0x3b71219cb llint_slow_path_put_by_id
22  0x3b6164c31 llint_entry
23  0x3b6179f85 llint_entry
24  0x3b6179f85 llint_entry
25  0x3b617a028 llint_entry
26  0x3b6179f85 llint_entry
27  0x3b6159943 vmEntryToJavaScript
28  0x3b6feaa9b JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
29  0x3b6feb257 JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
30  0x3b737e8dd JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
31  0x3b737ebb3 JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
LEAK: 2 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683669</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-28 09:46:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/67945906&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683696</commentid>
    <comment_count>2</comment_count>
      <attachid>407483</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2020-08-28 10:47:27 -0700</bug_when>
    <thetext>Created attachment 407483
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683723</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-08-28 11:33:57 -0700</bug_when>
    <thetext>Committed r266287: &lt;https://trac.webkit.org/changeset/266287&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407483.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407483</attachid>
            <date>2020-08-28 10:47:27 -0700</date>
            <delta_ts>2020-08-28 11:33:58 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-215931-20200828104726.patch</filename>
            <type>text/plain</type>
            <size>2040</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNjYyODQpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDIwLTA4LTI4ICBBbGV4IENocmlz
dGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUkVHUkVTU0lPTihy
MjY2MTg3KTogQVJHV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