Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49e9168

Browse files
committedAug 20, 2019
remove domain: cookie.domain and see what happens
1 parent d2b05a5 commit 49e9168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/server/lib/automation/cookies.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ cookies = (cyNamespace, cookieNamespace) ->
128128
debug("clear:cookies %o", cookies)
129129

130130
clear = (cookie) ->
131-
automate("clear:cookie", { name: cookie.name, domain: cookie.domain })
131+
automate("clear:cookie", { name: cookie.name })
132132
.then(normalizeCookieProps)
133133

134134
Promise.map(cookies, clear)

‎packages/server/test/unit/socket_spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe "lib/socket", ->
143143

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

0 commit comments

Comments
 (0)
Please sign in to comment.