Bug 51163

Summary: Settings::editingBehaviorType() incorrectly returns mac for the gtk build when running tests
Product: WebKit Reporter: Benjamin (Ben) Kalman <kalman>
Component: Tools / TestsAssignee: Antonio Gomes <tonikitoo>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, mrobinson, rniwa, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 49873, 51261    
Attachments:
Description Flags
patch v1 (committed r74269, r=mrobinson) none

Description Benjamin (Ben) Kalman 2010-12-15 21:04:45 PST
As in summary, Settings::editingBehaviorType() incorrectly returns mac (EditingMacBehavior) for gtk *when running tests*.  When running the gtk launcher (i.e. *not* in a test), it correctly returns unix (EditingUnixBehavior).

This is causing a confusing discrepancy in reported test results versus actual behavior, in at least editing/selection/extend-selection-home-end.html.  Note how the mac and gtk results are the same, when actually the gtk results should the same as the win ones (and this is caused by the check in SelectionController::positionForPlatform).
Comment 2 Antonio Gomes 2010-12-16 06:23:13 PST
I will look at this today.
Comment 3 Antonio Gomes 2010-12-16 19:24:41 PST
Created attachment 76841 [details]
patch v1 (committed r74269, r=mrobinson)

1) Make GTK+ reset its editing behavior to UNIX (default) instead of Mac in DumpRenderTree::resetDefaultsToConsistentValues
2) Removes gtk and win expectation files for editing/selection/extend-selection-home-end.html since they are equal to the cross platform result.
Comment 4 Ryosuke Niwa 2010-12-16 19:32:21 PST
Comment on attachment 76841 [details]
patch v1 (committed r74269, r=mrobinson)

LGTM.  Thanks for fixing this bug :)
Comment 5 Antonio Gomes 2010-12-17 08:19:36 PST
Comment on attachment 76841 [details]
patch v1 (committed r74269, r=mrobinson)

Clearing flags on attachment: 76841

Committed r74269: <http://trac.webkit.org/changeset/74269>
Comment 6 WebKit Review Bot 2010-12-17 08:55:44 PST
http://trac.webkit.org/changeset/74269 might have broken GTK Linux 64-bit Debug
Comment 7 Antonio Gomes 2010-12-17 09:14:23 PST
(In reply to comment #6)
> http://trac.webkit.org/changeset/74269 might have broken GTK Linux 64-bit Debug

Fixed in http://trac.webkit.org/changeset/74273 with the test rebasilined, and filed bug 51261 for the proper fix.