Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser JavaScript history.back() issue Options
Doron Guttman
Posted: Thursday, October 11, 2018 1:17:44 PM
Rank: Member
Groups: Member

Joined: 11/13/2015
Posts: 23
Hello,
We've encountered an issue with the JavaScript history API using EO.WebBrowser v18.1.91.0
I've seen the other post on the matter and it does not seem to be exactly the same.

Here are the steps to reproduce:
1. create a WebView and open it directly to https://www.essentialobjects.com

2. click on Products > EO.WebBrowser for .NET and wait for load

3. execute the following JavaScript via EvalScript:
Code: JavaScript
history.back();

expected result: navigates back to home page
actual result: nothing happens

4. click on Products > EO.Wpf for .NET and wait for load

5. execute the following JavaScript via EvalScript:
Code: JavaScript
history.back();

expected result: navigates back to EO.WebBrowser for .NET
actual results: navigates back to EO.WebBrowser for .NET

6. execute the following JavaScript via EvalScript:
Code: JavaScript
history.back();

expected result: navigates back to home page
actual result: navigates back to home page

I checked with Chrome and it behaves as expected.
eo_support
Posted: Friday, October 12, 2018 8:09:31 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,821
Hi,

We have looked into this issue with our TabbedBrowser sample application and it appears to be working fine. The key for an entry to be considered "history" is after it has finished loading. So the most likely reason that history.back() did not work as expected for you is when the current page did not finish loading entirely. So if you wait long enough on step 2, step 3 would work. However if step 2 has not truely finished, then history.back() won't work on step 3 because there is no history to go back to at this poitn yet.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.