Bug 160552

Summary: Remove testRunner.handleErrorPages()
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: commit-queue, dbates, lforschler, tonikitoo
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Jonathan Bedard 2016-08-04 09:09:14 PDT
Fast/history/back-forward-reset-after-error-handling.html calls handleErrorPages(), which was not supported by DumpRenderTree and is not supported by TestRunner.  Given that this test was added for QT support, it should be removed.
Comment 1 Jonathan Bedard 2016-08-04 09:20:32 PDT
Created attachment 285331 [details]
Patch
Comment 2 Daniel Bates 2016-08-04 17:34:16 PDT
(In reply to comment #0)
> Fast/history/back-forward-reset-after-error-handling.html calls
> handleErrorPages(), which was not supported by DumpRenderTree and is not
> supported by TestRunner.  Given that this test was added for QT support, it
> should be removed.

This description is disingenuous. This test LayoutTests/fast/history/back-forward-reset-after-error-handling.html was added for all ports that implemented testRunner.handleErrorPages(). As it turns out testRunner.handleErrorPages() was only implemented on the Qt WebKit port.

For completeness, the motivation for adding testRunner.handleErrorPages() is described in bug #31509, comment 0. And the bug #31555 was filed to implement this feature for Mac though it was resolved as WONTFIX on 05/01/2012.
Comment 3 Daniel Bates 2016-08-04 17:44:09 PDT
Comment on attachment 285331 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285331&action=review

The motivation for this change seems reasonable. We need to also update file LayoutTests/platform/ios-simulator/TestExpectations. Also we should update the ChangeLog entry such that it list the files modified in this patch as well as clarify the description as per my remarks above.

> LayoutTests/ChangeLog:10
> +
> +        Removed fast/history/back-forward-reset-after-error-handling.html and all
> +        references since handleErrorPages() was never supported in TestRunners
> +

How are you generating this ChangeLog entry? Please use prepare-ChangeLog to generate the ChangeLog message.

It is disingenuous to write "was never supported in TestRunners". We should explain that window.testRunner.handleErrorPages() was only implement for the Qt WebKit port and that there has not been interest to implement this feature in any other port in the over 7 years since this feature was added.
Comment 4 Jonathan Bedard 2016-08-05 10:29:10 PDT
Created attachment 285431 [details]
Patch
Comment 5 Jonathan Bedard 2016-08-05 10:56:24 PDT
I think the format/comments on this patch should be better.
Comment 6 Daniel Bates 2016-08-05 11:03:26 PDT
Comment on attachment 285431 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285431&action=review

> LayoutTests/ChangeLog:3
> +        handleErrorPages() is not supported by TestRunner, remove dependent test

Please update the title in the ChangeLog to match the Bugzilla title.

> LayoutTests/ChangeLog:16
> +        * platform/gtk/TestExpectations: Dito.

Dito => Ditto.

> LayoutTests/ChangeLog:17
> +        * platform/ios-simulator/TestExpectations: Dito.

Ditto.

> LayoutTests/ChangeLog:18
> +        * platform/mac/TestExpectations: Dito.

Ditto.

> LayoutTests/ChangeLog:19
> +        * platform/win/TestExpectations: Dito.

Ditto.
Comment 7 Jonathan Bedard 2016-08-05 11:53:23 PDT
Created attachment 285440 [details]
Patch
Comment 8 WebKit Commit Bot 2016-08-05 13:28:56 PDT
Comment on attachment 285440 [details]
Patch

Clearing flags on attachment: 285440

Committed r204191: <http://trac.webkit.org/changeset/204191>
Comment 9 WebKit Commit Bot 2016-08-05 13:29:00 PDT
All reviewed patches have been landed.  Closing bug.