Fix GTK WebKit2 build after r148005.
authormichael.bruning@digia.com <michael.bruning@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Apr 2013 12:13:01 +0000 (12:13 +0000)
committermichael.bruning@digia.com <michael.bruning@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Apr 2013 12:13:01 +0000 (12:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114270

Reviewed by Andreas Kling.

Fix GTK build break that went through the buildbot undetected.

* UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
(webkit_file_chooser_request_get_selected_files):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/WebKitFileChooserRequest.cpp

index 74a4488..0cbd999 100644 (file)
@@ -1,5 +1,17 @@
 2013-04-09  Michael BrĂ¼ning  <michael.bruning@digia.com>
 
+        Fix GTK WebKit2 build after r148005.
+        https://bugs.webkit.org/show_bug.cgi?id=114270
+
+        Reviewed by Andreas Kling.
+
+        Fix GTK build break that went through the buildbot undetected.
+
+        * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
+        (webkit_file_chooser_request_get_selected_files):
+
+2013-04-09  Michael BrĂ¼ning  <michael.bruning@digia.com>
+
         [Qt][WK2] Remove direct references to WebPageProxy from QQuickWebPage.
         https://bugs.webkit.org/show_bug.cgi?id=112850
 
index 0dccdfc..217d069 100644 (file)
@@ -355,7 +355,7 @@ const gchar* const* webkit_file_chooser_request_get_selected_files(WebKitFileCho
         WebString* webFileName = static_cast<WebString*>(selectedFileNames->at(i));
         if (webFileName->isEmpty())
             continue;
-        CString filename = fileSystemRepresentation(selectedFileNames[i]);
+        CString filename = fileSystemRepresentation(webFileName->string());
         g_ptr_array_add(request->priv->selectedFiles.get(), g_strdup(filename.data()));
     }
     g_ptr_array_add(request->priv->selectedFiles.get(), 0);