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

Issue 505063002: ServiceWorker: throw when close() or terminate() called (Closed)

Created:
6 years, 4 months ago by jsbell
Modified:
6 years, 3 months ago
Reviewers:
horo
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org
Project:
blink
Visibility:
Public.

Description

ServiceWorker: throw when close() or terminate() called Per spec: * ServiceWorker#terminate() should throw InvalidAccessError * ServiceWorkerGlobalScope#close() should throw InvalidAccessError ... since the behaviors inherited from the base interfaces are not supported. Spec: slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html BUG=398318 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181049

Patch Set 1 #

Patch Set 2 : Remove uses of 'close' within fetch tests #

Total comments: 3

Patch Set 3 : Add infinite fetch loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -10 lines) Patch
M LayoutTests/http/tests/serviceworker/interfaces.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-body-stream-worker.js View 1 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-worker.js View 1 2 1 chunk +12 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js View 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/serviceworkerglobalscope-close-worker.js View 1 chunk +8 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/serviceworker/serviceworkerglobalscope-close.html View 1 chunk +3 lines, -3 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html View 1 chunk +24 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorker.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorker.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorker.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jsbell
I had a "bad karma" day so picked off something trivial from the bug list. ...
6 years, 4 months ago (2014-08-26 00:31:00 UTC) #1
jsbell
jsbell@chromium.org changed reviewers: + horo@chromium.org, michaeln@chromium.org, nhiroki@chromium.org
6 years, 3 months ago (2014-08-26 16:03:00 UTC) #2
jsbell
Ooops, dominicc@ is 'slow' - r? cq? anyone?
6 years, 3 months ago (2014-08-26 16:03:00 UTC) #3
jsbell
jsbell@chromium.org changed reviewers: - dominicc@chromium.org, michaeln@chromium.org, nhiroki@chromium.org
6 years, 3 months ago (2014-08-26 17:06:47 UTC) #4
jsbell
I just noticed that the fetch tests (fetch.html, fetch-body-stream.html) racily use self.close(). Those will need ...
6 years, 3 months ago (2014-08-26 17:06:47 UTC) #5
horo
https://codereview.chromium.org/505063002/diff/20001/LayoutTests/http/tests/serviceworker/resources/fetch-body-stream-worker.js File LayoutTests/http/tests/serviceworker/resources/fetch-body-stream-worker.js (left): https://codereview.chromium.org/505063002/diff/20001/LayoutTests/http/tests/serviceworker/resources/fetch-body-stream-worker.js#oldcode11 LayoutTests/http/tests/serviceworker/resources/fetch-body-stream-worker.js:11: self.close(); It is ok to remove self.close() from fetch-body-stream-worker.js. ...
6 years, 3 months ago (2014-08-27 02:24:50 UTC) #6
jsbell
https://codereview.chromium.org/505063002/diff/20001/LayoutTests/http/tests/serviceworker/resources/fetch-worker.js File LayoutTests/http/tests/serviceworker/resources/fetch-worker.js (right): https://codereview.chromium.org/505063002/diff/20001/LayoutTests/http/tests/serviceworker/resources/fetch-worker.js#newcode22 LayoutTests/http/tests/serviceworker/resources/fetch-worker.js:22: // FIXME: Since we can't ensure the context is ...
6 years, 3 months ago (2014-08-27 16:27:09 UTC) #7
horo
lgtm
6 years, 3 months ago (2014-08-28 01:01:01 UTC) #8
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 3 months ago (2014-08-28 16:45:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/505063002/40001
6 years, 3 months ago (2014-08-28 16:45:54 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 181049
6 years, 3 months ago (2014-08-28 16:50:25 UTC) #11
mlamouri (slow - plz ping)
6 years, 3 months ago (2014-08-28 17:23:33 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #3) has been created in
https://codereview.chromium.org/515323002/ by mlamouri@chromium.org.

The reason for reverting is: Break compilation on various bots. Maybe Win only..

Powered by Google App Engine
This is Rietveld 408576698