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

Issue 621003002: [ServiceWorker] Treat opaque response as a network error for frame loading. (Closed)

Created:
6 years, 2 months ago by horo
Modified:
6 years, 2 months ago
Reviewers:
falken, tkent, Mike West
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, mkwst+moarreviews_chromium.org, falken, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[ServiceWorker] Treat opaque response as a network error for frame loading. Currently we can read the body of the opaque response using iframe's innerHTML. To prevent this we have to treat the opaque response as a network error for the frame loading. This CL depends on https://codereview.chromium.org/625513002/ and https://codereview.chromium.org/623663002/. BUG=411174 TEST=LayoutTests/http/tests/serviceworker/fetch-frame-resource.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183186

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -6 lines) Patch
A LayoutTests/http/tests/serviceworker/fetch-frame-resource.html View 1 chunk +154 lines, -0 lines 5 comments Download
M Source/modules/serviceworkers/RespondWithObserver.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/RespondWithObserver.cpp View 2 chunks +9 lines, -3 lines 2 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
horo
falken@ Could you please review this?
6 years, 2 months ago (2014-10-02 11:32:18 UTC) #2
Mike West
Code change LGTM (I only skimmed the test) % one comment. https://codereview.chromium.org/621003002/diff/1/Source/modules/serviceworkers/RespondWithObserver.cpp File Source/modules/serviceworkers/RespondWithObserver.cpp (right): ...
6 years, 2 months ago (2014-10-02 12:07:46 UTC) #4
horo
https://codereview.chromium.org/621003002/diff/1/Source/modules/serviceworkers/RespondWithObserver.cpp File Source/modules/serviceworkers/RespondWithObserver.cpp (right): https://codereview.chromium.org/621003002/diff/1/Source/modules/serviceworkers/RespondWithObserver.cpp#newcode126 Source/modules/serviceworkers/RespondWithObserver.cpp:126: if (responseType == FetchResponseData::OpaqueType && m_frameType != WebURLRequest::FrameTypeNone) { ...
6 years, 2 months ago (2014-10-03 03:43:02 UTC) #5
falken
https://codereview.chromium.org/621003002/diff/1/LayoutTests/http/tests/serviceworker/fetch-frame-resource.html File LayoutTests/http/tests/serviceworker/fetch-frame-resource.html (right): https://codereview.chromium.org/621003002/diff/1/LayoutTests/http/tests/serviceworker/fetch-frame-resource.html#newcode16 LayoutTests/http/tests/serviceworker/fetch-frame-resource.html:16: async_test(function(t) { It's burdensome, but can you put each ...
6 years, 2 months ago (2014-10-03 03:43:47 UTC) #6
horo
https://codereview.chromium.org/621003002/diff/1/LayoutTests/http/tests/serviceworker/fetch-frame-resource.html File LayoutTests/http/tests/serviceworker/fetch-frame-resource.html (right): https://codereview.chromium.org/621003002/diff/1/LayoutTests/http/tests/serviceworker/fetch-frame-resource.html#newcode16 LayoutTests/http/tests/serviceworker/fetch-frame-resource.html:16: async_test(function(t) { On 2014/10/03 03:43:47, falken wrote: > It's ...
6 years, 2 months ago (2014-10-03 04:14:26 UTC) #7
falken
lgtm https://codereview.chromium.org/621003002/diff/1/LayoutTests/http/tests/serviceworker/fetch-frame-resource.html File LayoutTests/http/tests/serviceworker/fetch-frame-resource.html (right): https://codereview.chromium.org/621003002/diff/1/LayoutTests/http/tests/serviceworker/fetch-frame-resource.html#newcode16 LayoutTests/http/tests/serviceworker/fetch-frame-resource.html:16: async_test(function(t) { On 2014/10/03 04:14:26, horo wrote: > ...
6 years, 2 months ago (2014-10-03 06:06:40 UTC) #8
horo
tkent@ Could you please review Source/web/ServiceWorkerGlobalScopeProxy.cpp?
6 years, 2 months ago (2014-10-03 06:11:44 UTC) #10
tkent
lgtm
6 years, 2 months ago (2014-10-03 06:14:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621003002/1
6 years, 2 months ago (2014-10-03 06:16:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621003002/1
6 years, 2 months ago (2014-10-03 08:04:11 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-03 10:25:45 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 183186

Powered by Google App Engine
This is Rietveld 408576698