Bug 150048

Summary: [iOS] Avoid crash due to invalid screen bounds
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: MediaAssignee: Brent Fulgham <bfulgham>
Severity: Normal CC: bfulgham, jer.noble, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: All   
Description Flags
Patch jer.noble: review+

Description Brent Fulgham 2015-10-12 14:08:59 PDT
Certain sites or media players modify layout settings such that a divide-by-zero error is encountered while computing the bounds that the video element should use for playback. When this happens, iOS throws an exception and kills the process.

Instead, we should recognize when this has happened and use a reasonable set of bounds to display the video.
Comment 1 Brent Fulgham 2015-10-12 14:09:25 PDT
Comment 2 Brent Fulgham 2015-10-12 14:11:37 PDT
Created attachment 262921 [details]
Comment 3 Brent Fulgham 2015-10-13 09:54:48 PDT
Committed r190992: <http://trac.webkit.org/changeset/190992>