Closed amol-virnodkar-infosys closed 1 week ago
Note: The source code of http://mvt.onemw.net/test-materials/sandbox/navigation_test.html consists of changeLocation() function which is called every 10ms.
<html>
<head>
<script>
let i = 0;
function changeLocation() {
i += 1
window.location.href = "#" + i;
setTimeout(changeLocation, 10)
}
changeLocation()
</script>
</head>
<body>
Navigation test
</body>
</html>
I am able to reproduce the problem on RPi3 with wpe-2.38 and wpe-2.42 with WPEFramework. I use a local version of the test site with the same content as it is in http://mvt.onemw.net/test-materials/sandbox/navigation_test.html. Steps to reproduce:
After step 4 there is no possibility to switch to other site like https://www.igalia.com in step 5. It is not possible also with webinspector and window.location.href="https://www.igalia.com"
I am investigating the reason of that and possible solution.
Does this reproduce if the env var WPE_KEEP_NAVIGATION_ON_FRAGMENT_LOAD=1 is defined?. I think commit https://github.com/WebPlatformForEmbedded/WPEWebKit/commit/525d2d60d8387773a023f7ae67c74c3b06430457 was added precisely to fix this problem.
It fixes partially the problem. But even then I can reproduce the problem with lower probability - still checking this.
I tried setting the environment variable WPE_KEEP_NAVIGATION_ON_FRAGMENT_LOAD=1 and retested. With this change, there is some improvement seen but the issue was reproducible 5/10 times.
The issue I reported also in upstream and I am working on the fix: https://bugs.webkit.org/show_bug.cgi?id=274745
Hi @amol-virnodkar-infosys , can you check my patch from: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1354 and verify it works for you and that there are no regressions? thanks
Please remember to set WPE_KEEP_NAVIGATION_ON_FRAGMENT_LOAD=1.
Hi @pgorszkowski-igalia,
We tested this patch: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1354 with env. variable WPE_KEEP_NAVIGATION_ON_FRAGMENT_LOAD=1 and this issue is not reproducible. There are no regressions seen due to this patch as well. Thanks.
Hi @amol-virnodkar-infosys, thanks for the feedback. In that case we will merge PR https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1354.
The fix is merged so we can close the ticket.
The Set URL fails on RPI4 Model B device
Test steps
Ideally after step 6, the current Browser URL should be set to https://widgets.metrological.com/lightning/liberty/2e3c4fc22f0d35e3eb7fdb47eb7d4658#app:com.metrological.app.CNN but the curl command in step 7 is returning the URL as http://mvt.onemw.net/test-materials/sandbox/navigation_test.html#7372
Note RDK6 comes with WPE 2.38 and we have used RDK6 image on RPI4 device. This issue is observed using the RDK6 image.