[webkit-dev] Error handling support in DRT.

Darin Adler darin at apple.com
Fri Nov 6 14:59:20 PST 2009


On Nov 6, 2009, at 10:49 AM, tonikitoo (Antonio Gomes) wrote:

> Hi guys, I have a question about DRT and its current support to handling error pages.
> 
> For a layout test I am working for a bug fix (see bug 30573), it would be great if the DumpRenderTree supports a way to handle "error pages".
> 
> For example, in the end of the hypotactic test execution below (JS snippet), the error page html source would be dumped instead:

WebKit itself does not have error pages. This is a feature of specific browsers: Recent versions of Safari do this, although earlier versions used sheets and alerts instead.

I think it’s reasonable to have a way in DumpRenderTree to indicate somehow in its output if a page load fails and what error code is involved. But I would not recommend using "error pages" as the way to do this. And we’d have to be careful to make this something easy to use cross-platform. Specific error codes are also likely to be platform-specific.

There may be some way to accomplish this in some cases using "onerror" and frames.

We’ve welcomed patches many times in the past that add things to DumpRenderTree that help us test previously untested aspects of the engine.

    -- Darin



More information about the webkit-dev mailing list