[Webkit-unassigned] [Bug 116670] Fix loader/go-back-cached-main-resource.html test

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 24 03:44:06 PDT 2013


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





--- Comment #5 from Manuel Rego Casasnovas <rego at igalia.com>  2013-05-24 03:42:36 PST ---
(In reply to comment #2)
> (From update of attachment 202708 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=202708&action=review
> 
> Getting rid of the timeout is a very welcome improvement, so r=me. Please consider the suggestion below.

Thanks for the review.

> > LayoutTests/loader/resources/first-page.html:21
> > +<body onpageshow="registerListeners();">
> 
> This is quite misleading. We only need to register listeners on first load, they are already present when restoring from cache. But the function does more than its name says, which is why it's necessary to call it every time!
> 
> One way to clean this up would be to rename the function to "didShowPage", and use event.persisted property to check if we are handling the initial load. Or just use an anonymous function, and register it as window.onpageshow = function (event) { ... }

Thanks for the information, I've changed the test in a new bug #116709 in order to register listeners only on initial load.

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