| Summary: | WKAPI does not have any APIs to set cookie path to WKWebsiteDataStoreConfigurationRef | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Takashi Komori <takashi.komori> | ||||||||||
| Component: | WebKit API | Assignee: | Takashi Komori <takashi.komori> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | achristensen, annulen, Basuke.Suzuki, beidson, chris.reid, don.olmstead, ews-watchlist, ggaren, gyuyoung.kim, Hironori.Fujii, ross.kirsling, ryuan.choi, sergio, sihui_liu, stephan.szabo, takashi.komori, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Takashi Komori
2021-10-26 15:03:53 PDT
Created attachment 442537 [details]
Patch
Created attachment 442538 [details]
Patch
Comment on attachment 442538 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442538&action=review This is reasonable but the test needs some love. > Tools/TestWebKitAPI/PlatformPlayStation.cmake:33 > + Tests/WebKit/curl/CookieStorageFile.cpp There's nothing curl-specific about this test. > Tools/TestWebKitAPI/Tests/WebKit/curl/CookieStorageFile.cpp:76 > + WKPageConfigurationSetContext(pageConfiguration.get(), context.get()); This doesn't do anything. > Tools/TestWebKitAPI/Tests/WebKit/curl/CookieStorageFile.cpp:84 > + loaderClient.base.clientInfo = this; Instead of using a static bool didFinishLoad, use a local bool didFinishLoad and point clientInfo at it. Or put m_didFinishLoad in the CookieStorageFile class. Created attachment 442770 [details]
Patch
(In reply to Alex Christensen from comment #3) > Comment on attachment 442538 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=442538&action=review > > This is reasonable but the test needs some love. > > > Tools/TestWebKitAPI/PlatformPlayStation.cmake:33 > > + Tests/WebKit/curl/CookieStorageFile.cpp > > There's nothing curl-specific about this test. Moved the test to Tests/WebKit/ directory. > > Tools/TestWebKitAPI/Tests/WebKit/curl/CookieStorageFile.cpp:76 > > + WKPageConfigurationSetContext(pageConfiguration.get(), context.get()); > > This doesn't do anything. On WinCairo port, the WebKit::WebView constructor uses the context which is set by WKPageConfigurationSetContext. Therefore, it is necessary. Source/WebKit/UIProcess/win/WebView.cpp > > Tools/TestWebKitAPI/Tests/WebKit/curl/CookieStorageFile.cpp:84 > > + loaderClient.base.clientInfo = this; > > Instead of using a static bool didFinishLoad, use a local bool didFinishLoad > and point clientInfo at it. Or put m_didFinishLoad in the CookieStorageFile > class. Fixed. Created attachment 442786 [details]
Patch for landing
Committed r285020 (243664@main): <https://commits.webkit.org/243664@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 442786 [details]. |