Test behavior of document.cookie on navigated-away-from documents.
https://html.spec.whatwg.org/multipage/dom.html#dom-document-cookie specifies that a document with null browsing context is "cookie-averse", and that "On getting, if the document is a cookie-averse Document object, then the user agent must return the empty string. " and: "On setting, if the document is a cookie-averse Document object, then the user agent must do nothing. " (Adding test since refactors I am working on for document.cookie implementation have their complexity points around this sort of stuff). Change-Id: I2f2c163276a316b77166762d0b196dcdebb7a65a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1652544 Commit-Queue: Maks Orlovich <morlovich@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#678342}
Showing
Please register or sign in to comment