Changeset 238372 in webkit
- Timestamp:
- Nov 19, 2018 5:16:15 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r238371 r238372 1 2018-11-19 Alejandro G. Castro <alex@igalia.com> 2 3 [GTK][WPE] Solve some issues in the enumerateDevices code 4 https://bugs.webkit.org/show_bug.cgi?id=191832 5 6 Reviewed by Carlos Garcia Campos. 7 8 * UIProcess/API/glib/WebKitDeviceInfoPermissionRequest.cpp: 9 Increase the version to 2.24. 10 (webkitDeviceInfoPermissionRequestAllow): 11 (webkitDeviceInfoPermissionRequestDeny): 12 * UIProcess/API/glib/WebKitDeviceInfoPermissionRequestPrivate.h: 13 Replace the forward declaration with the include. 14 * UIProcess/API/gtk/WebKitDeviceInfoPermissionRequest.h: Typo. 15 * UIProcess/API/gtk/WebKitWebsiteData.h: 16 Increase the version to 2.24. 17 * UIProcess/API/wpe/WebKitDeviceInfoPermissionRequest.h: Typo. 18 * UIProcess/API/wpe/WebKitWebsiteData.h: 19 Increase the version to 2.24. 20 1 21 2018-11-19 Carlos Garcia Campos <cgarcia@igalia.com> 2 22 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitDeviceInfoPermissionRequest.cpp
r237988 r238372 43 43 * it is denied by default. 44 44 * 45 * Since: 2.2 245 * Since: 2.24 46 46 */ 47 47 … … 62 62 ASSERT(WEBKIT_IS_DEVICE_INFO_PERMISSION_REQUEST(request)); 63 63 64 auto &priv = WEBKIT_DEVICE_INFO_PERMISSION_REQUEST(request)->priv;64 auto* priv = WEBKIT_DEVICE_INFO_PERMISSION_REQUEST(request)->priv; 65 65 66 66 if (!priv->deviceIdHashSaltStorage) { … … 81 81 ASSERT(WEBKIT_IS_DEVICE_INFO_PERMISSION_REQUEST(request)); 82 82 83 auto &priv = WEBKIT_DEVICE_INFO_PERMISSION_REQUEST(request)->priv;83 auto* priv = WEBKIT_DEVICE_INFO_PERMISSION_REQUEST(request)->priv; 84 84 85 85 if (!priv->deviceIdHashSaltStorage) { -
trunk/Source/WebKit/UIProcess/API/glib/WebKitDeviceInfoPermissionRequestPrivate.h
r237031 r238372 20 20 21 21 #include "APISecurityOrigin.h" 22 #include "DeviceIdHashSaltStorage.h" 22 23 23 24 typedef struct _WebKitDeviceInfoPermissionRequest WebKitDeviceInfoPermissionRequest; 24 25 25 namespace WebKit {26 class DeviceIdHashSaltStorage;27 };28 29 26 WebKitDeviceInfoPermissionRequest* webkitDeviceInfoPermissionRequestCreate(WebKit::UserMediaPermissionCheckProxy&, WebKit::DeviceIdHashSaltStorage*); -
trunk/Source/WebKit/UIProcess/API/gtk/WebKitDeviceInfoPermissionRequest.h
r237031 r238372 57 57 58 58 WEBKIT_API GType 59 webkit_device_info_permission_request_get_type 59 webkit_device_info_permission_request_get_type (void); 60 60 61 61 G_END_DECLS -
trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebsiteData.h
r237031 r238372 45 45 * @WEBKIT_WEBSITE_DATA_PLUGIN_DATA: Plugins data. 46 46 * @WEBKIT_WEBSITE_DATA_COOKIES: Cookies. 47 * @WEBKIT_WEBSITE_DATA_DEVICE_ID_HASH_SALT: Hash salt used to generate the device ids used by webpages. 47 * @WEBKIT_WEBSITE_DATA_DEVICE_ID_HASH_SALT: Hash salt used to generate the device ids used by webpages. Since 2.24 48 48 * @WEBKIT_WEBSITE_DATA_ALL: All types. 49 49 * -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitDeviceInfoPermissionRequest.h
r237031 r238372 57 57 58 58 WEBKIT_API GType 59 webkit_device_info_permission_request_get_type 59 webkit_device_info_permission_request_get_type (void); 60 60 61 61 G_END_DECLS -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitWebsiteData.h
r237031 r238372 45 45 * @WEBKIT_WEBSITE_DATA_PLUGIN_DATA: Plugins data. 46 46 * @WEBKIT_WEBSITE_DATA_COOKIES: Cookies. 47 * @WEBKIT_WEBSITE_DATA_DEVICE_ID_HASH_SALT: Hash salt used to generate the device ids used by webpages. 47 * @WEBKIT_WEBSITE_DATA_DEVICE_ID_HASH_SALT: Hash salt used to generate the device ids used by webpages. Since 2.24 48 48 * @WEBKIT_WEBSITE_DATA_ALL: All types. 49 49 * -
trunk/Tools/ChangeLog
r238368 r238372 1 2018-11-19 Alejandro G. Castro <alex@igalia.com> 2 3 [GTK][WPE] Solve some issues in the enumerateDevices code 4 https://bugs.webkit.org/show_bug.cgi?id=191832 5 6 Reviewed by Carlos Garcia Campos. 7 8 * TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp: 9 (serverCallback): Make all the Strings with HTML code static. 10 (testWebsiteDataDeviceIdHashSalt): Change the webView settings in 11 the test. 12 * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp: 13 (WebViewTest::initializeWebView): Remove the initialization of the 14 webView settings, we now do it in the specific test. 15 1 16 2018-11-18 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp
r237031 r238372 34 34 35 35 if (g_str_equal(path, "/empty")) { 36 const char* emptyHTML = "<html><body></body></html>";36 static const char* emptyHTML = "<html><body></body></html>"; 37 37 soup_message_headers_replace(message->response_headers, "Set-Cookie", "foo=bar; Max-Age=60"); 38 38 soup_message_body_append(message->response_body, SOUP_MEMORY_STATIC, emptyHTML, strlen(emptyHTML)); … … 40 40 soup_message_set_status(message, SOUP_STATUS_OK); 41 41 } else if (g_str_equal(path, "/appcache")) { 42 const char* appcacheHTML = "<html manifest=appcache.manifest><body></body></html>";42 static const char* appcacheHTML = "<html manifest=appcache.manifest><body></body></html>"; 43 43 soup_message_body_append(message->response_body, SOUP_MEMORY_STATIC, appcacheHTML, strlen(appcacheHTML)); 44 44 soup_message_body_complete(message->response_body); 45 45 soup_message_set_status(message, SOUP_STATUS_OK); 46 46 } else if (g_str_equal(path, "/appcache.manifest")) { 47 const char* appcacheManifest = "CACHE MANIFEST\nCACHE:\nappcache/foo.txt\n";47 static const char* appcacheManifest = "CACHE MANIFEST\nCACHE:\nappcache/foo.txt\n"; 48 48 soup_message_body_append(message->response_body, SOUP_MEMORY_STATIC, appcacheManifest, strlen(appcacheManifest)); 49 49 soup_message_body_complete(message->response_body); … … 54 54 soup_message_set_status(message, SOUP_STATUS_OK); 55 55 } else if (g_str_equal(path, "/sessionstorage")) { 56 const char* sessionStorageHTML = "<html><body onload=\"sessionStorage.foo = 'bar';\"></body></html>";56 static const char* sessionStorageHTML = "<html><body onload=\"sessionStorage.foo = 'bar';\"></body></html>"; 57 57 soup_message_body_append(message->response_body, SOUP_MEMORY_STATIC, sessionStorageHTML, strlen(sessionStorageHTML)); 58 58 soup_message_body_complete(message->response_body); 59 59 soup_message_set_status(message, SOUP_STATUS_OK); 60 60 } else if (g_str_equal(path, "/localstorage")) { 61 const char* localStorageHTML = "<html><body onload=\"localStorage.foo = 'bar';\"></body></html>";61 static const char* localStorageHTML = "<html><body onload=\"localStorage.foo = 'bar';\"></body></html>"; 62 62 soup_message_body_append(message->response_body, SOUP_MEMORY_STATIC, localStorageHTML, strlen(localStorageHTML)); 63 63 soup_message_body_complete(message->response_body); 64 64 soup_message_set_status(message, SOUP_STATUS_OK); 65 65 } else if (g_str_equal(path, "/enumeratedevices")) { 66 const char* enumerateDevicesHTML = "<html><body onload=\"navigator.mediaDevices.enumerateDevices().then(function(devices) { document.title = 'Finished'; })\"></body></html>";66 static const char* enumerateDevicesHTML = "<html><body onload=\"navigator.mediaDevices.enumerateDevices().then(function(devices) { document.title = 'Finished'; })\"></body></html>"; 67 67 soup_message_body_append(message->response_body, SOUP_MEMORY_STATIC, enumerateDevicesHTML, strlen(enumerateDevicesHTML)); 68 68 soup_message_body_complete(message->response_body); … … 526 526 static void testWebsiteDataDeviceIdHashSalt(WebsiteDataTest* test, gconstpointer) 527 527 { 528 WebKitSettings* settings = webkit_web_view_get_settings(test->m_webView); 529 gboolean enabled = webkit_settings_get_enable_media_stream(settings); 530 webkit_settings_set_enable_media_stream(settings, TRUE); 531 528 532 test->clear(WEBKIT_WEBSITE_DATA_DEVICE_ID_HASH_SALT, 0); 529 533 … … 569 573 dataList = test->fetch(cacheAndAppcacheTypes); 570 574 g_assert(!dataList); 575 576 webkit_settings_set_enable_media_stream(settings, enabled); 571 577 } 572 578 -
trunk/Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp
r237795 r238372 50 50 g_assert(!m_webView); 51 51 52 GRefPtr<WebKitSettings> settings = adoptGRef(webkit_settings_new());53 webkit_settings_set_enable_media_stream(settings.get(), TRUE);54 55 52 m_webView = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW, 56 53 #if PLATFORM(WPE) 57 54 "backend", Test::createWebViewBackend(), 58 55 #endif 59 "settings", settings.get(),60 56 "web-context", m_webContext.get(), 61 57 "user-content-manager", m_userContentManager.get(),
Note: See TracChangeset
for help on using the changeset viewer.