onLoadingChanged of WebView component should display that it is deprecated

Bug #1542409 reported by costales
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Oxide
Invalid
Undecided
Unassigned

Bug Description

The loadindChanged signal has been deprecated for over a year,
unfortunately it wasn’t made explicit (by means of a warning printed
out on console) until very recently.
The loadingStateChanged signal should be used instead:

 WebView {
  onLoadingStateChanged: console.log("loading value:", loading)
 }

Original bug report:

Please, try the attachment, run with:
qmlscene test.qml

The exit will be:
costales@dev:~
.............
qml: loading value: true
qml: loading value: true
costales@dev:~

There is something wrong, because the onLoadingChanged event (line 5) should be triggered when the page is loaded, then, the "loading" variable should be 'false'.

The bug is that 'loading' is always 'true'.
The problem with this bug is that an aplication (like uNav) can't know
when the webview completed the load.

Thanks in advance!

Revision history for this message
costales (costales) wrote :
costales (costales)
description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote :

loadingChanged is deprecated, you want to use loadingStateChanged.

Changed in oxide:
status: New → Invalid
Revision history for this message
costales (costales) wrote :

Thanks to Olivier: onLoadingChanged should be changed to onLoadingStateChanged |o/

summary: - onLoadingChanged of WebView component never enter when is loaded
+ onLoadingChanged of WebView component should display that it is
+ deprecated
description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote :

@Bartosz: there was no need to update the bug description, the warning has been recently added, so that’s fixed already. See https://bazaar.launchpad.net/~oxide-developers/oxide/oxide.trunk/revision/1315. This will be part of the oxide 1.13 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.