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

Issue 2821623003: Allow WebView setCookie api to set secure cookies for http urls. (Closed)

Created:
3 years, 8 months ago by sgurun-gerrit only
Modified:
3 years, 8 months ago
Reviewers:
Mike West
CC:
android-webview-reviews_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow WebView setCookie api to set secure cookies for http urls. Starting with Chrome M58, setting secure cookies for http urls is not allowed (strict secure cookies). However, Webview using applications used to set cookies using a Webview setCookie API and until now we discovered 3 apps doing that and failing in different ways. This change is a temporary hack to allow this API to modify HTTP urls to HTTPS when setting secure cookies. BUG=706993 Review-Url: https://codereview.chromium.org/2821623003 Cr-Commit-Position: refs/heads/master@{#464734} Committed: https://chromium.googlesource.com/chromium/src/+/50549382727806e2ae44c45444827d02270b5d57

Patch Set 1 #

Patch Set 2 : Add a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java View 1 1 chunk +10 lines, -0 lines 0 comments Download
M android_webview/native/cookie_manager.cc View 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
sgurun-gerrit only
Mike, this is the issue I emailed you about. I verified that it fixes both ...
3 years, 8 months ago (2017-04-14 04:28:53 UTC) #3
Mike West
Can you add a test for this behavior?
3 years, 8 months ago (2017-04-14 06:04:21 UTC) #4
sgurun-gerrit only
On 2017/04/14 06:04:21, Mike West wrote: > Can you add a test for this behavior? ...
3 years, 8 months ago (2017-04-14 14:33:10 UTC) #5
Mike West
lgtm
3 years, 8 months ago (2017-04-14 16:10:08 UTC) #6
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/2821623003/20001
3 years, 8 months ago (2017-04-14 16:26:29 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 16:48:33 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/50549382727806e2ae44c4544482...

Powered by Google App Engine
This is Rietveld 408576698