Bug 129394

Summary: Cancel load when image exceeds Settings::maximumDecodedSize()
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Page LoadingAssignee: Daniel Bates <dbates>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Daniel Bates 2014-02-26 14:25:40 PST
Currently when an image exceeds Settings::maximumDecodedSize() we continue the load. Instead we should cancel the load for such an image.

Note, we may want to differentiate between an image that is loaded as a sub resource of a page from an image loaded as a document (i.e. navigating to an image resource directly) and have different maximum decoded size limits.
Comment 1 Daniel Bates 2014-02-26 16:29:04 PST
I noticed this bug when analyzing the cause for bug #127029.
Comment 2 Daniel Bates 2014-04-02 14:10:23 PDT
We decided to remove the setting Settings::maximumDecodedSize() and its related logic  in bug #131057 as it has various shortcomings, including the one represented by this bug. Should it turn out that we need such a setting then we should look to implement it again taking care to address this bug among other issues.