Replies: 1 comment 7 replies
-
What version are you using?
Each frame will have a V8Context, so using Address is always likely to be problematic. You can get the URL for the frame. http://cefsharp.github.io/api/95.7.x/html/P_CefSharp_IFrame_Url.htm Address is also updated asynchronously, when the property is updated may differ between chromium versions. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're using IRenderProcessMessageHandler.OnContextCreated(...) to inject a JavaScript API in our software: https://github.com/SafeExamBrowser/seb-win-refactoring/blob/master/SafeExamBrowser.Browser/Handlers/RenderProcessMessageHandler.cs#L33. We have now found out that on redirects,
webBrowser.Address
does not provide the correct URL of the redirected page, but rather the URL of the previous page from which one has been redirected (see SafeExamBrowser/seb-win-refactoring#84 (comment) for more details).Is there some other API that should be used to inject JavaScript on redirects, or could it be that this is a bug in the API?
Beta Was this translation helpful? Give feedback.
All reactions