Bug 57182 - implement onerror events for <link rel=prefetch>
Summary: implement onerror events for <link rel=prefetch>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-27 07:09 PDT by Gavin Peters
Modified: 2011-03-29 02:06 PDT (History)
4 users (show)

See Also:


Attachments
Patch (12.46 KB, patch)
2011-03-27 07:15 PDT, Gavin Peters
no flags Details | Formatted Diff | Diff
Patch (13.29 KB, patch)
2011-03-28 13:18 PDT, Gavin Peters
no flags Details | Formatted Diff | Diff
Patch (13.41 KB, patch)
2011-03-28 13:20 PDT, Gavin Peters
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Peters 2011-03-27 07:09:15 PDT
See Bug 50187 for the implementation of onload events for prefetch, this CL adds onerror support.
Comment 1 Gavin Peters 2011-03-27 07:15:46 PDT
Created attachment 87068 [details]
Patch
Comment 2 Adam Barth 2011-03-27 13:15:12 PDT
Comment on attachment 87068 [details]
Patch

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

> Source/WebCore/ChangeLog:22
> +        * html/HTMLLinkElement.cpp:
> +        (WebCore::HTMLLinkElement::parseMappedAttribute):
> +        (WebCore::HTMLLinkElement::onloadTimerFired):
> +        (WebCore::HTMLLinkElement::notifyFinished):
> +        * loader/cache/CachedImage.cpp:
> +        * loader/cache/CachedImage.h:
> +        * loader/cache/CachedResource.cpp:
> +        (WebCore::CachedResource::checkNotify):
> +        (WebCore::CachedResource::data):
> +        (WebCore::CachedResource::error):
> +        * loader/cache/CachedResource.h:
> +        * loader/cache/CachedScript.cpp:
> +        * loader/cache/CachedScript.h:

You should explain why you're making changes to all these different files.  This ChangeLog is calling out for information.  Also, I feel like this patch is the result of a long discussion.  It might be helpful to include some of the reasons why we're making this change in the ChangeLog.  You don't need to write a whole book, but something more than just empty boilerplate is probably a good idea.
Comment 3 Tony Gentilcore 2011-03-28 09:51:17 PDT
> You should explain why you're making changes to all these different files.  This ChangeLog is calling out for information.  Also, I feel like this patch is the result of a long discussion.  It might be helpful to include some of the reasons why we're making this change in the ChangeLog.  You don't need to write a whole book, but something more than just empty boilerplate is probably a good idea.

Patch looks good to me barring Adam's comment about improving the ChangeLog. This is all specced, so you may also want to link there:
http://dev.w3.org/html5/spec/Overview.html#the-link-element
Comment 4 Gavin Peters 2011-03-28 13:18:09 PDT
Created attachment 87187 [details]
Patch
Comment 5 Gavin Peters 2011-03-28 13:20:04 PDT
Created attachment 87188 [details]
Patch
Comment 6 Gavin Peters 2011-03-28 13:20:25 PDT
Thanks for the reviews.  I've significantly filled out the ChangeLog.
Comment 7 Tony Gentilcore 2011-03-28 13:49:30 PDT
Comment on attachment 87188 [details]
Patch

Thanks for the patch.
Comment 8 WebKit Commit Bot 2011-03-29 02:02:47 PDT
The commit-queue encountered the following flaky tests while processing attachment 87188 [details]:

http/tests/websocket/tests/multiple-connections.html bug 53825 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.
Comment 9 WebKit Commit Bot 2011-03-29 02:06:46 PDT
Comment on attachment 87188 [details]
Patch

Clearing flags on attachment: 87188

Committed r82217: <http://trac.webkit.org/changeset/82217>
Comment 10 WebKit Commit Bot 2011-03-29 02:06:50 PDT
All reviewed patches have been landed.  Closing bug.