Re: cookie save to disk possible ?
by Chris Young
On Sun, 29 Aug 2010 13:21:38 +0200, m0n0 wrote:
> The www. is part of the (sub) domain and I expect an browser to not
> allow cookies for an specific domain to be read from another domain.
> Otherwise cookie stealing would be possible.
> I believe, if you want to make the cookie work by pressing enter - you
> have to login into the page at http://amigaworld.net - not
> http://www.amigaworld.net
>
> I believe Filtering out the www. is wrong, because the www. is just
> like any other subdomain. It can serve an completely different page than
> the url without the www.
Cookies are valid for the domain they set and all subdomains below.
A cookie set for amigaworld.net will be served to amigaworld.net,
www.amigaworld.net, some.other.subdomain.amigaworld.net etc.
Obviously if there are subdomains below your domain which are run by
other people, you will want to set your cookie for www.amigaworld.net,
rather than amigaworld.net.
The domain is set as specified by the site, not the browser (although
most browsers AFAIK will block cookies which specify a domain other
than the one setting it, not sure if NetSurf does)
This is why cookies set for domain ".co.uk" are bad :)
Chris
13 years
Re: cookie save to disk possible ?
by Bernd Roesch
Hello m0n0
On 29.08.10, you wrote:
>
> I believe Filtering out the www. is wrong, because the www. is just
> like any other subdomain. It can serve an completely different page than
> the url without the www.
I test on internet explorer here login work with www.xxxx
But i test now too on firefox with www.xxxx does not work.so firefox do same as netsurf.
Artur report a problem with ppa.pl.maybe he need too not use www when call the page
>
> Greets,
> Ole
>
Regards
13 years
re: cookie save to disk possible ?
by Artur
Hi,
I have implemented cookies.c from AmigaOS4 frontend and
cookies file look like this:
# >Progdir:Resources/cookie
# NetSurf cookies file.
#
# Lines starting with a '#' are comments, blank lines are ignored.
#
# All lines prior to "Version: 101" are discarded.
#
# Version Domain Domain from Set-Cookie Path Path from Set-Cookie Secure
Expires Last used No destroy Name Value Value was quoted Scheme URL Comment
Version: 101
0 .google.pl 1 / 1 0 1342461467 1279397025 0 PREF
ID=17972ee9cadf64c0:U=7bdc2c067431d93e:TM=1279389408:LM=1279389467:S=hZUJPvO1kSf7b7RR
0 unused unused
0 .google.pl 1 / 1 0 1295200608 1279397025 0 NID
36=MdfhD5AaOhTQqo81b3UHolVKxvJIvBWbQ-DYXFb3xvgm2wj5cRUKVgwuRO2DvBkFD2-h-wB3_DDeeMR3CoMiLX5mms_Oj1sZOu4v90Yeb4bH2Llk5fzyQRre7a8KwP8u
0 unused unused
0 .google.com 1 / 1 0 1342461467 1279397024 0 PREF
ID=cbda23c368db6bd8:U=e28223eea95a0cef:TM=1279389408:LM=1279389467:S=HZXREUORixoE5CZz
0 unused unused
0 .google.com 1 / 1 0 1295200608 1279397024 0 NID
36=GwZTgij5m-JtrC6unLVgUGfIK9_EXpZ5cur-ctnYSR6A1VMSuMoEdGuA-ByHRmCiUx6GiJYj1Z9fcy0RcSoCeR2vynSRiFkg0oY9PElrARRQd3szQ7VCwASYn_Wt2cUA
0 unused unused
There is more information than in Bernd's cookie but how to know if it is
loaded at start ?
if (fb_font_init() == false)
die("Unable to initialise the font system");
fbtk = fbtk_init(nsfb);
+ urldb_load_cookies(option_cookie_file);
+ ami_cookies_initialise();
void gui_quit(void)
{
LOG(("gui_quit"));
CloseLibrary(DosBase);
framebuffer_finalise();
+ urldb_save_cookies(option_cookie_file);
+ ami_cookies_free();
13 years
gui_poll function
by m0n0
Hello to the list,
I'm having an question about gui_poll function - should it block if
the active parameter is false?
If networking is done (active == false), the page isn't rendered
complete, so at this point I can't allow gui_poll to block.
How to get the information if rendering is still running? Active
becomes false before rendering has finished, so there is no way to use
the active flag.
When everything is done (how to get that information?), gui_poll
could/should be blocking... like an select on a network socket.
This could reduce system load, because gui_poll isn't running 100
times a second uselessly.
Greets,
Ole
13 years, 1 month
Re: gui_poll function
by Chris Young
On Tue, 24 Aug 2010 14:32:03 +0200, m0n0 wrote:
> To me it looks like this needs some clarification (especially the amiga
> comment) O:)
I must admit it did somewhat confuse me. The comment is there so I
understood what was going on when I returned to it.
The intention was to get the scheduler to signal as per normal events,
so I could just put a Wait() in and be done with it. From the
comments, I guess I backed that out because NetSurf needed control
back. The IntuiTicks thing stops NetSurf busy-waiting, and in fact
stops NetSurf getting past the Wait() if none of its windows are
active (which is friendly enough for user perception, if not for tasks
multitasking in the background whilst using NetSurf - although the
IntuiTicks delay seems to be enough AFAICT). The only real issue with
how I've implemented it, is that animations stop (and I think page
layout) when the window is deactivated. Some may consider that a
benefit!
The other thing confusing me was that gui_multitask can't wait for
events, it has to poll (but not run the scheduler). I assume this
naming came about due to RISC OS' co-operative multitasking - but I'd
still expect NetSurf to do something equivalent to a Wait() to
relinquish control back to the OS, in a function labelled "multitask".
Some proper documentation wouldn't go amiss - in fact, a cleanup of
the two functions so one can wait for events and the other poll, might
be a nice little project for somebody :)
Chris
13 years, 1 month
libcss and font sizes
by Lukasz Sromek
Hello,
I'm using libcss in my epub reader project. I'm trying to figure out the best way to handle font sizes in my own basic html parser.
Let's say we have the following situation: if there are no font-size declarations in css, I'm using 32pt font size for rendering h1, 24 for h2, 12 for p, etc (i.e. some default sizes). If user specifies explicitly:
h1 { font-size: 48pt;}
then h1 becomes 48pt, h2 is still 24, p 12, etc, pretty straightforward.
The problem lies in deciding whether user want custom sizes, or the default values should be used. I'm using compute_font_size callback from netsurf sources and after calling css_computed_font_size I get 12pt no matter whether user explicitly set 12pt or didn't specify font-size at all.
How is it done in netsurf? Could you give me some explanation, or specify source code fragment which is responsible for this?
Thanks,
Lukasz
13 years, 1 month
NetSurf gui port -> assert during layout_minmax_block fails
by m0n0
Hello to the list,
I'm trying to setup an native NetSurf port for the atari FreeMiNT OS,
during page load (status bar shows proccessing document) an assert
fails.
Maybe I'm missing some struct that hast to be initialised?
If you look through the logs, default stylesheet with f79 extension is
loaded, this is okay, I recognize that filetype as text/css in the
get_filtype function....
error:
render/layout.c:724: layout_minmax_block: Assertion `child->max_width
!= 2147483647' failed.
Below follows an gdb trace,
after that the verbose log follows. Can anybody help in this?
with kind regards,
m0n0
(gdb) info locals
child = (struct box *) 0x1ca3afc
min = 0
child = (struct box *) 0x1ca27bc
min = 0
max = 0
extra_fixed = 0
extra_frac = 0
wtype = CSS_WIDTH_AUTO
width = 0
wunit = CSS_UNIT_PX
__PRETTY_FUNCTION__ = 0x3471a37
block = (struct box *) 0x3153dfe
(gdb) info stack
#0 .L483 () at render/layout.c:724
#1 0x3155d06 in .LBE718 () at render/layout.c:712
#2 0x3155d06 in .LBE718 () at render/layout.c:712
#3 0x315c140 in layout_document (content=0x1504a34, width=400,
height=400)
at render/layout.c:142
#4 0x3149072 in html_reformat (c=0x1504a34, width=400, height=400)
at render/html.c:1720
#5 0x310e050 in .L143 () at content/content.c:736
#6 0x3128848 in .LBE42 () at desktop/browser.c:466
#7 0x31148b6 in hlcache_content_callback (c=0x1504a34,
msg=CONTENT_MSG_READY,
data={error = 0x48cc0000 <Address 0x48cc0000 out of bounds>,
redraw = {
x = 483354.406, y = 7.01031444e+20, width = -3.99942874e+18,
height = 4.70419734e+20, full_redraw = 72}, object =
0x34d6218,
object_x = 4.25730616e-37, object_y = 6.03563508e-37,
object_width = 4.38124193e-37, object_height = 3.82558853e-38},
pw=0x1a4c5c4) at content/hlcache.c:678
#8 0x310ded2 in .L108 () at content/content.c:1080
#9 0x310effa in content_set_ready (c=0x1504a34) at
content/content.c:696
#10 0x314a396 in .L477 () at render/html.c:549
#11 0x314a618 in .L522 () at render/html.c:1219
#12 0x31148b6 in hlcache_content_callback (c=0x1c9f1dc,
msg=CONTENT_MSG_DONE,
data={error = 0xf1dc034d <Address 0xf1dc034d out of bounds>,
redraw = {
x = -1.26775215e+31, y = -7.71418168e-38, width =
6.33719854e-39,
---Type <return> to continue, or q <return> to quit---
height = -5.27378324e+29, full_redraw = 243}, object =
0x34881d2,
object_x = 5.87747876e-39, object_y = 4.25942582e-37,
object_width = 6.05224394e-38, object_height = 7.41827901e-38},
pw=0x1a4bb74) at content/hlcache.c:678
#13 0x310ded2 in .L108 () at content/content.c:1080
#14 0x310efb4 in content_set_done (c=0x1c9f1dc) at
content/content.c:710
#15 0x310f2dc in .L406 () at content/content.c:682
#16 0x3115ff2 in .L213 () at content/llcache.c:1346
#17 0x3117618 in .L492 () at content/llcache.c:279
#18 0x311506a in hlcache_poll () at content/hlcache.c:154
#19 0x312d2ae in .L29 () at desktop/netsurf.c:177
#20 0x310ba12 in .LBE78 () at atari/gui.c:693
#21 0x345ced0 in .L28 ()
#22 0x3440a3a in .L74 ()
---
desktop/netsurf.c netsurf_init 142: version '3.0 (Development)'
desktop/netsurf.c netsurf_init 149: NetSurf on <FreeMiNT>, node
<easymint>, release <1.16.3a>, version <2.6>, machine <aranym>
desktop/netsurf.c netsurf_init 151: Using './Choices' for Options file
desktop/options.c options_read 302: failed to open file './Choices'
utils/messages.c messages_load 122: Loading Messages from
'/d/root/netsurf/netsurf/!NetSurf/Resources/en/Messages'
content/fetchers/fetch_curl.c fetch_curl_register 154: curl_version
libcurl/7.20.1 OpenSSL/0.9.8l zlib/1.2.5
utils/useragent.c user_agent_build_string 72: Built user agent
"NetSurf/3.0 (FreeMiNT; aranym)"
content/fetchers/fetch_curl.c fetch_curl_register 214: cURL linked
against openssl
content/fetchers/fetch_curl.c fetch_curl_initialise 246: Initialise
cURL fetcher for dict
content/fetchers/fetch_curl.c fetch_curl_initialise 246: Initialise
cURL fetcher for file
content/fetchers/fetch_curl.c fetch_curl_initialise 246: Initialise
cURL fetcher for ftp
content/fetchers/fetch_curl.c fetch_curl_initialise 246: Initialise
cURL fetcher for ftps
content/fetchers/fetch_curl.c fetch_curl_initialise 246: Initialise
cURL fetcher for http
content/fetchers/fetch_curl.c fetch_curl_initialise 246: Initialise
cURL fetcher for https
content/fetchers/fetch_data.c fetch_data_initialise 63:
fetch_data_initialise called for data
atari/gui.c gui_init 634: Using
'/d/root/netsurf/netsurf/!NetSurf/Resources/Aliases' as Aliases file
atari/gui.c gui_init 638: Enabling core select menu!
atari/gui.c gui_init 643: Using
'file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79' as Default
CSS URL
atari/gui.c process_cmdline 581: argc 1, argv 0x30331e8
gui_init Unimplemented!
gui_init2 Unimplemented!
gui_clear_selection Unimplemented!
gui_create_browser_window Unimplemented!
atari/gui.c gui_create_browser_window 123: gw: 0x145eb04, BW:
0x145eb9c, clone (nil), tab: 0
atari/browser_win.c create_normal_browser_window 24: window maxsize is
static (400, 400)!!!
desktop/browser.c browser_window_go_post 262: bw 0x145eb9c, url
http://www.netsurf-browser.org/welcome/
gui_window_stop_throbber Unimplemented!
gui_window_remove_caret Unimplemented!
gui_clear_selection Unimplemented!
desktop/browser.c browser_window_go_post 374: Loading
'http://www.netsurf-browser.org/welcome/'
gui_window_set_status Unimplemented!
content/llcache.c llcache_object_user_new 516: Created user 0x145e594
(0x2c80c18, 0x145e5dc)
content/llcache.c llcache_object_retrieve 594: Retrieve
http://www.netsurf-browser.org/welcome/ (80000002, (null), (nil))
content/llcache.c llcache_object_retrieve_from_cache 682: Searching
cache for http://www.netsurf-browser.org/welcome/ (80000002 (null)
(nil))
content/llcache.c llcache_object_new 1033: Created object 0x145e4a4
(http://www.netsurf-browser.org/welcome/)
content/llcache.c llcache_object_retrieve_from_cache 745: Not found
0x145e4a4
content/llcache.c llcache_object_fetch 894: Starting fetch for
0x145e4a4
content/llcache.c llcache_object_refetch 996: Refetching 0x145e4a4
content/fetch.c fetch_start 255: fetch 0x145e41c, url
'http://www.netsurf-browser.org/welcome/'
content/fetchers/fetch_curl.c fetch_curl_setup 326: fetch 0x145e284,
url 'http://www.netsurf-browser.org/welcome/'
content/fetch.c fetch_dispatch_jobs 360: queue_ring 1, fetch_ring 0
content/fetch.c fetch_dispatch_jobs 367: queue_ring:
http://www.netsurf-browser.org/welcome/
content/fetch.c fetch_dispatch_job 436: Attempting to start fetch
0x145e41c, fetcher 0x145e284, url
http://www.netsurf-browser.org/welcome/
content/fetch.c fetch_dispatch_jobs 394: Fetch ring is now 1 elements.
content/fetch.c fetch_dispatch_jobs 395: Queue ring is now 0 elements.
content/llcache.c llcache_object_retrieve 653: Retrieved 0x145e4a4
content/llcache.c llcache_object_add_user 1122: Adding user 0x145e594
to 0x145e4a4
gui_window_start_throbber Unimplemented!
gui_window_set_url Unimplemented!
atari/gui.c gui_poll 82: gui POLL
atari/gui.c gui_poll 86: scheduler timeout: -1
atari/gui.c gui_poll 104: EvntWindom flags:51, timeout: 100, active: 1
* About to connect() to www.netsurf-browser.org port 80 (#0)
* Trying 87.237.62.181... content/llcache.c llcache_fetch_callback
1607: Fetch event 0 for 0x145e4a4
* connected
* Connected to www.netsurf-browser.org (87.237.62.181) port 80 (#0)
> GET /welcome/ HTTP/1.1
User-Agent: NetSurf/3.0 (FreeMiNT; aranym)
Host: www.netsurf-browser.org
Accept: */*
Accept-Encoding: gzip
< HTTP/1.1 200 OK
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Server: Zeus/4.3
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Date: Thu, 19 Aug 2010 22:10:54 GMT
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Etag: "E8pk3/MZD/ly/O4lft8MOg"
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Vary: Accept-Language
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Content-Type: text/html; charset=ISO-8859-1
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Content-Language: en
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Last-Modified: Mon, 24 May 2010 10:34:51 GMT
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Connection: close
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Vary: Accept-Encoding
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
< Content-Encoding: gzip
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e4a4
<
content/fetch.c fetch_set_http_code 697: Setting HTTP code to 200
content/fetchers/fetch_curl.c fetch_curl_process_headers 1125: HTTP
status code 200
content/llcache.c llcache_fetch_callback 1607: Fetch event 2 for
0x145e4a4
* Expire cleared
* Closing connection #0
content/fetchers/fetch_curl.c fetch_curl_done 772: done
http://www.netsurf-browser.org/welcome/
content/fetchers/fetch_curl.c fetch_curl_stop 660: fetch 0x145e284,
url 'http://www.netsurf-browser.org/welcome/'
content/fetch.c fetch_remove_from_queues 672: Fetch 0x145e41c, fetcher
0x145e284 can be freed
content/fetch.c fetch_remove_from_queues 687: Fetch ring is now 0
elements.
content/fetch.c fetch_remove_from_queues 688: Queue ring is now 0
elements.
content/llcache.c llcache_fetch_callback 1607: Fetch event 3 for
0x145e4a4
content/fetch.c fetch_free 470: Freeing fetch 0x145e41c, fetcher
0x145e284
content/llcache.c llcache_object_notify_users 1236: Notifying users of
0x145e4a4
content/llcache.c llcache_object_notify_users 1275: User 0x145e594
state: 0 Object state: 3
content/content.c content_create 440: url
http://www.netsurf-browser.org/welcome/ -> 0x1354a34
content/content.c content_add_user 979: content
http://www.netsurf-browser.org/welcome/ (0x1354a34), user 0x2c80928
0x145e5c4
gui_window_set_status Unimplemented!
render/hubbub_binding.c create_namespaces 311: Failed creating
namespace xml
gui_window_set_status Unimplemented!
content/content.c content_convert 666: content
http://www.netsurf-browser.org/welcome/ (0x1354a34)
render/html.c html_head 577: Node: title
render/html.c html_head 577: Node: style
render/html.c html_head 577: Node: link
content/llcache.c llcache_object_user_new 516: Created user 0x145e32c
(0x2c80c18, 0x145a7ac)
content/llcache.c llcache_object_retrieve 594: Retrieve
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79 (0,
http://www.netsurf-browser.org/welcome/, (nil))
content/llcache.c llcache_object_retrieve_from_cache 682: Searching
cache for file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79 (0
http://www.netsurf-browser.org/welcome/ (nil))
content/llcache.c llcache_object_new 1033: Created object 0x145e21c
(file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79)
content/llcache.c llcache_object_retrieve_from_cache 745: Not found
0x145e21c
content/llcache.c llcache_object_fetch 894: Starting fetch for
0x145e21c
content/llcache.c llcache_object_refetch 996: Refetching 0x145e21c
content/fetch.c fetch_start 255: fetch 0x145e2f4, url
'file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79'
content/fetchers/fetch_curl.c fetch_curl_setup 326: fetch 0x1463974,
url 'file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79'
content/fetch.c fetch_dispatch_jobs 360: queue_ring 1, fetch_ring 0
content/fetch.c fetch_dispatch_jobs 367: queue_ring:
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79
content/fetch.c fetch_dispatch_job 436: Attempting to start fetch
0x145e2f4, fetcher 0x1463974, url
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79
content/fetch.c fetch_dispatch_jobs 394: Fetch ring is now 1 elements.
content/fetch.c fetch_dispatch_jobs 395: Queue ring is now 0 elements.
content/llcache.c llcache_object_retrieve 653: Retrieved 0x145e21c
content/llcache.c llcache_object_add_user 1122: Adding user 0x145e32c
to 0x145e21c
content/llcache.c llcache_clean 1444: Attempting cache clean
content/llcache.c llcache_clean 1514: Size: 3664
atari/gui.c gui_poll 82: gui POLL
atari/gui.c gui_poll 86: scheduler timeout: -1
atari/gui.c gui_poll 104: EvntWindom flags:51, timeout: 100, active: 1
content/fetch.c fetch_set_http_code 697: Setting HTTP code to 0
content/fetch.c fetch_set_http_code 697: Setting HTTP code to 0
content/fetchers/fetch_curl.c fetch_curl_process_headers 1125: HTTP
status code 0
content/fetchers/fetch_curl.c fetch_curl_process_headers 1163:
Obtaining mime type for file
/d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e21c
atari/filetype.c fetch_filetype 20: unix path
/d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e21c
content/llcache.c llcache_fetch_callback 1607: Fetch event 1 for
0x145e21c
content/llcache.c llcache_fetch_callback 1607: Fetch event 2 for
0x145e21c
content/llcache.c llcache_fetch_callback 1607: Fetch event 0 for
0x145e21c
* Expire cleared
* Closing connection #0
content/fetchers/fetch_curl.c fetch_curl_done 772: done
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79
content/fetchers/fetch_curl.c fetch_curl_stop 660: fetch 0x1463974,
url 'file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79'
content/fetch.c fetch_remove_from_queues 672: Fetch 0x145e2f4, fetcher
0x1463974 can be freed
content/fetch.c fetch_remove_from_queues 687: Fetch ring is now 0
elements.
content/fetch.c fetch_remove_from_queues 688: Queue ring is now 0
elements.
content/llcache.c llcache_fetch_callback 1607: Fetch event 3 for
0x145e21c
content/fetch.c fetch_free 470: Freeing fetch 0x145e2f4, fetcher
0x1463974
content/llcache.c llcache_object_notify_users 1236: Notifying users of
0x145e21c
content/llcache.c llcache_object_notify_users 1275: User 0x145e32c
state: 0 Object state: 3
content/content.c content_create 440: url
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79 -> 0x14624f4
content/content.c content_add_user 979: content
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79 (0x14624f4),
user 0x2c80928 0x145d9f4
gui_window_set_status Unimplemented!
content/content.c content_convert 666: content
file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79 (0x14624f4)
render/html.c html_convert_css_callback 1196: got stylesheet
'file:///d/root/netsurf/netsurf/!NetSurf/Resources/CSS,f79'
content/llcache.c llcache_object_user_new 516: Created user 0x14622b4
(0x2c80c18, 0x145a7ac)
content/llcache.c llcache_object_retrieve 594: Retrieve
http://www.netsurf-browser.org/webimages/favicon.png (8,
http://www.netsurf-browser.org/welcome/, (nil))
content/llcache.c llcache_object_retrieve_from_cache 682: Searching
cache for http://www.netsurf-browser.org/webimages/favicon.png (8
http://www.netsurf-browser.org/welcome/ (nil))
content/llcache.c llcache_object_new 1033: Created object 0x14621ac
(http://www.netsurf-browser.org/webimages/favicon.png)
content/llcache.c llcache_object_retrieve_from_cache 745: Not found
0x14621ac
content/llcache.c llcache_object_fetch 894: Starting fetch for
0x14621ac
content/llcache.c llcache_object_refetch 996: Refetching 0x14621ac
content/fetch.c fetch_start 255: fetch 0x14620f4, url
'http://www.netsurf-browser.org/webimages/favicon.png'
content/fetchers/fetch_curl.c fetch_curl_setup 326: fetch 0x1462374,
url 'http://www.netsurf-browser.org/webimages/favicon.png'
content/fetch.c fetch_dispatch_jobs 360: queue_ring 1, fetch_ring 0
content/fetch.c fetch_dispatch_jobs 367: queue_ring:
http://www.netsurf-browser.org/webimages/favicon.png
content/fetch.c fetch_dispatch_job 436: Attempting to start fetch
0x14620f4, fetcher 0x1462374, url
http://www.netsurf-browser.org/webimages/favicon.png
content/fetch.c fetch_dispatch_jobs 394: Fetch ring is now 1 elements.
content/fetch.c fetch_dispatch_jobs 395: Queue ring is now 0 elements.
content/llcache.c llcache_object_retrieve 653: Retrieved 0x14621ac
content/llcache.c llcache_object_add_user 1122: Adding user 0x14622b4
to 0x14621ac
render/html.c html_finish_conversion 518: XML to box
gui_window_set_status Unimplemented!
atari/gui.c gui_multitask 72: EvntWindom
atari/gui.c gui_multitask 72: EvntWindom
atari/gui.c gui_multitask 72: EvntWindom
atari/gui.c gui_multitask 72: EvntWindom
atari/gui.c gui_multitask 72: EvntWindom
atari/gui.c gui_multitask 72: EvntWindom
content/llcache.c llcache_object_user_new 516: Created user 0x1462c2c
(0x2c80c18, 0x1462054)
content/llcache.c llcache_object_retrieve 594: Retrieve
http://www.netsurf-browser.org/netsurf.png (0,
http://www.netsurf-browser.org/welcome/, (nil))
content/llcache.c llcache_object_retrieve_from_cache 682: Searching
cache for http://www.netsurf-browser.org/netsurf.png (0
http://www.netsurf-browser.org/welcome/ (nil))
content/llcache.c llcache_object_new 1033: Created object 0x146c074
(http://www.netsurf-browser.org/netsurf.png)
content/llcache.c llcache_object_retrieve_from_cache 745: Not found
0x146c074
content/llcache.c llcache_object_fetch 894: Starting fetch for
0x146c074
content/llcache.c llcache_object_refetch 996: Refetching 0x146c074
content/fetch.c fetch_start 255: fetch 0x146c20c, url
'http://www.netsurf-browser.org/netsurf.png'
content/fetchers/fetch_curl.c fetch_curl_setup 326: fetch 0x1478bcc,
url 'http://www.netsurf-browser.org/netsurf.png'
content/fetch.c fetch_dispatch_jobs 360: queue_ring 1, fetch_ring 1
content/fetch.c fetch_dispatch_jobs 367: queue_ring:
http://www.netsurf-browser.org/netsurf.png
content/fetch.c fetch_dispatch_jobs 376: fetch_ring:
http://www.netsurf-browser.org/webimages/favicon.png
content/fetch.c fetch_dispatch_job 436: Attempting to start fetch
0x146c20c, fetcher 0x1478bcc, url
http://www.netsurf-browser.org/netsurf.png
content/fetch.c fetch_dispatch_jobs 394: Fetch ring is now 2 elements.
content/fetch.c fetch_dispatch_jobs 395: Queue ring is now 0 elements.
content/llcache.c llcache_object_retrieve 653: Retrieved 0x146c074
content/llcache.c llcache_object_add_user 1122: Adding user 0x1462c2c
to 0x146c074
atari/gui.c gui_multitask 72: EvntWindom
...
atari/gui.c gui_multitask 72: EvntWindom
atari/gui.c gui_window_get_dimensions 189: get dimensions 0x145eb04
w=400 h=400
content/content.c content__reformat 732: 0x1354a34
http://www.netsurf-browser.org/welcome/
ns.prg: render/layout.c:724: layout_minmax_block: Assertion
`child->max_width != 2147483647' failed.
13 years, 1 month
starting with libcss
by Lukasz Sromek
Hello everyone,
I want to use libcss in my own project. I tried my best to get it to work, but after two days of trying I'm stuck. I figured you guys could give me some helpful pointers on how to use your lib.
So, what I achieved so far is this:
css_error error = css_initialise(aliases_fname, myrealloc, NULL);
lwc_initialise(myrealloc, NULL, 0);
css_stylesheet *sheet;
error = css_stylesheet_create(CSS_LEVEL_21, "UTF-8",
"url", NULL, true, false,
myrealloc, NULL,
myresolveurl, NULL,
&sheet);
char *style_text = "body\
{\
background-color:#b0c4de;\
}";
uint le = strlen(style_text);
error = css_stylesheet_append_data(sheet, (const uint8_t*)style_text, le);
error = css_stylesheet_data_done(sheet);
css_finalise(myrealloc, NULL);
style_text is some example css file body. I think it is parsed correctly (I get CSS_NEEDDATA as a result of css_stylesheet_append_data), but I have no idea how to actually get the parsed data? How to read background-color of the body element? Do I have to somehow convert css_stylesheet to css_computed style?
Could you please give me some hints?
Cheers,
Lukasz
13 years, 1 month