Assertion in LegacyWebArchive::create() in editing tests
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2013 21:36:25 +0000 (21:36 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2013 21:36:25 +0000 (21:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=112642

Reviewed by Simon Fraser.

Address Simon's review comment. Don't convert String to MIMEType just to convert it back to String.

* platform/mac/PasteboardMac.mm:
(WebCore::fragmentFromWebArchive):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/mac/PasteboardMac.mm

index d4acc56..9dd4f99 100644 (file)
@@ -1,3 +1,15 @@
+2013-03-20  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Assertion in LegacyWebArchive::create() in editing tests
+        https://bugs.webkit.org/show_bug.cgi?id=112642
+
+        Reviewed by Simon Fraser.
+
+        Address Simon's review comment. Don't convert String to MIMEType just to convert it back to String.
+
+        * platform/mac/PasteboardMac.mm:
+        (WebCore::fragmentFromWebArchive):
+
 2013-03-20  Zan Dobersek  <zdobersek@igalia.com>
 
         [GTK] Build ANGLE sources into a separate library from libWebCore.la
index 841b24f..c20b7bb 100644 (file)
@@ -468,7 +468,7 @@ static PassRefPtr<DocumentFragment> fragmentFromWebArchive(Frame* frame, PassRef
     if (!mainResource)
         return 0;
 
-    NSString *MIMEType = mainResource->mimeType();
+    const String& MIMEType = mainResource->mimeType();
     if (!frame || !frame->document())
         return 0;