|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by hiroshige Modified:
4 years, 2 months ago CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionCancel RawResource asynchronously in allClientsAndObserversRemoved()
allClientsAndObserversRemoved() can be called in subtle situations, e.g. in
prefinalizers, and thus we should avoid non-trivial things, such as Resource
cancelling.
This CL moves the last part of Resource cancelling (RawResource) out of
allClientsAndObserversRemoved().
BUG=606651, 644058
Committed: https://crrev.com/ab98db1717773d19bfae7ff23cac02c57b34ceae
Cr-Commit-Position: refs/heads/master@{#423472}
Patch Set 1 #Patch Set 2 : WebURLLoaderMockFactoryImpl fix #Patch Set 3 : Rebase #
Messages
Total messages: 38 (22 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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() BUG= ========== to ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() BUG=606651 ==========
hiroshige@chromium.org changed reviewers: + japhet@chromium.org
PTAL.
Description was changed from ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() BUG=606651 ========== to ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() BUG=606651, 644058 ==========
hiroshige@chromium.org changed reviewers: + yhirano@chromium.org
On 2016/09/15 08:12:07, hiroshige wrote: Can you add some more motivation / background to the description? I cannot access to issue 606651.
Description was changed from ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() BUG=606651, 644058 ========== to ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() allClientsAndObserversRemoved() can be called in subtle situations, e.g. in prefinalizers, and thus we should avoid non-trivial things, such as Resource cancelling. This CL moves the last part of Resource cancelling (RawResource) out of allClientsAndObserversRemoved(). BUG=606651, 644058 ==========
On 2016/09/15 08:15:43, yhirano (slow) wrote: > On 2016/09/15 08:12:07, hiroshige wrote: > > Can you add some more motivation / background to the description? > I cannot access to issue 606651. CC'ed you on issue 606651. (RawResource cancelling is now not directly related to Issue 606651 though)
lgtm
lgtm
The CQ bit was checked by hiroshige@chromium.org
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
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
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.
hiroshige@chromium.org changed reviewers: + mkwst@chromium.org
+mkwst@, could you take a look?
friendly ping :)
LGTM, sorry for the delay!
The CQ bit was checked by hiroshige@chromium.org
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
Failed to apply patch for third_party/WebKit/Source/core/fetch/Resource.cpp:
While running git apply --index -3 -p1;
error: patch failed: third_party/WebKit/Source/core/fetch/Resource.cpp:743
Falling back to three-way merge...
Applied patch to 'third_party/WebKit/Source/core/fetch/Resource.cpp' with
conflicts.
U third_party/WebKit/Source/core/fetch/Resource.cpp
Patch: third_party/WebKit/Source/core/fetch/Resource.cpp
Index: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp
b/third_party/WebKit/Source/core/fetch/Resource.cpp
index
9271ff3424ae4c4d85ef0c0b2bd035d2808f6228..15fdc012c5e4e278e6f5feeaf4fc12dc4f158151
100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -743,9 +743,7 @@ void Resource::allClientsAndObserversRemoved()
{
if (!m_loader)
return;
- if (m_type == Raw)
- cancelTimerFired(&m_cancelTimer);
- else if (!m_cancelTimer.isActive())
+ if (!m_cancelTimer.isActive())
m_cancelTimer.startOneShot(0, BLINK_FROM_HERE);
}
The CQ bit was checked by hiroshige@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from japhet@chromium.org, mkwst@chromium.org, yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2306303003/#ps40001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() allClientsAndObserversRemoved() can be called in subtle situations, e.g. in prefinalizers, and thus we should avoid non-trivial things, such as Resource cancelling. This CL moves the last part of Resource cancelling (RawResource) out of allClientsAndObserversRemoved(). BUG=606651, 644058 ========== to ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() allClientsAndObserversRemoved() can be called in subtle situations, e.g. in prefinalizers, and thus we should avoid non-trivial things, such as Resource cancelling. This CL moves the last part of Resource cancelling (RawResource) out of allClientsAndObserversRemoved(). BUG=606651, 644058 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() allClientsAndObserversRemoved() can be called in subtle situations, e.g. in prefinalizers, and thus we should avoid non-trivial things, such as Resource cancelling. This CL moves the last part of Resource cancelling (RawResource) out of allClientsAndObserversRemoved(). BUG=606651, 644058 ========== to ========== Cancel RawResource asynchronously in allClientsAndObserversRemoved() allClientsAndObserversRemoved() can be called in subtle situations, e.g. in prefinalizers, and thus we should avoid non-trivial things, such as Resource cancelling. This CL moves the last part of Resource cancelling (RawResource) out of allClientsAndObserversRemoved(). BUG=606651, 644058 Committed: https://crrev.com/ab98db1717773d19bfae7ff23cac02c57b34ceae Cr-Commit-Position: refs/heads/master@{#423472} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/ab98db1717773d19bfae7ff23cac02c57b34ceae Cr-Commit-Position: refs/heads/master@{#423472} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
