Bug 150048 - [iOS] Avoid crash due to invalid screen bounds
Summary: [iOS] Avoid crash due to invalid screen bounds
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-10-12 14:08 PDT by Brent Fulgham
Modified: 2015-10-13 09:54 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.66 KB, patch)
2015-10-12 14:11 PDT, Brent Fulgham
jer.noble: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
<rdar://problem/22112664>
Comment 2 Brent Fulgham 2015-10-12 14:11:37 PDT
Created attachment 262921 [details]
Patch
Comment 3 Brent Fulgham 2015-10-13 09:54:48 PDT
Committed r190992: <http://trac.webkit.org/changeset/190992>