Bug 162777

Summary: [SOUP] Cleanup persistent credential storage code
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bugs-noreply, commit-queue, svillar
Priority: P2 Keywords: Gtk, Soup
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 162784    
Attachments:
Description Flags
Patch
none
Try to fix EFL build
none
Try to fix EFL build achristensen: review+

Description Carlos Garcia Campos 2016-09-30 03:02:22 PDT
We have this feature behind ENABLE_CREDENTIAL_STORAGE flag, which is confusing, because we use credential storage unconditionally and this is only about persistent storage. Also the flag assumes libsecret is available, and since it's only used by GTK sometimes we use GTK ifdefs instead of CREDENTIAL_STORAGE. So, I think we should use USE(LIBSECRET) instead, and reduce a bit the ifdefs in common soup code. Another problem is that current implementation is always used, while it should depend on the current network storage session and never used in ephemeral sessions.
Comment 1 Carlos Garcia Campos 2016-09-30 03:07:27 PDT
Created attachment 290313 [details]
Patch
Comment 2 WebKit Commit Bot 2016-09-30 03:10:18 PDT
Attachment 290313 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp:143:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/NetworkStorageSession.h:74:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/NetworkStorageSession.h:92:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 3 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Carlos Garcia Campos 2016-09-30 03:28:14 PDT
Created attachment 290320 [details]
Try to fix EFL build
Comment 4 WebKit Commit Bot 2016-09-30 03:30:54 PDT
Attachment 290320 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp:143:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/NetworkStorageSession.h:74:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/NetworkStorageSession.h:92:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 3 in 13 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Carlos Garcia Campos 2016-09-30 03:39:42 PDT
Created attachment 290322 [details]
Try to fix EFL build
Comment 6 WebKit Commit Bot 2016-09-30 03:41:37 PDT
Attachment 290322 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp:143:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/NetworkStorageSession.h:74:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/NetworkStorageSession.h:92:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 3 in 13 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Alex Christensen 2016-09-30 07:23:22 PDT
Comment on attachment 290322 [details]
Try to fix EFL build

View in context: https://bugs.webkit.org/attachment.cgi?id=290322&action=review

> Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp:201
> +    completionHandler(Credential());

{ }
Comment 8 Carlos Garcia Campos 2016-10-03 03:35:32 PDT
Committed r206731: <http://trac.webkit.org/changeset/206731>