| Summary: | Fix build break on EFL and GTK port since r180585. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Gyuyoung Kim <gyuyoung.kim> | ||||||
| Component: | WebKit2 | Assignee: | Gyuyoung Kim <gyuyoung.kim> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | ||||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | 141984 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Gyuyoung Kim
2015-02-24 17:42:03 PST
Created attachment 247285 [details]
Patch
Comment on attachment 247285 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247285&action=review > Source/WebKit2/UIProcess/WebsiteData/WebsiteDataRecord.cpp:45 > +#if PLATFORM(MAC) Should probably be PLATFORM(COCOA) Comment on attachment 247285 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247285&action=review > Source/WebKit2/UIProcess/WebsiteData/WebsiteDataRecord.cpp:50 > if (protocol == "http" || protocol == "https") > +#if PLATFORM(MAC) > return WebCore::topPrivatelyControlledDomain(securityOrigin.host()); > +#else > + notImplemented(); > + return String(); > +#endif It looks like you mean this return to be inside the if block, but because the if does not have braces that wouldn't be the case. It still results in identical behavior but in a very misleading way. How about just guarding the entire if block? #if ENABLE(PUBLIC_SUFFIX_LIST) if (protocol == "http" || protocol == "https") return WebCore::topPrivatelyControlledDomain(securityOrigin.host()); #endif Using the same enable guard that wraps topPrivatelyControlledDomain. Created attachment 247289 [details]
Patch
Comment on attachment 247289 [details]
Patch
r=me
Committed r180603: <http://trac.webkit.org/changeset/180603> |