Add a test for scoped cookies used to load AppCache resources
Created attachment 337227 [details] Patch
Comment on attachment 337227 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337227&action=review > LayoutTests/http/tests/appcache/document-cookie-http-only.php:-2 > -setcookie("foo", "bar", 0, "/", null, null, true); Don't we want to keep the test for regular cookies?
(In reply to Ryosuke Niwa from comment #2) > Comment on attachment 337227 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=337227&action=review > > > LayoutTests/http/tests/appcache/document-cookie-http-only.php:-2 > > -setcookie("foo", "bar", 0, "/", null, null, true); > > Don't we want to keep the test for regular cookies? The test is moving from using one HttpOnly cookie to two HttpOnly cookies. So we are not losing coverage here. We have other tests that are covering non HttpOnly cookies. It would be easy to modify this test to cache another script protected by a regular non-scoped cookie. Is that your suggestion?
(In reply to youenn fablet from comment #3) > (In reply to Ryosuke Niwa from comment #2) > > Comment on attachment 337227 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=337227&action=review > > > > > LayoutTests/http/tests/appcache/document-cookie-http-only.php:-2 > > > -setcookie("foo", "bar", 0, "/", null, null, true); > > > > Don't we want to keep the test for regular cookies? > > The test is moving from using one HttpOnly cookie to two HttpOnly cookies. > So we are not losing coverage here. > > We have other tests that are covering non HttpOnly cookies. > > It would be easy to modify this test to cache another script protected by a > regular non-scoped cookie. Is that your suggestion? Yes, that's my suggestion.
Created attachment 337342 [details] Patch
Created attachment 337345 [details] Fixing flakiness
Comment on attachment 337345 [details] Fixing flakiness Clearing flags on attachment: 337345 Committed r230328: <https://trac.webkit.org/changeset/230328>
All reviewed patches have been landed. Closing bug.
<rdar://problem/39231738>