Skip to content

Commit

Permalink
[GTK] Fix the build with clang
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=288469

Unreviewed build fix.

* Source/WebKit/UIProcess/Extensions/gtk/WebExtensionGtk.cpp:
(WebKit::WebExtension::recordError):
(WebKit::WebExtension::bestIcon):

Canonical link: https://commits.webkit.org/291017@main
  • Loading branch information
csaavedra committed Feb 25, 2025
1 parent 49085ab commit 34fd069
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/WebKit/UIProcess/Extensions/gtk/WebExtensionGtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ RefPtr<API::Data> WebExtension::resourceDataForPath(const String& originalPath,
}

void WebExtension::recordError(Ref<API::Error> error)

{
RELEASE_LOG_ERROR(Extensions, "Error recorded: %s", error->platformError());
RELEASE_LOG_ERROR(Extensions, "Error recorded: %s", error->platformError().sanitizedDescription().utf8().data());

// Only the first occurrence of each error is recorded in the array. This prevents duplicate errors,
// such as repeated "resource not found" errors, from being included multiple times.
Expand Down Expand Up @@ -179,7 +180,7 @@ RefPtr<WebCore::Icon> WebExtension::iconForPath(const String& path, RefPtr<API::
return WebCore::Icon::create(WTFMove(image));
}

RefPtr<WebCore::Icon> WebExtension::bestIcon(RefPtr<JSON::Object> icons, WebCore::FloatSize idealSize, const Function<void(Ref<API::Error>)>& reportError)
RefPtr<WebCore::Icon> WebExtension::bestIcon(RefPtr<JSON::Object> icons, WebCore::FloatSize idealSize, NOESCAPE const Function<void(Ref<API::Error>)>& reportError)
{
if (!icons)
return nullptr;
Expand Down

0 comments on commit 34fd069

Please sign in to comment.