Fix "TypeError: Cannot read property 'slice' of undefined" when using setCookies API#201
Fix "TypeError: Cannot read property 'slice' of undefined" when using setCookies API#201jihchi wants to merge 1 commit intoschickling:masterfrom
setCookies API#201Conversation
joelgriffith left a comment
There was a problem hiding this comment.
We still want to keep the url part of this: https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-setCookie as it's required (and consumers, right now, likely aren't adding it).
I think the solution lies in gracefully handling cookie.domain in the getUrlFromCookie helper
| Hi @joelgriffith , Thanks for review PR.
For For other cases (such as I'm thinking about to handle url for |
Version: chromeless@1.2.0
Example code:
Result: