Chrome Version : 70.0.3534.4
OS Version: Chrome
Gallery should use ImageLoader more, but its API is not clean.
For example:
- server-side, orientation is not part of the cache key
- a null timestamp disables caching server-side, but disables *expiration* client-side
- tasks that do not pass opt_isValid are never removed from the pending task map on the client
- cancel messages for a task can be sent multiple times
- Large parts of the API are undocumented (e.g. `crop`)
- ImageLoaderClient.prototype.handleMessage_ is dead code
- Many Closure annotations use "{Object}" which effectively disables type checking
This affects thumbnail loading in the Files App as well as Gallery. (Gallery currently only uses ImageLoader to load RAW /Piex images).
Comment 1 by tapted@chromium.org
, Sep 3