|
|
Created:
3 years, 9 months ago by hiroshige Modified:
3 years, 9 months ago CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, loading-reviews+fetch_chromium.org, Marijn Kruisselbrink, tyoshino+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMove suborigin/serviceworker processing to prepareRequest()
To remove modifications to ResourceRequest in
ResourceFetcher::startLoad(), this CL moves setServiceWorkerMode() call
to ResourceFetcher::prepareRequest() from startLoad().
BUG=632580
Patch Set 1 #Patch Set 2 : Rebase #
Dependent Patchsets: Messages
Total messages: 20 (12 generated)
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Move suborigin/serviceworker processing to ResourceFetcher::prepareRequest() BUG= ========== to ========== Move suborigin/serviceworker processing to prepareRequest() To remove modifications to ResourceRequest in ResourceFetcher::startLoad(), this CL moves setServiceWorkerMode() call to ResourceFetcher::prepareRequest() from startLoad(). BUG=632580 ==========
hiroshige@chromium.org changed reviewers: + japhet@chromium.org, jww@chromium.org
hiroshige@chromium.org changed reviewers: + horo@chromium.org
PTAL, japhet@ as loading owner, jww@ horo@ service worker: jww@ introduced this code block in https://codereview.chromium.org/2343053002/; is it safe to move the check to prepareRequest()? (I think it is safe if requests from different origins that are controlled by serviceworker are not shared via MemoryCache, but I'm not sure whether it is enforced)
PTAL, japhet@ as loading owner, jww@ horo@ service worker: jww@ introduced this code block in https://codereview.chromium.org/2343053002/; is it safe to move the check to prepareRequest()? (I think it is safe if requests from different origins that are controlled by serviceworker are not shared via MemoryCache, but I'm not sure whether it is enforced)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM if serviceworker folks are happy.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: 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_...)
lgtm If two pages are controlled by different service workers, they use different MemoryCache. But if the request from a non-suborigin page is handled by ForingnFetch event handler, the response could be re-used for the suborigin pages. jww@: Is this the expected behavior? Or a bug?
mkwst@chromium.org changed reviewers: + jochen@chromium.org, mkwst@chromium.org - jww@chromium.org
LGTM. We haven't thought through the impact of suborigins on Foreign Fetch; we ought to. This patch is fine for the moment, but it does point to an outstanding piece of work that fell off our radar. Would you mind filing a bug against https://github.com/w3c/webappsec-suborigins/issues so we don't forget it again? :) +jochen: FYI
On 2017/03/22 18:05:03, Mike West wrote: > LGTM. We haven't thought through the impact of suborigins on Foreign Fetch; we > ought to. This patch is fine for the moment, but it does point to an outstanding > piece of work that fell off our radar. > > Would you mind filing a bug against > https://github.com/w3c/webappsec-suborigins/issues so we don't forget it again? > :) > > +jochen: FYI I think this is not a spec bug, because there is no spec of MemoryCache. MemoryCache is a kind of browser specific optimization. So I think this is an implementation issue.
is it possible to add a test for this?
On 2017/03/23 15:52:12, jochen wrote: > is it possible to add a test for this? Created: https://codereview.chromium.org/2770213002 |