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

Issue 2398463004: browser_test that creates filesystem resources in extension origin (Closed)

Created:
4 years, 2 months ago by ncarter (slow)
Modified:
4 years ago
Reviewers:
jam, alexmos
CC:
chromium-reviews, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

browser_test that creates filesystem resources in extension origin Implement a security exploit test for bug 644966, and improve DEPS layering by using browser_test_util trampoline functions instead of content messages from chrome directly. Synchronizing the CreateFile operations requires installing a temporary FileUpdateObserver in the FileSystemContext. It turns out that this is quite hard to do, so it's encapsulated in a utility class. BUG=644966 Committed: https://crrev.com/bfaea4ee6b138d958efc97e16da9624dc28545e6 Cr-Commit-Position: refs/heads/master@{#436007}

Patch Set 1 #

Patch Set 2 : Class comment. #

Patch Set 3 : Things. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix flakiness by means of a new observer. #

Patch Set 6 : Self-review #

Patch Set 7 : Cleanup. #

Total comments: 13

Patch Set 8 : Rebase & apply alex's fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -22 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/chrome_security_exploit_browsertest.cc View 1 2 3 4 5 6 7 5 chunks +91 lines, -13 lines 0 comments Download
M content/browser/fileapi/mock_file_update_observer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 3 4 5 6 7 2 chunks +38 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 5 chunks +68 lines, -0 lines 0 comments Download
A content/public/test/test_fileapi_operation_waiter.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A content/public/test/test_fileapi_operation_waiter.cc View 1 2 3 4 5 6 7 1 chunk +113 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (29 generated)
ncarter (slow)
As proposed.
4 years, 2 months ago (2016-10-05 22:27:28 UTC) #5
jam
lgtm, thank you
4 years, 2 months ago (2016-10-05 23:00:11 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/2398463004/30001
4 years, 2 months ago (2016-10-10 19:52:00 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/313227)
4 years, 2 months ago (2016-10-10 20:51:41 UTC) #10
ncarter (slow)
Holding off on committing this due to an observed flaky failure on the linux bot.
4 years, 2 months ago (2016-10-10 23:08:44 UTC) #13
ncarter (slow)
FYI: Haven't abandoned this, it's #2 in my queue of things to come back to.
4 years, 1 month ago (2016-10-24 18:16:42 UTC) #16
jam
ping can you please land this soon? it shouldn't take much effort, and avoids an ...
4 years, 1 month ago (2016-11-04 17:18:32 UTC) #17
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/2398463004/30001
4 years, 1 month ago (2016-11-04 17:19:42 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/300001) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-04 17:22:36 UTC) #21
ncarter (slow)
On 2016/11/04 17:22:36, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 1 month ago (2016-11-04 18:06:28 UTC) #22
ncarter (slow)
Alex, please review the content/ changes. john already approved this before his leave and the ...
4 years ago (2016-12-01 21:10:20 UTC) #33
alexmos
LGTM with nits. Thanks for adding this and for all the explanations in comments! https://codereview.chromium.org/2398463004/diff/110001/chrome/browser/chrome_security_exploit_browsertest.cc ...
4 years ago (2016-12-02 00:01:56 UTC) #36
ncarter (slow)
https://codereview.chromium.org/2398463004/diff/110001/chrome/browser/chrome_security_exploit_browsertest.cc File chrome/browser/chrome_security_exploit_browsertest.cc (right): https://codereview.chromium.org/2398463004/diff/110001/chrome/browser/chrome_security_exploit_browsertest.cc#newcode133 chrome/browser/chrome_security_exploit_browsertest.cc:133: // recieving unexpected browser->renderer IPCs that might CHECK. On ...
4 years ago (2016-12-02 19:17:45 UTC) #37
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/2398463004/130001
4 years ago (2016-12-02 19:19:07 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years ago (2016-12-02 21:00:06 UTC) #43
commit-bot: I haz the power
4 years ago (2016-12-02 21:02:54 UTC) #45
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bfaea4ee6b138d958efc97e16da9624dc28545e6
Cr-Commit-Position: refs/heads/master@{#436007}

Powered by Google App Engine
This is Rietveld 408576698