I have this code:
And get this output:
Depending on page I'm loading I get multiple PageFinished and OverrideUrl events to be raised.
This is completely different behavior from Android WebView.
It's this behavior supposed to be like this?
B4X:
Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private WebV As WKWebView
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.LoadLayout("p1")
NavControl.ShowPage(Page1)
WebV.LoadUrl("http://mashable.com/")
End Sub
Sub WebV_OverrideUrl (Url As String) As Boolean
Log("Loading: " & Url)
Return False
End Sub
Sub WebV_PageFinished (Success As Boolean, Url As String)
Log("Finished: " & Url)
End Sub
And get this output:
Application_Start
Application_Active
Loading: http://mashable.com/
Loading: about:blank
Loading: about:blank
Loading: about:blank
Loading: about:blank
Loading: about:blank
Loading: http://staticxx.facebook.com/connec...nel=f276e3694ad86c&origin=http://mashable.com
Loading: https://staticxx.facebook.com/conne...nel=f276e3694ad86c&origin=http://mashable.com
Loading: http://tpc.googlesyndication.com/safeframe/1-0-15/html/container.html
Loading: about:srcdoc
Loading: http://aax-eu.amazon-adsystem.com/s/iu3?cm3ppd=1&d=dtb-pub&csif=t&dl=brt_sovrn
Loading: about:srcdoc
Loading: http://aax-eu.amazon-adsystem.com/s/iu3?cm3ppd=1&d=dtb-pub&csif=t&dl=brt_sovrn&dcc=t
Loading: about:srcdoc
Loading: about:srcdoc
Loading: http://tpc.googlesyndication.com/safeframe/1-0-15/html/container.html
Loading: about:blank
Loading: https://googleads.g.doubleclick.net/pagead/drt/s?v=r20120211
Loading: about:blank
Loading: https://googleads.g.doubleclick.net/pagead/html/r20180116/r20180119/zrt_lookup.html#
Loading: about:blank
Loading: about:blank
Loading: about:blank
Loading: https://googleads.g.doubleclick.net...&abl=NS&ppjl=f&pfx=0&fu=20&bc=1&ifi=1&dtd=677
Loading: http://tpc.googlesyndication.com/safeframe/1-0-15/html/container.html
Loading: about:blank
Loading: about:blank
Finished: http://mashable.com/
Loading: https://www.facebook.com/connect/pi...ponse_type=token,signed_request,code&sdk=joey
Loading: https://www.lightboxcdn.com/lclst/3...7877bda309d&se=0&prev=0&cb=636470452994498572
Loading: http://staticxx.facebook.com/connec...e3694ad86c&relation=parent&error=unknown_user
Loading: https://www.google.com/pagead/drt/ui
Loading: https://googleads.g.doubleclick.net/pagead/drt/si
Depending on page I'm loading I get multiple PageFinished and OverrideUrl events to be raised.
This is completely different behavior from Android WebView.
It's this behavior supposed to be like this?