New issue
Advanced search Search tips

Issue 913455 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Javascript object "document.cookie" has stopped working

Reported by suchanek...@gmail.com, Dec 10

Issue description

UserAgent: 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.
 
index.html
275 bytes View Download
Components: Internals>Network>Cookies
Cookies are not supported for file URIs. This page works correctly if you run it via an HTTP server. I don't see an intent to change if it broke in M71 so not immediately closing. Sending to network team to comment.
Labels: Needs-Triage-M71 Needs-Bisect
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET Needs-Feedback
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.!
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.
index.html
186 bytes View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Dec 11

Labels: -Needs-Feedback
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
Status: WontFix (was: Unconfirmed)
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