Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Issue 2385653005: [DurableStorage] Don't grant durable if origin cannot write cookies. (Closed)

Created:
4 years, 2 months ago by dmurph
Modified:
4 years, 2 months ago
Reviewers:
michaeln, jww
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DurableStorage] Don't grant durable if origin cannot write cookies. R=michaeln@chromium.org, jww@chromium.org BUG=521183, 652853, 521082 Committed: https://crrev.com/49882a41627a37025f9b5e3bdc3335ce8e0a2ffe Cr-Commit-Position: refs/heads/master@{#423072}

Patch Set 1 #

Patch Set 2 : added test #

Total comments: 11

Patch Set 3 : Added third party frame check, and incognito check, and fixed cookies check #

Total comments: 6

Patch Set 4 : removed incognito restriction, as per browser test #

Total comments: 2

Patch Set 5 : addressed comments, added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -3 lines) Patch
M chrome/browser/storage/durable_storage_permission_context.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/storage/durable_storage_permission_context.cc View 1 2 3 4 2 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/storage/durable_storage_permission_context_unittest.cc View 1 2 3 4 2 chunks +228 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (22 generated)
dmurph
Hey Michael, This is a small patch to deny durable storage requests when cookies aren't ...
4 years, 2 months ago (2016-09-30 21:36:19 UTC) #6
dmurph
+Joel, just to make sure I'm doing this check correctly
4 years, 2 months ago (2016-09-30 21:42:47 UTC) #8
michaeln
i'm not too familiar with this, hope my comment/question makes sense? https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): ...
4 years, 2 months ago (2016-09-30 22:19:03 UTC) #12
michaeln
https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc#newcode48 chrome/browser/storage/durable_storage_permission_context.cc:48: embedding_origin)) { just read the bug... maybe use IsSettingCookiesAllowed(requesting_origin, ...
4 years, 2 months ago (2016-09-30 22:21:21 UTC) #13
jww
https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc#newcode38 chrome/browser/storage/durable_storage_permission_context.cc:38: const GURL& embedding_origin, Is embedding_origin guaranteed to be the ...
4 years, 2 months ago (2016-10-01 04:46:20 UTC) #14
jww
On 2016/10/01 04:46:20, jww wrote: > https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc > File chrome/browser/storage/durable_storage_permission_context.cc (right): > > https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc#newcode38 > ...
4 years, 2 months ago (2016-10-01 04:46:57 UTC) #15
dmurph
I added a couple more checks here, relevant bugs added. https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/2385653005/diff/20001/chrome/browser/storage/durable_storage_permission_context.cc#newcode38 ...
4 years, 2 months ago (2016-10-04 22:00:45 UTC) #18
jww
lgtm with one clarification question. https://codereview.chromium.org/2385653005/diff/60001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/2385653005/diff/60001/chrome/browser/storage/durable_storage_permission_context.cc#newcode43 chrome/browser/storage/durable_storage_permission_context.cc:43: // Durable is only ...
4 years, 2 months ago (2016-10-05 00:19:40 UTC) #22
jww
lgtm with one clarification question.
4 years, 2 months ago (2016-10-05 00:19:42 UTC) #23
michaeln
lgtm, but please see comments https://codereview.chromium.org/2385653005/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/2385653005/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc#newcode41 chrome/browser/storage/durable_storage_permission_context.cc:41: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); A comment about ...
4 years, 2 months ago (2016-10-05 00:22:41 UTC) #24
dmurph
Thanks! https://codereview.chromium.org/2385653005/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc File chrome/browser/storage/durable_storage_permission_context.cc (right): https://codereview.chromium.org/2385653005/diff/40001/chrome/browser/storage/durable_storage_permission_context.cc#newcode41 chrome/browser/storage/durable_storage_permission_context.cc:41: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); On 2016/10/05 00:22:40, michaeln wrote: > A ...
4 years, 2 months ago (2016-10-05 03:22:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385653005/80001
4 years, 2 months ago (2016-10-05 03:24:50 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-05 04:06:09 UTC) #34
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 04:08:10 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/49882a41627a37025f9b5e3bdc3335ce8e0a2ffe
Cr-Commit-Position: refs/heads/master@{#423072}

Powered by Google App Engine
This is Rietveld 408576698