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

Issue 2339343002: Android webview tries to switch to CE context (Closed)

Created:
4 years, 3 months ago by Nate Fischer
Modified:
4 years, 3 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android webview tries to switch to CE context If Webview is started in an application using defaultToDeviceProtectedStorage="true", it will first try to switch to a CE context. If it's unable to switch contexts, it throws an exception. BUG=645921 Committed: https://crrev.com/18dad59572f1ed74069538bde20f25a4a8b3e586 Cr-Commit-Position: refs/heads/master@{#420730}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : Addressed concerns from PS1 #

Total comments: 5

Patch Set 4 : Removed redundancy #

Total comments: 5

Patch Set 5 : Reverted WebViewChromium, refactored WebViewChromiumFactoryProvider #

Patch Set 6 : Minor formatting changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 2 3 4 5 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
Nate Fischer
I again couldn't find the location for the unit tests, and I wasn't sure how ...
4 years, 3 months ago (2016-09-15 01:52:43 UTC) #3
sgurun-gerrit only
On 2016/09/15 01:52:43, Nate Fischer wrote: > I again couldn't find the location for the ...
4 years, 3 months ago (2016-09-15 04:40:00 UTC) #4
Torne
https://codereview.chromium.org/2339343002/diff/1/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java (right): https://codereview.chromium.org/2339343002/diff/1/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java#newcode117 android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java:117: WebViewChromiumFactoryProvider.switchStorageContextIfDeviceProtectedStorage( We explicitly *don't* want to allow a WebView ...
4 years, 3 months ago (2016-09-15 10:15:59 UTC) #6
boliu
stopped by to say please don't break the caching in ResourcesContextWrapperFactory, ie the sCtxToWrapper map
4 years, 3 months ago (2016-09-20 20:36:52 UTC) #7
Nate Fischer
PTAL
4 years, 3 months ago (2016-09-20 22:53:57 UTC) #8
Torne
https://codereview.chromium.org/2339343002/diff/40001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java (right): https://codereview.chromium.org/2339343002/diff/40001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java#newcode117 android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java:117: Context ctx = WebViewChromiumFactoryProvider.switchToCredentialProtectedStorage( You're still allowing a WebView ...
4 years, 3 months ago (2016-09-21 12:04:18 UTC) #9
Nate Fischer
I believe this should address all concerns, unless I'm misunderstanding the entry points for creating ...
4 years, 3 months ago (2016-09-22 04:21:13 UTC) #10
Torne
https://codereview.chromium.org/2339343002/diff/40001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java (right): https://codereview.chromium.org/2339343002/diff/40001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java#newcode117 android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java:117: Context ctx = WebViewChromiumFactoryProvider.switchToCredentialProtectedStorage( On 2016/09/22 04:21:12, Nate Fischer ...
4 years, 3 months ago (2016-09-22 09:59:54 UTC) #11
sgurun-gerrit only
On 2016/09/22 09:59:54, Torne wrote: > https://codereview.chromium.org/2339343002/diff/40001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java > File > android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java > (right): > > ...
4 years, 3 months ago (2016-09-22 17:19:45 UTC) #12
Torne
On 2016/09/22 17:19:45, sgurun wrote: > On 2016/09/22 09:59:54, Torne wrote: > > > https://codereview.chromium.org/2339343002/diff/40001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java ...
4 years, 3 months ago (2016-09-22 17:34:39 UTC) #13
chromium-reviews
agreed On Thu, Sep 22, 2016 at 10:34 AM, <torne@chromium.org> wrote: > On 2016/09/22 17:19:45, ...
4 years, 3 months ago (2016-09-22 17:47:48 UTC) #14
sgurun-gerrit only
On 2016/09/22 17:47:48, chromium-reviews wrote: > agreed Well the message above was me. Sent from ...
4 years, 3 months ago (2016-09-22 17:49:30 UTC) #15
Nate Fischer
On 2016/09/22 at 17:49:30, sgurun wrote: > On 2016/09/22 17:47:48, chromium-reviews wrote: > > agreed ...
4 years, 3 months ago (2016-09-22 19:47:23 UTC) #16
Nate Fischer
https://codereview.chromium.org/2339343002/diff/60001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java (left): https://codereview.chromium.org/2339343002/diff/60001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java#oldcode117 android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java:117: WebViewChromiumFactoryProvider.checkStorageIsNotDeviceProtected(webView.getContext()); On 2016/09/22 at 09:59:54, Torne wrote: > Leave ...
4 years, 3 months ago (2016-09-22 19:47:49 UTC) #17
Nate Fischer
PTAL
4 years, 3 months ago (2016-09-22 20:17:49 UTC) #18
Torne
LGTM assuming we aren't going to trigger the warnings about incompatible method calls.. https://codereview.chromium.org/2339343002/diff/60001/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java File ...
4 years, 3 months ago (2016-09-23 11:13:15 UTC) #19
Nate Fischer
On 2016/09/23 at 11:13:15, torne wrote: > LGTM assuming we aren't going to trigger the ...
4 years, 3 months ago (2016-09-23 21:00:24 UTC) #24
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/2339343002/100001
4 years, 3 months ago (2016-09-23 21:02:40 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-23 21:08:38 UTC) #28
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 21:11:02 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/18dad59572f1ed74069538bde20f25a4a8b3e586
Cr-Commit-Position: refs/heads/master@{#420730}

Powered by Google App Engine
This is Rietveld 408576698