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

Issue 2522053002: WebView: don't allow processes to share data dir. (Closed)

Created:
4 years, 1 month ago by Torne
Modified:
4 years ago
Reviewers:
sgurun-gerrit only
CC:
chromium-reviews, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebView: don't allow processes to share data dir. When two processes in the same app use WebView at once, they share a data directory, which is unsafe. Change the existing data directory locking code so that it throws a fatal exception in this case instead of only printing a warning. Preserve the current warning-only behaviour for a small number of applications that are known to rely on this unsupported behaviour, until we've been able to confirm that they no longer need this. Reinstate the disabled test which verifies this behaviour is forbidden. BUG=558377 Committed: https://crrev.com/b077d802dd71ab917f22c2be4afe07a3564d150b Cr-Commit-Position: refs/heads/master@{#435209}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -21 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 4 chunks +36 lines, -7 lines 2 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSecondBrowserProcessTest.java View 2 chunks +6 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Torne
Given that we've just discovered that this kind of usage breaks multiprocess (see bug) I ...
4 years, 1 month ago (2016-11-22 19:41:15 UTC) #2
sgurun-gerrit only
https://codereview.chromium.org/2522053002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/2522053002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode128 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:128: if (checkMinAppVersion(context, "com.facebook.katana", 34592776) On 2016/11/22 19:41:15, Torne wrote: ...
4 years, 1 month ago (2016-11-22 21:42:07 UTC) #3
Torne
On 2016/11/22 21:42:07, sgurun wrote: > https://codereview.chromium.org/2522053002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java > File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java > (right): > > https://codereview.chromium.org/2522053002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode128 ...
4 years ago (2016-11-23 11:48:35 UTC) #4
sgurun-gerrit only
On 2016/11/23 11:48:35, Torne wrote: > On 2016/11/22 21:42:07, sgurun wrote: > > > https://codereview.chromium.org/2522053002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java ...
4 years ago (2016-11-23 17:21:27 UTC) #5
sgurun-gerrit only
On 2016/11/23 17:21:27, sgurun wrote: > On 2016/11/23 11:48:35, Torne wrote: > > On 2016/11/22 ...
4 years ago (2016-11-29 21:47:37 UTC) #6
Torne
Sure, the intention is that we'll roll this back if it breaks other apps.
4 years ago (2016-11-30 10:11:21 UTC) #7
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/2522053002/1
4 years ago (2016-11-30 10:11:46 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-30 10:49:21 UTC) #11
commit-bot: I haz the power
4 years ago (2016-11-30 10:51:00 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b077d802dd71ab917f22c2be4afe07a3564d150b
Cr-Commit-Position: refs/heads/master@{#435209}

Powered by Google App Engine
This is Rietveld 408576698