Title: [161536] trunk/Source
- Revision
- 161536
- Author
- [email protected]
- Date
- 2014-01-08 18:14:46 -0800 (Wed, 08 Jan 2014)
Log Message
[GTK] Add xdg.origin.url extended attribute to downloads
https://bugs.webkit.org/show_bug.cgi?id=126638
Reviewed by Carlos Garcia Campos.
This is proposed by fdo in
http://www.freedesktop.org/wiki/CommonExtendedAttributes/
Source/WebKit/gtk:
* webkit/webkitdownload.cpp:
(webkit_download_open_stream_for_uri):
Source/WebKit2:
* Shared/Downloads/soup/DownloadSoup.cpp:
(WebKit::DownloadClient::didReceiveResponse):
Modified Paths
Diff
Modified: trunk/Source/WebKit/gtk/ChangeLog (161535 => 161536)
--- trunk/Source/WebKit/gtk/ChangeLog 2014-01-09 02:13:07 UTC (rev 161535)
+++ trunk/Source/WebKit/gtk/ChangeLog 2014-01-09 02:14:46 UTC (rev 161536)
@@ -1,3 +1,16 @@
+2014-01-08 Claudio Saavedra <[email protected]>
+
+ [GTK] Add xdg.origin.url extended attribute to downloads
+ https://bugs.webkit.org/show_bug.cgi?id=126638
+
+ Reviewed by Carlos Garcia Campos.
+
+ This is proposed by fdo in
+ http://www.freedesktop.org/wiki/CommonExtendedAttributes/
+
+ * webkit/webkitdownload.cpp:
+ (webkit_download_open_stream_for_uri):
+
2014-01-04 Carlos Garcia Campos <[email protected]>
[GTK] Move all GTK/GObject unit tests to Tools/TestWebKitAPI
Modified: trunk/Source/WebKit/gtk/webkit/webkitdownload.cpp (161535 => 161536)
--- trunk/Source/WebKit/gtk/webkit/webkitdownload.cpp 2014-01-09 02:13:07 UTC (rev 161535)
+++ trunk/Source/WebKit/gtk/webkit/webkitdownload.cpp 2014-01-09 02:14:46 UTC (rev 161536)
@@ -477,7 +477,9 @@
}
GRefPtr<GFileInfo> info = adoptGRef(g_file_info_new());
- g_file_info_set_attribute_string(info.get(), "metadata::download-uri", webkit_download_get_uri(download));
+ const char* uri_string = webkit_download_get_uri(download);
+ g_file_info_set_attribute_string(info.get(), "metadata::download-uri", uri_string);
+ g_file_info_set_attribute_string(info.get(), "xattr::xdg.origin.url", uri_string);
g_file_set_attributes_async(file.get(), info.get(), G_FILE_QUERY_INFO_NONE, G_PRIORITY_DEFAULT, 0, 0, 0);
return TRUE;
Modified: trunk/Source/WebKit2/ChangeLog (161535 => 161536)
--- trunk/Source/WebKit2/ChangeLog 2014-01-09 02:13:07 UTC (rev 161535)
+++ trunk/Source/WebKit2/ChangeLog 2014-01-09 02:14:46 UTC (rev 161536)
@@ -1,3 +1,16 @@
+2014-01-08 Claudio Saavedra <[email protected]>
+
+ [GTK] Add xdg.origin.url extended attribute to downloads
+ https://bugs.webkit.org/show_bug.cgi?id=126638
+
+ Reviewed by Carlos Garcia Campos.
+
+ This is proposed by fdo in
+ http://www.freedesktop.org/wiki/CommonExtendedAttributes/
+
+ * Shared/Downloads/soup/DownloadSoup.cpp:
+ (WebKit::DownloadClient::didReceiveResponse):
+
2014-01-08 Simon Fraser <[email protected]>
Make WK2 build when ENABLE(ASYNC_SCROLLING) is not defined
Modified: trunk/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp (161535 => 161536)
--- trunk/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp 2014-01-09 02:13:07 UTC (rev 161535)
+++ trunk/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp 2014-01-09 02:14:46 UTC (rev 161536)
@@ -104,7 +104,9 @@
}
GRefPtr<GFileInfo> info = adoptGRef(g_file_info_new());
- g_file_info_set_attribute_string(info.get(), "metadata::download-uri", response.url().string().utf8().data());
+ const char* uri = response.url().string().utf8().data();
+ g_file_info_set_attribute_string(info.get(), "metadata::download-uri", uri);
+ g_file_info_set_attribute_string(info.get(), "xattr::xdg.origin.url", uri);
g_file_set_attributes_async(file.get(), info.get(), G_FILE_QUERY_INFO_NONE, G_PRIORITY_DEFAULT, 0, 0, 0);
m_download->didCreateDestination(destinationURI);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes