Issue metadata
Sign in to add a comment
|
Javascript object "document.cookie" has stopped working
Reported by
suchanek...@gmail.com,
Dec 10
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36 Steps to reproduce the problem: 1. Open index.html in Chrome 71.0.3578.80 (Official Build) (64-bit) 2. Check the console log What is the expected behavior? document.cookie contains: "test1=Hello; test2=World" What went wrong? document.cookie is empty Did this work before? Yes 70.0.3538.110 Does this work in other browsers? Yes Chrome version: 71.0.3578.80 Channel: stable OS Version: 10.0 Flash Version: It works in both FF and IE.
,
Dec 10
,
Dec 11
Thanks for filing the issue... Tried to reproduce the issue on reported chrome version 71.0.3578.80 using Windows 10. Steps: ----- 1. Launched reported chrome 2. As per comment #0, Opened given html file and opened dev tools > console >> Observed =document.cookie is empty (Observed same behaviour from M-60 to latest M-73 builds) 3. As per comment #1, Launched given html file through local server and opened dev tools > console >> Observed =document.cookie contains: "test1=Hello; test2=World" As we have observed that while launching the html file through local server it work as expected @Reporter: Can you please check the process we followed (step:2 and 3) and let us know if anything missed from our end. Thanks.!
,
Dec 11
I'm sorry guys. My fault. I have investigate it more deeply and i found the real issue. In my JS script I have a browser detection - in this case for Chrome: var isChrome = !!window.chrome && !!window.chrome.webstore; (This piece of code is from this website: http://browserhacks.com/) And issue is in object: window.chrome.webstore This object in a new version (71.0.3578.80) is returning "undefined". I've tried this object called in an "older" version and there it is returning an "Object". (tested on attached index.html) But this is a hack so thanks for your time and I apologize for the interruption. I'm gonna to report this to corresponding site.
,
Dec 11
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 11
Thanks for the followup! The website object was removed because it's last method was removed, so it served no purpose. This did break browser detection scripts that depended on it. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Dec 10