Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c6483e96e3ff2375cafcb657a0692fc94efb480b
https://github.com/WebKit/WebKit/commit/c6483e96e3ff2375cafcb657a0692fc94efb480b
Author: Simon Pena <[email protected]>
Date: 2026-02-05 (Thu, 05 Feb 2026)
Changed paths:
M Source/WebKit/SourcesGTK.txt
M Source/WebKit/SourcesWPE.txt
A Source/WebKit/UIProcess/Inspector/glib/WebInspectorUIProxyGLib.cpp
A Source/WebKit/UIProcess/Inspector/glib/WebInspectorUIProxyGLib.h
M Source/WebKit/UIProcess/Inspector/gtk/WebInspectorUIProxyGtk.cpp
M Source/WebKit/UIProcess/Inspector/wpe/WebInspectorUIProxyWPE.cpp
M Source/WebKit/WebProcess/Inspector/wpe/WebInspectorUIWPE.cpp
Log Message:
-----------
[WPE] Web Inspector: implement platformSave
https://bugs.webkit.org/show_bug.cgi?id=306768
Reviewed by Adrian Perez de Castro.
Extracted a common GIO-based implementation for WebKitGTK and WPE WebKit
into WebInspectorUIProxyGLib.
For WebKitGTK, the logic keeps using file chooser dialog to get an
appropriate destination filename.
For WPE, this uses G_USER_DIRECTORY_DOWNLOAD and falls back to the
user's home directory if undefined, saving the file there with the first
8 elements of the contents hash to avoid accidental overwrites.
* Source/WebKit/SourcesGTK.txt:
* Source/WebKit/SourcesWPE.txt:
* Source/WebKit/UIProcess/Inspector/glib/WebInspectorUIProxyGLib.cpp: Added.
(WebKit::fileReplaceContentsCallback):
(WebKit::platformSaveDataToFile):
* Source/WebKit/UIProcess/Inspector/glib/WebInspectorUIProxyGLib.h:
* Source/WebKit/UIProcess/Inspector/gtk/WebInspectorUIProxyGtk.cpp:
(WebKit::WebInspectorUIProxy::platformSave):
(WebKit::fileReplaceContentsCallback): Deleted.
* Source/WebKit/UIProcess/Inspector/wpe/WebInspectorUIProxyWPE.cpp:
(WebKit::computeContentHash):
(WebKit::WebInspectorUIProxy::platformSave):
* Source/WebKit/WebProcess/Inspector/wpe/WebInspectorUIWPE.cpp:
(WebKit::WebInspectorUI::canSave):
Canonical link: https://commits.webkit.org/306914@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications