|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by hiroshige Modified:
4 years ago Reviewers:
yhirano CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDo not notify ResourceClient/ImageResourceObserver of finish twice
Previously, for a multipart image,
- ResourceClient::notifyFinished() and
- ImageResourceObserver::imageNotifyFinished()
might be called twice:
1. When the first part is loaded, and
2. When the whole loading is finished.
This CL removes the second case to make callback/observer control consistent
and simpler, as preparation for https://codereview.chromium.org/2469873002/.
Behavior change:
Previously, multipart images are replaced with broken images when cancelled
after the first part is loaded.
After this CL, multipart images remains as-is in such cases.
https://codereview.chromium.org/1840933002 fixes layout tests for this change.
BUG=668598
Committed: https://crrev.com/18a8d7074c9f0c8e2c3fff36b3a021cdd3a06477
Cr-Commit-Position: refs/heads/master@{#434952}
Patch Set 1 #Patch Set 2 : comments #Patch Set 3 : Rebase #Patch Set 4 : Rebase #Patch Set 5 : Rebase #Patch Set 6 : Rebase #Patch Set 7 : Rebase #
Total comments: 2
Patch Set 8 : Rebase #Patch Set 9 : Rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 49 (42 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 ========== Do not notify ResourceClient/ImageResourceObserver of finish twice BUG= ========== to ========== Do not notify ResourceClient/ImageResourceObserver of finish twice BUG= ==========
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_...)
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...
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...
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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...)
Description was changed from ========== Do not notify ResourceClient/ImageResourceObserver of finish twice BUG= ========== to ========== Do not notify ResourceClient/ImageResourceObserver of finish twice BUG=668598 ==========
hiroshige@chromium.org changed reviewers: + yhirano@chromium.org
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...
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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Do not notify ResourceClient/ImageResourceObserver of finish twice BUG=668598 ========== to ========== Do not notify ResourceClient/ImageResourceObserver of finish twice Previously, for a multipart image, - ResourceClient::notifyFinished() and - ImageResourceObserver::imageNotifyFinished() might be called twice: 1. When the first part is loaded, and 2. When the whole loading is finished. This CL removes the second case to make callback/observer control consistent and simpler, as preparation for https://codereview.chromium.org/2469873002/. Behavior change: Previously, multipart images are replaced with broken images when cancelled after the first part is loaded. After this CL, multipart images remains as-is in such cases. https://codereview.chromium.org/1840933002 fixes layout tests for this change. BUG=668598 ==========
PTAL.
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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/Resource.h (left): https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/Resource.h:342: void notifyClientsInternal(MarkFinishedOption); Is it a good idea to merge this function to checkNotify again?
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...
https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/Resource.h (left): https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/Resource.h:342: void notifyClientsInternal(MarkFinishedOption); On 2016/11/29 02:23:30, yhirano wrote: > Is it a good idea to merge this function to checkNotify again? Done.
lgtm
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...
The CQ bit was unchecked by hiroshige@chromium.org
The CQ bit was checked by hiroshige@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2513413008/#ps160001 (title: "Rebase")
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": 1480415333631360,
"parent_rev": "b0f96ee3006230800fa9fdf88f4b0cacc50559f7", "commit_rev":
"2f622ebcdc4e23c5a555abd95f4a12f6a368ed5b"}
Message was sent while issue was closed.
Description was changed from ========== Do not notify ResourceClient/ImageResourceObserver of finish twice Previously, for a multipart image, - ResourceClient::notifyFinished() and - ImageResourceObserver::imageNotifyFinished() might be called twice: 1. When the first part is loaded, and 2. When the whole loading is finished. This CL removes the second case to make callback/observer control consistent and simpler, as preparation for https://codereview.chromium.org/2469873002/. Behavior change: Previously, multipart images are replaced with broken images when cancelled after the first part is loaded. After this CL, multipart images remains as-is in such cases. https://codereview.chromium.org/1840933002 fixes layout tests for this change. BUG=668598 ========== to ========== Do not notify ResourceClient/ImageResourceObserver of finish twice Previously, for a multipart image, - ResourceClient::notifyFinished() and - ImageResourceObserver::imageNotifyFinished() might be called twice: 1. When the first part is loaded, and 2. When the whole loading is finished. This CL removes the second case to make callback/observer control consistent and simpler, as preparation for https://codereview.chromium.org/2469873002/. Behavior change: Previously, multipart images are replaced with broken images when cancelled after the first part is loaded. After this CL, multipart images remains as-is in such cases. https://codereview.chromium.org/1840933002 fixes layout tests for this change. BUG=668598 ==========
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
Message was sent while issue was closed.
Description was changed from ========== Do not notify ResourceClient/ImageResourceObserver of finish twice Previously, for a multipart image, - ResourceClient::notifyFinished() and - ImageResourceObserver::imageNotifyFinished() might be called twice: 1. When the first part is loaded, and 2. When the whole loading is finished. This CL removes the second case to make callback/observer control consistent and simpler, as preparation for https://codereview.chromium.org/2469873002/. Behavior change: Previously, multipart images are replaced with broken images when cancelled after the first part is loaded. After this CL, multipart images remains as-is in such cases. https://codereview.chromium.org/1840933002 fixes layout tests for this change. BUG=668598 ========== to ========== Do not notify ResourceClient/ImageResourceObserver of finish twice Previously, for a multipart image, - ResourceClient::notifyFinished() and - ImageResourceObserver::imageNotifyFinished() might be called twice: 1. When the first part is loaded, and 2. When the whole loading is finished. This CL removes the second case to make callback/observer control consistent and simpler, as preparation for https://codereview.chromium.org/2469873002/. Behavior change: Previously, multipart images are replaced with broken images when cancelled after the first part is loaded. After this CL, multipart images remains as-is in such cases. https://codereview.chromium.org/1840933002 fixes layout tests for this change. BUG=668598 Committed: https://crrev.com/18a8d7074c9f0c8e2c3fff36b3a021cdd3a06477 Cr-Commit-Position: refs/heads/master@{#434952} ==========
Message was sent while issue was closed.
Patchset 9 (id:??) landed as https://crrev.com/18a8d7074c9f0c8e2c3fff36b3a021cdd3a06477 Cr-Commit-Position: refs/heads/master@{#434952} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
