Bug 126113

Summary: [CSSRegions] Crash when trying to select content from invalid region
Product: WebKit Reporter: Mihnea Ovidenie <mihnea>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan, WebkitBugTracker
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312    
Attachments:
Description Flags
Patch none

Description Mihnea Ovidenie 2013-12-20 23:30:55 PST
After fix for https://bugs.webkit.org/show_bug.cgi?id=120769, positionForPoint for a region attempt to use the associated named flow to perform its task. However, this should happen only when the region is valid. If the region is invalid, part of a region chain, positionForPoint should behave as usual for a block, otherwise it may run into an infinite loop, which eventually leads to a crash.
Comment 1 Mihnea Ovidenie 2013-12-20 23:41:54 PST
Created attachment 219840 [details]
Patch
Comment 2 Andreas Kling 2013-12-22 09:45:05 PST
Comment on attachment 219840 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2013-12-22 10:12:18 PST
Comment on attachment 219840 [details]
Patch

Clearing flags on attachment: 219840

Committed r160979: <http://trac.webkit.org/changeset/160979>
Comment 4 WebKit Commit Bot 2013-12-22 10:12:20 PST
All reviewed patches have been landed.  Closing bug.