Bug 263967

Summary: Incorrect documentation for webkit-cookie-manager-get-cookies-finish
Product: WebKit Reporter: SyntevoAlex <alexandr.miloslavskiy>
Component: WebKitGTKAssignee: Michael Catanzaro <mcatanzaro>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description SyntevoAlex 2023-10-31 07:52:26 PDT
These two functions:
* webkit_cookie_manager_get_cookies_finish
* webkit_cookie_manager_get_all_cookies_finish

are incorrectly documented to "return value is a #GSList", whereas it actually returns GList.
This is not a mere typo, because GSList is also an existing type.

The incorrect documentation existed ever since the code was introduced in e07cfc0d.

This actually fooled some people, see for example:
https://github.com/eclipse-platform/eclipse.platform.swt/issues/842
Comment 1 Michael Catanzaro 2023-10-31 10:30:13 PDT
Thanks for reporting this.
Comment 2 Michael Catanzaro 2023-10-31 10:37:10 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19782
Comment 3 EWS 2023-11-01 09:21:15 PDT
Committed 270058@main (e57b85e56c4c): <https://commits.webkit.org/270058@main>

Reviewed commits have been landed. Closing PR #19782 and removing active labels.