Skip to content

Commit

Permalink
remove domain: cookie.domain and see what happens
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Aug 20, 2019
1 parent d2b05a5 commit 49e9168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/lib/automation/cookies.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ cookies = (cyNamespace, cookieNamespace) ->
debug("clear:cookies %o", cookies)

clear = (cookie) ->
automate("clear:cookie", { name: cookie.name, domain: cookie.domain })
automate("clear:cookie", { name: cookie.name })
.then(normalizeCookieProps)

Promise.map(cookies, clear)
Expand Down
2 changes: 1 addition & 1 deletion packages/server/test/unit/socket_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe "lib/socket", ->

it "does not clear any namespaced cookies", (done) ->
sinon.stub(chrome.cookies, "getAll")
.withArgs({name: "session", domain: "google.com"})
.withArgs({name: "session"})
.yieldsAsync([
{name: "session", value: "key", path: "/", domain: "google.com", secure: true, httpOnly: true, expirationDate: 123, a: "a", b: "c"}
])
Expand Down

0 comments on commit 49e9168

Please sign in to comment.