mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: WebBrowserComponent: Fix state handling when the component is invisible
The handling of two state variables had to be adjusted. One is responsible for signalling that we navigated to a blank page due to the WebBrowserComponent becoming invisible. The other variable in the WebView2 implementation stores the URL that we should be navigating to once the WebView2 instance has been created. Prior to this commit navigating to the URL requested by goToURL could fail for two reasons: either because it was called before the underlying WebView2 instance was created, or because the WebBrowserComponent was not yet visible.
This commit is contained in:
parent
c1ae3ab7ae
commit
a34bd74133
2 changed files with 3 additions and 3 deletions
|
|
@ -644,9 +644,9 @@ void WebBrowserComponent::goToURL (const String& url,
|
|||
else
|
||||
lastPostData.reset();
|
||||
|
||||
blankPageShown = false;
|
||||
|
||||
impl->goToURL (url, headers, postData);
|
||||
|
||||
blankPageShown = false;
|
||||
}
|
||||
|
||||
void WebBrowserComponent::stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue