Subversion Repositories Kolibri OS

Rev

Rev 8439 | Rev 8443 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8439 Rev 8440
Line 39... Line 39...
39
//===================================================//
39
//===================================================//
40
//                                                   //
40
//                                                   //
41
//                       DATA                        //
41
//                       DATA                        //
42
//                                                   //
42
//                                                   //
43
//===================================================//
43
//===================================================//
44
char version[]="WebView 3.1";
44
char version[]="WebView 3.11";
Line 45... Line 45...
45
 
45
 
Line 46... Line 46...
46
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
46
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
47
 
47
 
Line 221... Line 221...
221
					HandleRedirect();
221
					HandleRedirect();
222
				} else {
222
				} else {
223
					notify("'Too many redirects.' -E");
223
					notify("'Too many redirects.' -E");
224
					StopLoading();
224
					StopLoading();
225
					redirect_count = 0;
225
					redirect_count = 0;
-
 
226
					if (http_get_type==IMG) goto _IMG_RES;
226
				}
227
				}
227
			} else {
228
			} else {
228
				// Loading the page is complete, free resources
229
				// Loading the page is complete, free resources
229
				redirect_count = 0;
230
				redirect_count = 0;
230
				http.hfree();
231
				http.hfree();
Line 233... Line 234...
233
					cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE);
234
					cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE);
234
					free(http.content_pointer);
235
					free(http.content_pointer);
235
					LoadInternalPage(cache.current_buf, cache.current_size);
236
					LoadInternalPage(cache.current_buf, cache.current_size);
236
				}
237
				}
237
				else if (http_get_type==IMG) {
238
				else if (http_get_type==IMG) {
-
 
239
					_IMG_RES:
238
					cache.add(cur_img_url, http.content_pointer, http.content_received, IMG);
240
					cache.add(cur_img_url, http.content_pointer, http.content_received, IMG);
239
					free(http.content_pointer);
241
					free(http.content_pointer);
240
					GetImg(false);
242
					GetImg(false);
241
				}
243
				}
242
			}
244
			}
Line 932... Line 934...
932
	http_get_type = IMG;
934
	http_get_type = IMG;
Line 933... Line 935...
933
 
935
 
934
	for (i = 0; i < WB1.img_url.count; i++)
936
	for (i = 0; i < WB1.img_url.count; i++)
935
	{
937
	{
-
 
938
		cur_img_url = WB1.img_url.get(i);
936
		cur_img_url = WB1.img_url.get(i);
939
		if (debug_mode) {debug("get img: ");debugln(cur_img_url);}
937
		if (cache.has(cur_img_url)==false) {
940
		if (cache.has(cur_img_url)==false) {
938
			prbar.max = WB1.img_url.count;
941
			prbar.max = WB1.img_url.count;
939
			prbar.value = i;
942
			prbar.value = i;
940
			if (GetUrl(cur_img_url)) {DrawStatusBar(cur_img_url); DrawProgress(); return;}
943
			if (GetUrl(cur_img_url)) {DrawStatusBar(cur_img_url); DrawProgress(); return;}