title: Selecting a file to upload causes mobile Safari to crash
body: <p>I've been experiencing behaviour on, at least my iPhone 6 Plus, when using the <code>&lt;input type="file"&gt;</code> to let the user upload an image.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="add__from-camera"&gt;
      &lt;button class="add__from-camera__btn"&gt;
          &lt;i class="fa fa-fw fa-camera"&gt;&lt;/i&gt; Add with Camera
      &lt;/button&gt;
      &lt;input class="add__from-camera__input" type="file"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This rest case results in crashes of the tab about 50% of the time, and in my app about 90% of the time.</p>
  
  <p>I was 'lucky' enough to get all of Safari to crash once when the error happened, and this was part of the log:</p>
  
  <pre><code>Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
  Exception Subtype: KERN_INVALID_ADDRESS at 0x00030000006467ba
  Triggered by Thread:  0
  
  Thread 0 name:  Dispatch queue: com.apple.main-thread
  Thread 0 Crashed:
  0   WebKit                          0x000000018a48566c WebKit::WebPageProxy::didChooseFilesForOpenPanelWithDisplayStringAndIcon(WTF::Vector&lt;WTF::String, 0ul, WTF::CrashOnOverflow&gt; const&amp;, WTF::String const&amp;, API::Data const*) + 44
  1   WebKit                          0x000000018a461648 WebKit::WebOpenPanelResultListenerProxy::chooseFiles(API::Array*, API::String*, API::Data const*) + 100
  2   WebKit                          0x000000018a461648 WebKit::WebOpenPanelResultListenerProxy::chooseFiles(API::Array*, API::String*, API::Data const*) + 100
  3   WebKit                          0x000000018a413020 -[WKFileUploadPanel _chooseFiles:displayString:iconImage:] + 468
  </code></pre>
  
  <p>It seems to indicate an (overflow?) error in display the little thumbnail preview? Is there a way to prevent Safari from crashing when using file input, or at least don't render the thumbnail preview?</p>