|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by yiyix Modified:
3 years, 9 months ago Reviewers:
falken CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, James Su, nona+watch_chromium.org, shimazu+serviceworker_chromium.org, tfarina, serviceworker-reviews, shuchen+watch_chromium.org, nhiroki, blink-reviews, kinuko+serviceworker, haraken, horo+watch_chromium.org, falken+watch_chromium.org, tzik, yusukes+watch_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix oninstall-script tests for service worker
According to the spec and the WPT test, an exception occurring during oninstall
should not cause installation to fail. This change makes the test pass.
Note that this checks removal may affect the behavior of all ExtendableEvents;
however it is expected to be fine as explained in the bug.
BUG=685531
Review-Url: https://codereview.chromium.org/2734783002
Cr-Commit-Position: refs/heads/master@{#458339}
Committed: https://chromium.googlesource.com/chromium/src/+/a626eb843a373043835437074f4c7de51baf00f4
Patch Set 1 : fix #Patch Set 2 : delete tests #
Total comments: 5
Patch Set 3 : address comment #
Messages
Total messages: 52 (45 generated)
Description was changed from ========== trial fix BUG= ========== to ========== trial fix BUG= ==========
The CQ bit was checked by yiyix@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
Patchset #1 (id:1) has been deleted
The CQ bit was checked by yiyix@chromium.org to run a CQ dry run
Description was changed from ========== trial fix BUG= ========== to ========== Fix onintall-script tests for service worker BUG=685531 ==========
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
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_...)
The CQ bit was checked by yiyix@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...
Patchset #1 (id:20001) has been deleted
The CQ bit was checked by yiyix@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
Patchset #1 (id:40001) has been deleted
The CQ bit was checked by yiyix@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yiyix@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by yiyix@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...
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_...)
The CQ bit was checked by yiyix@chromium.org to run a CQ dry run
Patchset #1 (id:60001) has been deleted
Patchset #1 (id:80001) has been deleted
Patchset #1 (id:100001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Fix onintall-script tests for service worker BUG=685531 ========== to ========== Fix onintall-script tests for service worker Remove unnecessary checks for install events. BUG=685531 ==========
yiyix@chromium.org changed reviewers: + falken@chromium.org
@Falken, could you please take a look? Thank you very much.
This looks good. nit in CL description: onintall -> oninstall Also for the CL description, we could be more clear why this change is happening. Perhaps: "According to the spec and the WPT test, an exception occurring during oninstall should not cause installation to fail. This change makes the test pass." It's also be worth mentioning that this affects the behavior of all ExtendableEvent, but that this change is expected to be OK (and to see the comment on the bug). https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp (right): https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp:203: return WorkerGlobalScope::dispatchEventInternal(event); Since it's now just calling the superclass's function, we can just remove this function. https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp:214: observer->didDispatchEvent(thread()->isForciblyTerminated()); Note for future reference: we could probably revisit whether we need this check as well, but it doesn't need to be in this patch.
Description was changed from ========== Fix onintall-script tests for service worker Remove unnecessary checks for install events. BUG=685531 ========== to ========== Fix onintall-script tests for service worker According to the spec and the WPT test, an exception occurring during oninstall should not cause installation to fail. This change makes the test pass. Note that this checks removal may affect the behavior of all ExtendableEvents; however it is expected to be fine as explained in the bug. BUG=685531 ==========
@falken, Could you please check the new patch? Thank you. https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp (right): https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp:203: return WorkerGlobalScope::dispatchEventInternal(event); On 2017/03/21 04:27:37, falken wrote: > Since it's now just calling the superclass's function, we can just remove this > function. Good call. Removed. https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp:214: observer->didDispatchEvent(thread()->isForciblyTerminated()); On 2017/03/21 04:27:37, falken wrote: > Note for future reference: we could probably revisit whether we need this check > as well, but it doesn't need to be in this patch. Would it be preferable to add a TODO?
lgtm a remaining typo in the CL description: onintall -> oninstall https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp (right): https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp:214: observer->didDispatchEvent(thread()->isForciblyTerminated()); On 2017/03/21 05:44:27, yiyix wrote: > On 2017/03/21 04:27:37, falken wrote: > > Note for future reference: we could probably revisit whether we need this > check > > as well, but it doesn't need to be in this patch. > > Would it be preferable to add a TODO? Hm, I think it's OK without it. The code will probably be like this for a while.
Description was changed from ========== Fix onintall-script tests for service worker According to the spec and the WPT test, an exception occurring during oninstall should not cause installation to fail. This change makes the test pass. Note that this checks removal may affect the behavior of all ExtendableEvents; however it is expected to be fine as explained in the bug. BUG=685531 ========== to ========== Fix oninstall-script tests for service worker According to the spec and the WPT test, an exception occurring during oninstall should not cause installation to fail. This change makes the test pass. Note that this checks removal may affect the behavior of all ExtendableEvents; however it is expected to be fine as explained in the bug. BUG=685531 ==========
On 2017/03/21 05:52:16, falken wrote: > lgtm > > a remaining typo in the CL description: onintall -> oninstall > > https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... > File > third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp > (right): > > https://codereview.chromium.org/2734783002/diff/140001/third_party/WebKit/Sou... > third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp:214: > observer->didDispatchEvent(thread()->isForciblyTerminated()); > On 2017/03/21 05:44:27, yiyix wrote: > > On 2017/03/21 04:27:37, falken wrote: > > > Note for future reference: we could probably revisit whether we need this > > check > > > as well, but it doesn't need to be in this patch. > > > > Would it be preferable to add a TODO? > > Hm, I think it's OK without it. The code will probably be like this for a while. Updated the description. Sorry about it.
The CQ bit was checked by yiyix@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 160001, "attempt_start_ts": 1490075706912720,
"parent_rev": "aaf64ecd8fdbdf8e35f6c7bfe5706df02b777a62", "commit_rev":
"a626eb843a373043835437074f4c7de51baf00f4"}
Message was sent while issue was closed.
Description was changed from ========== Fix oninstall-script tests for service worker According to the spec and the WPT test, an exception occurring during oninstall should not cause installation to fail. This change makes the test pass. Note that this checks removal may affect the behavior of all ExtendableEvents; however it is expected to be fine as explained in the bug. BUG=685531 ========== to ========== Fix oninstall-script tests for service worker According to the spec and the WPT test, an exception occurring during oninstall should not cause installation to fail. This change makes the test pass. Note that this checks removal may affect the behavior of all ExtendableEvents; however it is expected to be fine as explained in the bug. BUG=685531 Review-Url: https://codereview.chromium.org/2734783002 Cr-Commit-Position: refs/heads/master@{#458339} Committed: https://chromium.googlesource.com/chromium/src/+/a626eb843a373043835437074f4c... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:160001) as https://chromium.googlesource.com/chromium/src/+/a626eb843a373043835437074f4c... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
