Bug 129394 - Cancel load when image exceeds Settings::maximumDecodedSize()
Summary: Cancel load when image exceeds Settings::maximumDecodedSize()
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Daniel Bates
Depends on:
Reported: 2014-02-26 14:25 PST by Daniel Bates
Modified: 2014-04-02 14:10 PDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.