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

Issue 1665453003: Add browser tests for FetchEvent.request.mode/credentials in the service worker (Closed)

Created:
4 years, 10 months ago by horo
Modified:
4 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add browser tests for FetchEvent.request.mode/credentials in the service worker This CL adds browser_tests to check the fetch request mode and credentials mode in the service worker for the follwing requests. - <embed src="test.pdf"> Fetched in MimeHandlerViewContainer::OnReady(). - <link rel="manifest" href="manifest.json"> Fetched in ManifestFetcher::Start(). - PPAPI's pp::URLLoader. Fetched in PepperURLLoaderHost::InternalOnHostMsgOpen(). This CL depends on https://codereview.chromium.org/1665533003/. BUG=576534, 543895 Committed: https://crrev.com/bcc7a2056bac1159aa480a8fb9355da98f84424c Cr-Commit-Position: refs/heads/master@{#376704}

Patch Set 1 : #

Patch Set 2 : rebase on 1665533003 #

Total comments: 20

Patch Set 3 : incorporated nhiroki's comment #

Patch Set 4 : rebase on 1665533003 #

Total comments: 12

Patch Set 5 : incorporated jochen's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -0 lines) Patch
M chrome/browser/chrome_service_worker_browsertest.cc View 1 2 3 4 4 chunks +389 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/nacl/BUILD.gn View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/test/data/nacl/nacl_test_data.gyp View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/pnacl_url_loader/pnacl_url_loader.cc View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/pnacl_url_loader/pnacl_url_loader.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (20 generated)
horo
nhiroki@ Could you please review this?
4 years, 10 months ago (2016-02-04 10:04:17 UTC) #8
nhiroki
https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (right): https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc#newcode137 chrome/browser/chrome_service_worker_browsertest.cc:137: std::string RequsestString(const std::string& url, s/Requsest/Request https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc#newcode152 chrome/browser/chrome_service_worker_browsertest.cc:152: " return ...
4 years, 10 months ago (2016-02-09 04:48:42 UTC) #9
horo
Thank you! https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (right): https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc#newcode137 chrome/browser/chrome_service_worker_browsertest.cc:137: std::string RequsestString(const std::string& url, On 2016/02/09 04:48:42, ...
4 years, 10 months ago (2016-02-10 06:09:22 UTC) #10
nhiroki
lgtm https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (right): https://codereview.chromium.org/1665453003/diff/60001/chrome/browser/chrome_service_worker_browsertest.cc#newcode281 chrome/browser/chrome_service_worker_browsertest.cc:281: On 2016/02/10 06:09:22, horo wrote: > On 2016/02/09 ...
4 years, 10 months ago (2016-02-10 06:46:10 UTC) #11
horo
bradnelson@ Could you please review chrome/test/data/nacl/*?
4 years, 10 months ago (2016-02-15 04:43:42 UTC) #13
bradn
lgtm
4 years, 10 months ago (2016-02-16 02:19:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665453003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665453003/100001
4 years, 10 months ago (2016-02-16 02:19:26 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/146216)
4 years, 10 months ago (2016-02-16 02:28:47 UTC) #21
horo
jochen@ Could you please review chrome/browser/chrome_service_worker_browsertest.cc?
4 years, 10 months ago (2016-02-16 03:12:53 UTC) #23
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/1665453003/diff/100001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (right): https://codereview.chromium.org/1665453003/diff/100001/chrome/browser/chrome_service_worker_browsertest.cc#newcode121 chrome/browser/chrome_service_worker_browsertest.cc:121: ChromeServiceWorkerFetchTest() {} please also add a virtual dtor ...
4 years, 10 months ago (2016-02-17 11:01:04 UTC) #24
horo
Thank you! https://codereview.chromium.org/1665453003/diff/100001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (right): https://codereview.chromium.org/1665453003/diff/100001/chrome/browser/chrome_service_worker_browsertest.cc#newcode121 chrome/browser/chrome_service_worker_browsertest.cc:121: ChromeServiceWorkerFetchTest() {} On 2016/02/17 11:01:04, jochen wrote: ...
4 years, 10 months ago (2016-02-18 03:41:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665453003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665453003/120001
4 years, 10 months ago (2016-02-18 03:44:13 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/147204)
4 years, 10 months ago (2016-02-18 03:54:31 UTC) #30
horo
bradnelson@ Could you please send 'lgtm' with your chromium account?
4 years, 10 months ago (2016-02-18 03:57:14 UTC) #31
bradnelson
lgtm
4 years, 10 months ago (2016-02-22 05:45:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665453003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665453003/120001
4 years, 10 months ago (2016-02-22 05:46:31 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 10 months ago (2016-02-22 08:19:38 UTC) #36
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/bcc7a2056bac1159aa480a8fb9355da98f84424c Cr-Commit-Position: refs/heads/master@{#376704}
4 years, 10 months ago (2016-02-22 08:20:37 UTC) #38
horo
4 years, 10 months ago (2016-02-25 06:43:21 UTC) #39
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:120001) has been created in
https://codereview.chromium.org/1739643002/ by horo@chromium.org.

The reason for reverting is: https://codereview.chromium.org/1665533003/
introduced a security bug..

Powered by Google App Engine
This is Rietveld 408576698