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

Issue 1847523002: Avoid HTML in WebRestrictionsContentProvider interface (Closed)

Created:
4 years, 8 months ago by aberent
Modified:
4 years, 8 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid HTML in WebRestrictionsContentProvider interface Replace the HTML error message with list of custom error parameters to avoid potential security problems with passing HTML between apps. BUG=594973 Committed: https://crrev.com/2fb7c77d7c638883ae4fcddff407ae6a4c02e438 Cr-Commit-Position: refs/heads/master@{#384308}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Reply to comments #

Patch Set 3 : Client changes, and fix findbugs issues. #

Total comments: 8

Patch Set 4 : Respond to comments. #

Total comments: 2

Patch Set 5 : Respond to one more comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -126 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java View 1 2 3 4 10 chunks +50 lines, -21 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java View 1 2 5 chunks +19 lines, -8 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_content_provider_android.cc View 3 chunks +27 lines, -7 lines 0 comments Download
M components/web_restrictions/browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsClient.java View 1 2 2 chunks +27 lines, -12 lines 0 comments Download
M components/web_restrictions/browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java View 1 2 3 8 chunks +88 lines, -7 lines 0 comments Download
M components/web_restrictions/browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestrictionsClient.java View 1 2 2 chunks +58 lines, -1 line 0 comments Download
M components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsClientTest.java View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java View 1 2 3 4 chunks +15 lines, -7 lines 0 comments Download
M components/web_restrictions/browser/web_restrictions_client.h View 1 2 4 chunks +16 lines, -14 lines 0 comments Download
M components/web_restrictions/browser/web_restrictions_client.cc View 1 2 3 6 chunks +69 lines, -40 lines 0 comments Download
M components/web_restrictions/browser/web_restrictions_client_unittest.cc View 1 2 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
aberent
4 years, 8 months ago (2016-03-30 11:56:10 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1847523002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1847523002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:58: private Pair<Boolean, ErrorData> mResult; Would it make sense to ...
4 years, 8 months ago (2016-03-30 12:54:00 UTC) #3
aberent
https://codereview.chromium.org/1847523002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1847523002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:58: private Pair<Boolean, ErrorData> mResult; On 2016/03/30 12:54:00, Bernhard Bauer ...
4 years, 8 months ago (2016-03-30 14:28:20 UTC) #4
aberent
https://codereview.chromium.org/1847523002/diff/1/components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java File components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java (right): https://codereview.chromium.org/1847523002/diff/1/components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java#newcode71 components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java:71: // TODO Auto-generated method stub On 2016/03/30 12:54:00, Bernhard ...
4 years, 8 months ago (2016-03-30 14:35:55 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847523002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847523002/20001
4 years, 8 months ago (2016-03-30 14:36:48 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/42505)
4 years, 8 months ago (2016-03-30 15:17:39 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847523002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847523002/40001
4 years, 8 months ago (2016-03-31 09:40:04 UTC) #11
aberent
PTAL - new files added to CL for changes to Web Restrictions client.
4 years, 8 months ago (2016-03-31 09:41:25 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/1847523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1847523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:75: mResult = new WebRestrictionsResult(false, 3, 6); Actually, why don't ...
4 years, 8 months ago (2016-03-31 10:09:07 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 10:21:01 UTC) #15
aberent
https://codereview.chromium.org/1847523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1847523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:75: mResult = new WebRestrictionsResult(false, 3, 6); On 2016/03/31 10:09:07, ...
4 years, 8 months ago (2016-03-31 11:53:59 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847523002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847523002/60001
4 years, 8 months ago (2016-03-31 11:54:00 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 12:38:00 UTC) #20
Bernhard Bauer
https://codereview.chromium.org/1847523002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1847523002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:75: int errorInt[] = new int[3]; You can construct the ...
4 years, 8 months ago (2016-03-31 13:06:03 UTC) #21
aberent
https://codereview.chromium.org/1847523002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1847523002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:75: int errorInt[] = new int[3]; On 2016/03/31 13:06:03, Bernhard ...
4 years, 8 months ago (2016-03-31 13:39:59 UTC) #22
Bernhard Bauer
lgtm
4 years, 8 months ago (2016-03-31 14:36:34 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847523002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847523002/80001
4 years, 8 months ago (2016-03-31 16:12:35 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-31 16:52:02 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 16:54:03 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2fb7c77d7c638883ae4fcddff407ae6a4c02e438
Cr-Commit-Position: refs/heads/master@{#384308}

Powered by Google App Engine
This is Rietveld 408576698