movableink / webkit

Unofficial mirror of the WebKit SVN repository
http://www.webkit.org/
59 stars 11 forks source link

Asset events #1

Closed mnutt closed 6 years ago

mnutt commented 6 years ago

This adds a new set of signals, produced by webkit's ImageLoader, that fires when an asset begins loading and when it finishes.

This is used because ImageLoader side-steps QNetworkAccessManager when there is a concurrent request in progress for the same asset, causing issues with us being able to calculate in-flight. By hooking up the assetStarted and assetFinished signals, we can keep a second inFlightRequests list to see if that particular image is loading at a given time.