• Jocelyn Turcotte's avatar
    Base load signals on Blink loader events · f06cb10c
    Jocelyn Turcotte authored
    
    This mainly remove the use of the LoadingStateChanged callback, which
    is tied to DidStartLoading and DidStopLoading.
    Those signals are handled from the browser process side, also wrapping
    the time where the render process is initialized. We can't rely on
    those signals for loadStarted, but afterward rely on the Blink loader
    for loadFinished. We must use the same source for both.
    
    Instead only rely on Blink callbacks ultimately related to network
    events. This gives us a behavior closer to QtWebKit.
    
    The major compromise that this forces us to to accept is that
    loadStarted is now triggered asynchronously. This will basically break
    anything expecting loadStarted to be emitted synchronously from the
    load method.
    
    This also adjust autotests to get a few more passing.
    
    Initial-patch-by: default avatarPierre Rossi <pierre.rossi@digia.com>
    Change-Id: Ib6c0170df891d1b7f8ed4dc1d483985523e267dc
    Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
    Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
    f06cb10c