Closed Bug 1450592 Opened 7 years ago Closed 7 years ago

document.cookie not accurate for cookies changed by scripts in another tab

Categories

(Core :: Networking: Cookies, defect)

59 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1450199
Tracking Status
firefox59 --- affected
firefox60 --- affected
firefox61 --- affected

People

(Reporter: jscher2000, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0 Build ID: 20180323154952 Steps to reproduce: Open https://www.jeffersonscher.com/res/xtabcook.php in two different tabs (release or nightly). Click "Dark" in one tab, and new cookies will be returned with a new server time and changed value for chocolatechip. Click "List Existing Cookies" in the other tab. The changed value of the two cookies set by the server is reflected in the other tab. Next tests: (A) Click "Set Oatmeal Cookies" in one tab, then click "List Existing Cookies" in the other tab. (B) In the tab where "List Existing Cookies" does not show oatmeal=raisin, click "Semisweet". (C) In the same tab, click "Remove Oatmeal Cookies". Then in the other tab, click "List Existing Cookies". Actual results: (A) "List Cookies" does not show the two additional cookies set for the domain. (B) Although in "A" document.cookie did not contain the two additional cookies, the request sent by Firefox did send those cookies to the server. (C) Although the oatmeal cookies were removed, the change is not reflected in document.cookie in the other tab Expected results: (A) document.cookie should reflect the updated set of cookies as modified by JavaScript (B) Correct (C) document.cookie should reflect the updated set of cookies as modified by JavaScript This may be related to Bug 1331680 but I didn't run a regression.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0 (20180404100127) I have tested this issue on Windows 10 using latest Nightly and Fx Release builds. I can see the mentioned behavior, where (A) "List Cookies" does not show the two additional cookies set for the domain" and (C) "while the oatmeal cookies were removed, the change is not reflected in document.cookie in the other tab". I think the correct component would be Core::Networking:Cookies. Please change if this is not the right component.
Status: UNCONFIRMED → NEW
Component: Untriaged → Networking: Cookies
Ever confirmed: true
Product: Firefox → Core
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.