New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 801588 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 4
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task



Sign in to add a comment

Prerender doesn't trigger an onload event

Project Member Reported by y...@yoav.ws, Jan 12 2018

Issue description

Chrome 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.

 
Components: Blink>Loader

Comment 2 by kinuko@chromium.org, Jun 26 2018

Labels: Needs-Feedback
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?
Labels: -Type-Bug Type-Task
Owner: yoavweiss@chromium.org
Status: Assigned (was: Untriaged)
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.
Status: WontFix (was: Assigned)
with nostate-prefetch the expectation is that onload won't fire in webcontents behind link rel=prerender
We probably want to have that expectation backed by the spec.
That probably falls under https://github.com/w3c/resource-hints/issues/63

Sign in to add a comment