View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009377||Multi Theft Auto : San Andreas||CEF||public||2016-09-12 01:02||2016-09-13 22:02|
|Target Version||1.5.3||Fixed in Version||1.5.3|
|Summary||0009377: Unable to navigate to accepted URL from event onClientBrowserNavigate|
If you access-request the blocked URL from inside the event onClientBrowserNavigate and then try to load the URL when it got accepted by the client, then it won't work. Navigating forward or reloading the page doesn't work either.
|Tags||No tags attached.|
Could you please provide some test code?
I was able to reproduce the bug with the following code though:
However, I'm not sure if we're talking about the same bug.
The problem in this code is that requestBrowserDomains calls the callback immediately in case the URL has been whitelisted already. This behavior leads to OnBeforeBrowser and loadBrowserURL being executed infinitely then.
My reduced code looks exactly like that and the result is that the URL in the callback (the blocked URL) didn't load after being accepted.
It doesn't make sense to fix this issue then as loadBrowserURL triggers onClientBrowserNavigate by design.
To fix your code snippet, you can use isBrowserDomainBlocked before calling requestBrowserDomains.