Bug 300322
| Summary: | Broke Canary Builds with WebKitWebExtension | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jamie Murphy <jmurphy> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jamie Murphy
A few oversights were breaking the canary builds with the new WebKitWebExtension API, as seen on https://build.webkit.org/#/builders/1420/builds/346:
> /app/webkit/Source/WebKit/UIProcess/Extensions/gtk/WebExtensionGtk.cpp:142:64: error: cannot pass object of non-trivial type 'const WebCore::ResourceError' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
> 142 | RELEASE_LOG_ERROR(Extensions, "Error recorded: %s", error->platformError());
> | ^
> /app/webkit/Source/WebKit/UIProcess/Extensions/gtk/WebExtensionGtk.cpp:206:37: error: conflicting types for 'bestIcon'
> 206 | RefPtr<WebCore::Icon> WebExtension::bestIcon(RefPtr<JSON::Object> icons, WebCore::FloatSize idealSize, const Function<void(Ref<API::Error>)>& reportError)
> | ^
> /app/webkit/Source/WebKit/UIProcess/Extensions/WebExtension.h:288:27: note: previous declaration is here
> 288 | RefPtr<WebCore::Icon> bestIcon(RefPtr<JSON::Object>, WebCore::FloatSize idealSize, NOESCAPE const Function<void(Ref<API::Error>)>&);
> | ^
> 2 errors generated.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jamie Murphy
Pull request: https://github.com/WebKit/WebKit/pull/51942
EWS
Committed 301140@main (5051fbcf276b): <https://commits.webkit.org/301140@main>
Reviewed commits have been landed. Closing PR #51942 and removing active labels.