Bug 150048

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

Brent Fulgham
Reported 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.
Attachments
Patch (1.66 KB, patch)
2015-10-12 14:11 PDT, Brent Fulgham
jer.noble: review+
Brent Fulgham
Comment 1 2015-10-12 14:09:25 PDT
Brent Fulgham
Comment 2 2015-10-12 14:11:37 PDT
Brent Fulgham
Comment 3 2015-10-13 09:54:48 PDT
Note You need to log in before you can comment on or make changes to this bug.