[Webkit-unassigned] [Bug 51941] refactor HTMLLinkElement to allow Link header implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 7 12:41:19 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=51941





--- Comment #24 from Alexey Proskuryakov <ap at webkit.org>  2011-01-07 12:41:18 PST ---
Link prefetch doesn't parse a style sheet, or load stylesheets that it imports, so a CSSStyleSheet makes no sense in LinkLoader.

Bug 51940 is about the less controversial parts of Link header field, and rel=stylesheet is definitely not one of those.

> I brought this up in WebKit-dev, and the suggestions came back to try to keep as much code in common as possible between the two paths

Yes, that makes good sense. What are the common parts between the two forms of link prefetch?

Firing beforeload is probably one of those, but it means that loads initiated from HTTP headers need to be delayed until after a beforeload handler has a chance to be installed. Is that something that's going to be implemented?

On the other hand, linkLoaded() and linkError() seem unclear. What's the use for those for a prefetch load initialed from an HTTP header? HTMLLinkElement::linkLoaded() only dispatches an event, but there is no target to dispatch this event for an HTTP header field.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list