Fix API test after r207318.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Oct 2016 05:39:07 +0000 (05:39 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Oct 2016 05:39:07 +0000 (05:39 +0000)
commitce85c914cf0aac1e713cbd1f1a8f2e26120c1da7
tree77f054c12d6509ba3a46f9f585c33ddec11b65b1
parentdf7f51ded0bf46a5b6a23a687bcd5742cc7c967d
Fix API test after r207318.
https://bugs.webkit.org/show_bug.cgi?id=162951

This fixes the API test WebKit2.PendingAPIRequestURL which asserted when trying to hash a null String.

* loader/DocumentLoader.cpp:
(WebCore::isRemoteWebArchive):
If the mimeType is a null String, it is not in the set webArchiveMIMETypes, so return false instead of hashing it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/DocumentLoader.cpp