"application/x-mimearchive" should be included in finding remoteWebArchive while...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jun 2013 12:57:44 +0000 (12:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jun 2013 12:57:44 +0000 (12:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117734

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-06-25
Reviewed by Alexey Proskuryakov.

"application/x-mimearchive" is also used  while checking for
 RemoteArchive.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::continueAfterContentPolicy):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151962 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/loader/DocumentLoader.cpp

index 895253a..4fb2cc9 100644 (file)
@@ -1,3 +1,16 @@
+2013-06-25  Santosh Mahto  <santosh.ma@samsung.com>
+
+        "application/x-mimearchive" should be included in finding remoteWebArchive while document loading
+        https://bugs.webkit.org/show_bug.cgi?id=117734
+
+        Reviewed by Alexey Proskuryakov.
+
+        "application/x-mimearchive" is also used  while checking for
+         RemoteArchive.
+
+        * loader/DocumentLoader.cpp:
+        (WebCore::DocumentLoader::continueAfterContentPolicy):
+
 2013-06-25  Allan Sandfeld Jensen  <allan.jensen@digia.com>
 
         HTMLMediaElement should inherit from MediaPlayerClient privately
index de400de..e940ef5 100644 (file)
@@ -655,6 +655,7 @@ void DocumentLoader::continueAfterContentPolicy(PolicyAction policy)
     case PolicyUse: {
         // Prevent remote web archives from loading because they can claim to be from any domain and thus avoid cross-domain security checks (4120255).
         bool isRemoteWebArchive = (equalIgnoringCase("application/x-webarchive", mimeType)
+            || equalIgnoringCase("application/x-mimearchive", mimeType)
 #if PLATFORM(GTK)
             || equalIgnoringCase("message/rfc822", mimeType)
 #endif