Fix tst_QWebEngineFrame::baseUrl

Update tests to check that we can keep the same functionality by
querying document.baseURI through runJavaScript instead of implementing
QWebEnginePage::baseUrl.

This also removes QWebEnginePage::baseUrl from the header.

Change-Id: I549e57d3986e22986438f8a23e469bbd220633b7
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Implement QWebEnginePage::requestedUrl

Change-Id: I6accd8fd40ad72041770439aa6a7aa59ba904418
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Add the Sync suffix to testing sync wrapper

Change-Id: I0c6594a9758edc97f658717388c20f9e79be0f70
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Fix tst_QWebEngineFrame::setUrlWithFragment

The query string and the fragment are part of the path.
Make sure that they aren't used for the file lookup.

Change-Id: I7adfe913a56b1292e7444de18b2dbe332bd4657a
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Avoid an extra loadStarted/Finished on error

Chromium currently triggers the load of an error page synchronously
from the render process when it encounters a load failure.

This has the nasty effect of producing extra loadStarted and
loadFinished signals, the later also emitted as a successful load.

Disable error pages loading until we can implement the error page
extension properly.

Change-Id: Id6aebc6f63bd810b37d89e9297c0b221e8b81448
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Make QWebEnginePage support symetrical url and setUrl

Unlike load, the value passed to setUrl should be returned by url
until the url is updated by the page (load finished or url changed).

Change-Id: Ica80941754fcf57d68071123daa28f5ddd1359fe
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Fix flakiness in tests related to load signals being received while spinning the event loop

Since our sync wrappers spin an event loop, tests that assuming
that load signals would only be triggered in the next waitForSignal
can fail.

Replace ::waitForSignal calls with QTRY_COMPARE/VERIFY on the
QSignalSpy::count() instead to support the case where the signal
was already emitted before starting the wait.

Change-Id: I18246dc643a5280ebfd0b5099af10b10cf6845fe
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Adjust some widget auto test expectations

More need to be adjusted, but this is a first step.

Also move the QSKIP form tst_QWebEngineFrame::loadInSignalHandlers
to its _data method to avoid seeing the skip message for every entry.

Change-Id: If8d17fd992cb12a4a35cf036f80431e0cab3bb2f
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>