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

Issue 2142523004: M52: Merge "Reland: service worker: Don't control a subframe of an insecure context" (Closed)

Created:
4 years, 5 months ago by falken
Modified:
4 years, 5 months ago
Reviewers:
horo
CC:
chromium-reviews, kenjibaheux+watch_chromium.org, tzik, nasko+codewatch_chromium.org, eae+blinkwatch, kinuko+watch, rwlbuis, extensions-reviews_chromium.org, jam, blink-reviews-dom_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, jsbell+serviceworker_chromium.org, sof, nhiroki, michaeln, serviceworker-reviews, kinuko+serviceworker, mkwst+moarreviews-renderer_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
Project:
chromium
Visibility:
Public.

Description

M52: Merge "Reland: service worker: Don't control a subframe of an insecure context" This merge includes: [1] service worker: When claiming, don't assume document_url is valid Many provider hosts have an empty document_url, for example those that haven't yet been loaded or those created for special URLs like chrome-search://. So that claim can use IsContextSecureForServiceWorker, return false when the URL is invalid instead of doing a DCHECK that it's valid. BUG=621762, 607543 Review-Url: https://codereview.chromium.org/2085923002 Cr-Commit-Position: refs/heads/master@{#401216} (cherry picked from commit dd5dd98f5f59f4f53274308ec0a7dca74aba6525) [2] Remove WebFrame::canHaveSecureChild To simplify the public API, ServiceWorkerNetworkProvider can do the parent walk itself. Follow-up to https://crrev.com/ad1850962644e19. BUG=607543 Review-Url: https://codereview.chromium.org/2082493002 Cr-Commit-Position: refs/heads/master@{#400896} (cherry picked from commit 8353baf8d1504dbdd4ad7584ff2466de657521cd) [3] Reland: service worker: Don't control a subframe of an insecure context We must check isSecureContext when creating the network provider to adhere to https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileged. We already did this for getRegistration(), register(), unregister() but must also do this when deciding whether to control an in-scope document. BUG=607543 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Original review: https://codereview.chromium.org/2009453002 Review-Url: https://codereview.chromium.org/2071433003 Cr-Commit-Position: refs/heads/master@{#400093} (cherry picked from commit ad1850962644e19cdb040d60eb236e0ebc23c243) [4] service worker: Remove unused PROVIDER_FOR_SANDBOXED_IFRAME Clean-up only. This was added in https://codereview.chromium.org/1191293002/ then became unused in https://codereview.chromium.org/1399363004. Originally it signaled to the ServiceWorkerNetworkProvider ctor that the provider id should be set to invalid; now the default ctor is used accomplish that. BUG= Review-Url: https://codereview.chromium.org/2023733002 Cr-Commit-Position: refs/heads/master@{#396685} (cherry picked from commit ae9107fb035320cc53558a0bb1ff5c9bf99cfffe) TBR=horo Committed: https://chromium.googlesource.com/chromium/src/+/894ba96d4f84f8cdbd13168bf14cb866ce8caecd

Patch Set 1 #

Patch Set 2 : fix compile errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -209 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/service_worker_apitest.cc View 3 chunks +20 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler_unittest.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 chunk +12 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 8 chunks +60 lines, -65 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 4 chunks +13 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 5 chunks +13 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_handle_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 6 chunks +29 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 10 chunks +30 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host_unittest.cc View 4 chunks +70 lines, -14 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler_unittest.cc View 1 chunk +9 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 13 chunks +17 lines, -20 lines 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.h View 2 chunks +11 lines, -4 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.cc View 6 chunks +36 lines, -18 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 chunk +13 lines, -2 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 chunk +1 line, -4 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.cc View 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/insecure-parent-frame.html View 1 chunk +85 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-inscope.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 5 chunks +8 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
falken
This also includes a bit of https://crrev.com/8a5ede2ab476d57dbce99422d89333b71cd7dcab (the ServiceWorkerRequestTestResources refactoring in service_worker_controllee_request_handler_unittest.cc)
4 years, 5 months ago (2016-07-12 02:18:01 UTC) #1
falken
TBR=horo for merge
4 years, 5 months ago (2016-07-12 02:19:43 UTC) #4
falken
4 years, 5 months ago (2016-07-12 02:25:20 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
894ba96d4f84f8cdbd13168bf14cb866ce8caecd.

Powered by Google App Engine
This is Rietveld 408576698