Bug 72873 - Web Inspector: [Regression] Successfully loaded XHRs are shown as canceled.
Summary: Web Inspector: [Regression] Successfully loaded XHRs are shown as canceled.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Vsevolod Vlasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 04:48 PST by Vsevolod Vlasov
Modified: 2011-11-30 13:09 PST (History)
12 users (show)

See Also:


Attachments
Patch (5.17 KB, patch)
2011-11-24 07:56 PST, Vsevolod Vlasov
japhet: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod Vlasov 2011-11-21 04:48:44 PST
Caused by https://bugs.webkit.org/show_bug.cgi?id=71149
Comment 1 Vsevolod Vlasov 2011-11-24 07:56:05 PST
Created attachment 116513 [details]
Patch
Comment 2 Nate Chapin 2011-11-28 08:56:29 PST
Comment on attachment 116513 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=116513&action=review

> Source/WebCore/loader/SubresourceLoader.cpp:114
> +void SubresourceLoader::cancelCachedResourceLoad()
> +{
> +    if (m_state != Initialized)
> +        return;
> +
> +    ResourceLoader::cancel();
> +}

Does it break other things to name this cancel() and override ResourceLoader::cancel() ?
Comment 3 Vsevolod Vlasov 2011-11-30 12:44:23 PST
(In reply to comment #2)
> (From update of attachment 116513 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=116513&action=review
> 
> > Source/WebCore/loader/SubresourceLoader.cpp:114
> > +void SubresourceLoader::cancelCachedResourceLoad()
> > +{
> > +    if (m_state != Initialized)
> > +        return;
> > +
> > +    ResourceLoader::cancel();
> > +}
> 
> Does it break other things to name this cancel() and override ResourceLoader::cancel() ?

Looks like this can break other cancel scenarios, e.g. like here http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/loader/SubresourceLoader.cpp&l=204&type=cs
Comment 4 Nate Chapin 2011-11-30 12:54:54 PST
Comment on attachment 116513 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=116513&action=review

>>> Source/WebCore/loader/SubresourceLoader.cpp:114
>>> +}
>> 
>> Does it break other things to name this cancel() and override ResourceLoader::cancel() ?
> 
> Looks like this can break other cancel scenarios, e.g. like here http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/loader/SubresourceLoader.cpp&l=204&type=cs

Alright, thanks for checking.

I'd slightly prefer a name like "cancelIfNotFinishing", but you can feel free to land without another review so long as it still compiles :)
Comment 5 Vsevolod Vlasov 2011-11-30 13:09:12 PST
Committed r101545: <http://trac.webkit.org/changeset/101545>