Bug 126948

Summary: AX: FrameSelection::notifyAccessibilityForSelectionChange() calling UAZoomChangeFocus with incorrect rectangle coordinates
Product: WebKit Reporter: Susumu Harada <sharada>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.9   

Description Susumu Harada 2014-01-13 17:10:49 PST
* SUMMARY

In FrameSelectionMac.mm, FrameSelection::notifyAccessibilityForSelectionChange() seems to be calling UAZoomChangeFocus with incorrect rectangle coordinates.

* STEPS TO REPRODUCE

1. Enable zoom and zoom in.
2. Open Safari and size the window so that it is not full screen.
3. In the Safari address bar, type a letter (e.g., "w") that causes the suggestion dropdown to populate.
4. Type additional letters, until the size of the suggestion dropdown updates and changes size.
5. FrameSelection::notifyAccessibilityForSelectionChange should be called when the suggestion dropdown updates and changes size.
6. Monitor the value of cgViewRect and cgCaretRect when #5 happens.

* RESULT

The cgViewRect size seems to match the content view area size, but its position is pegged to the lower-left of the screen.
The position of cgCaretRect also seems to be pegged to the lower-left of the screen.
Comment 1 Radar WebKit Bug Importer 2014-02-07 11:56:33 PST
<rdar://problem/16014354>