Bug 128809

Summary: [CSS Regions] ASSERT when hovering over region
Product: WebKit Reporter: Andrei Bucur <abucur>
Component: WebCore Misc.Assignee: Andrei Bucur <abucur>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan, stavila, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312    
Attachments:
Description Flags
Hover over the second region to trigger a crash
none
Patch none

Andrei Bucur
Reported 2014-02-14 05:08:27 PST
Created attachment 224202 [details] Hover over the second region to trigger a crash There are cases when the hit-testing code asserts when hovering a region. This happens because we call borderBoxRectInRegion for a box with a region range that doesn't contain the target region. A good fix would be to make hit-testing rejection first based on the range of the box. It doesn't make sense to have a hit on a box in a region where that box doesn't actually appear.
Attachments
Hover over the second region to trigger a crash (1.99 KB, text/html)
2014-02-14 05:08 PST, Andrei Bucur
no flags
Patch (5.82 KB, patch)
2014-05-02 08:49 PDT, Andrei Bucur
no flags
Radu Stavila
Comment 1 2014-03-20 06:01:50 PDT
This problem also happens for existing test LayoutTests/fast/regions/scrollable-paragraph-unsplittable.html
Andrei Bucur
Comment 2 2014-05-02 08:49:57 PDT
Mihnea Ovidenie
Comment 3 2014-05-04 22:33:58 PDT
Comment on attachment 230665 [details] Patch r=me
WebKit Commit Bot
Comment 4 2014-05-05 01:01:42 PDT
Comment on attachment 230665 [details] Patch Clearing flags on attachment: 230665 Committed r168263: <http://trac.webkit.org/changeset/168263>
WebKit Commit Bot
Comment 5 2014-05-05 01:01:45 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.