Prerender doesn't trigger an onload event |
||||
Issue descriptionChrome Version: M65 OS: MacOS What steps will reproduce the problem? (1) http://jsbin.com/madevixafe/1/edit?html,console,output What is the expected result? onload should fire What happens instead? It doesn't :/ I looked into the issue a bit and it seems to be divided into two distinct problems: 1) PrerenderDispatcher::OnPrerenderStopLoading doesn't fire, which means that Prerender::DidSendLoadForPrerender doesn't fire, and yada yada yada... HTMLLinkElement::DidSendLoadForLinkPrerender doesn't fire. 2) If HTMLLinkElement::DidSendLoadForLinkPrerender would fire, it would trigger the `webkitprerenderload` event that is not defined anywhere, no one knows about, and that we should kill with fire (pun not intended) I suspect 1) is related to NoStatePrefetch. 2) is just platform debt we should deal with.
,
Jun 26 2018
I suspect this is working as intended at least from impl pov. Today the UA basically prefetches resources (via NoStatePrefetch) for the page that is asked to prerender, therefore the necessary resources are to be fetched but they don't really fire back on the Blink. Reading the resource-hints spec it's not too clear if it should fire onload events, it just says UA SHOULD fetch and execute, but MAY abandon the prerendering for some reasons. Yoav, what do you think?
,
Dec 4
loading triage: assign to yoav. Change the type from bug to task since this may not be a bug, but something we can define expected behavior, possibly in the spec.
,
Dec 4
with nostate-prefetch the expectation is that onload won't fire in webcontents behind link rel=prerender
,
Dec 13
We probably want to have that expectation backed by the spec.
,
Dec 13
That probably falls under https://github.com/w3c/resource-hints/issues/63 |
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Jan 16 2018