mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 17:59:38 +03:00
WebView: fix #2 for clicking URLs while page loading
git-svn-id: svn://kolibrios.org@4687 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c23bb9bf23
commit
a2554b0cac
@ -243,6 +243,7 @@ void main()
|
||||
http_free stdcall (http_transfer);
|
||||
http_transfer=0;
|
||||
PageLinks.GetAbsoluteURL(#URL);
|
||||
BrowserHistory.current--;
|
||||
strcpy(#editURL, #URL);
|
||||
OpenPage();
|
||||
}
|
||||
@ -463,6 +464,12 @@ void Scan(int id)
|
||||
|
||||
void ProcessLinks(int id)
|
||||
{
|
||||
if (http_transfer > 0)
|
||||
{
|
||||
StopLoading();
|
||||
BrowserHistory.current--;
|
||||
}
|
||||
|
||||
strcpy(#URL, PageLinks.GetURL(id-401));
|
||||
//$1 - Condition Script
|
||||
if (URL[0] == '$')
|
||||
@ -548,6 +555,7 @@ void OpenPage()
|
||||
{
|
||||
StopLoading();
|
||||
strcpy(#editURL, #URL);
|
||||
BrowserHistory.AddUrl();
|
||||
if (strncmp(#URL,"WebView:",8)==0) return;
|
||||
if (strncmp(#URL,"http:",5)==0)
|
||||
{
|
||||
@ -565,7 +573,6 @@ void OpenPage()
|
||||
}
|
||||
else
|
||||
{
|
||||
BrowserHistory.AddUrl();
|
||||
file_size stdcall (#URL);
|
||||
bufsize = EBX;
|
||||
if (bufsize)
|
||||
|
Loading…
Reference in New Issue
Block a user