[Webkit-unassigned] [Bug 56424] add beforeload to icon and prefetch link rel types

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 28 09:28:29 PDT 2011


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





--- Comment #6 from Tony Gentilcore <tonyg at chromium.org>  2011-03-28 09:28:29 PST ---
> > It would be best to skip implementing a print() method and instead include <script src="../js/resources/js-test-pre.js"></script> and use testPassed()/testFailed(). Ditto in the other tests.
> 
> Done.

Thanks. Is there a new version of the patch?

> > > LayoutTests/platform/chromium-mac/webarchive/test-link-rel-icon-beforeload-expected.txt:1
> > > +CONSOLE MESSAGE: line 8: Uncaught TypeError: Object [object Object] has no method 'dumpDOMAsWebArchive'
> > 
> > It is kind of unfortunate to need a pixel test for this behavior. Is there any particular reason why a webarchive test is needed to test a <link rel=icon> w/ a beforeload?
> 
> I believe so.  The existing link rel=icon test was a webarchive, and that's the only way I could find to confirm the get or not of the icon itself: on the mac platform the webarchive includes the icon, if any, downloaded, so the webarchive provides proof positive that the favicon didn't come down in the beforeload test.  I spent some time today trying to see if I could do it with the DRT.dumpResoruceResponseMIMETYpes() as in the prefetch tests, and that did not work for me.

My main concern is only that it is a pixel test. Would be nice to avoid the platform specific results if possible.

> > Thanks for extracting this logic. This dance is non-obvious and failure to perform it properly has caused several bugs. The same code is in ScriptElement.cpp and might need to be in other places where these extra checks aren't performed. Is it possible to move it up to dispatchBeforeLoadEvent() or have another shared helper method to avoid the duplication? Or perhaps that should be a separate patch?
> 
> I think this belongs in another CL.  I've gone ahead and created Bug 57180 for that.  I'll tackle it soon.

Thanks :)

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