1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
|
[Dillo-dev]Re: Patch: META http-equiv=refresh is BROKEN a little :(
From: Nikita V. Borodikhin <eliterr@tk...> - 2002-07-31 07:30
I'm so sorry...
Patch is broken a little (DRC_TOKEN_USE_META_REFRESH placed in pref.c
instead of DRC_TOKEN_ALLOW_META_REFRESH)...
Here is the correct patch:
diff -pruN dillo.orig/dillorc dillo/dillorc
--- dillo.orig/dillorc Thu May 30 17:21:08 2002
+++ dillo/dillorc Wed Jul 31 14:07:07 2002
@@ -15,6 +15,9 @@ geometry=640x550
# If you have a lot of memory and a slow CPU, use YES, otherwise use NO
use_dicache=NO
+# We do not allow http-equiv=refresh by default because it's not
+# conform to official HTML 4.01 standard
+allow_meta_refresh=NO
#-------------------------------------------------------------------------
# RENDERING SECTION
diff -pruN dillo.orig/src/html.c dillo/src/html.c
--- dillo.orig/src/html.c Mon Jul 1 10:13:37 2002
+++ dillo/src/html.c Wed Jul 31 14:10:52 2002
@@ -2512,15 +2512,74 @@ static void Html_tag_close_form(DilloHtm
/*
* Handle <META>
- * We do not support http-equiv=refresh because it's non standar,
- * (the HTML 4.01 SPEC recommends explicitily to avoid it), and it
- * can be easily abused!
+ * We disable http-equiv=refresh by default because it's non standard,
+ * (the HTML 4.01 SPEC recommends explicitily to avoid it),
+ * and it can be easily abused!
*/
static void Html_tag_open_meta(DilloHtml *html, char *tag, gint tagsize)
{
+ const gchar *http_equiv;
+ const gchar *content;
+ const gchar *url_string;
+ DwPage *page;
+ DwStyle style_attrs, *link_style;
+ DilloUrl *url;
+ gint dummy;
+
+ page = DW_PAGE(html->dw);
+ style_attrs = *(html->stack[html->stack_top].style);
+
/* only valid inside HEAD */
- if (html->InFlags & IN_HEAD)
- return;
+ if (! (html->InFlags & IN_HEAD))
+ DEBUG_HTML_MSG ("META tag is not inside HEAD\n");
+
+ if ((http_equiv = Html_get_attr(html, tag, tagsize, "http-equiv")))
+ {
+ if ((strcasecmp (http_equiv, "refresh") == 0) && prefs.allow_meta_refresh
+ && (content = Html_get_attr(html, tag, tagsize, "content")))
+ {
+ url_string = strstr (content, "URL=");
+ if (strlen (url_string) > 4)
+ url_string += 4;
+ else
+ url_string = NULL;
+
+ if (url_string && (url = a_Url_new(url_string,
+ URL_STR_(html->linkblock->base_url),
+ 0, 0)))
+ {
+ a_Dw_page_add_text (page, g_strdup ("This page uses META-refresh to "),
+ html->stack[(html)->stack_top].style);
+
+ if (a_Cache_url_read(url, &dummy)) /* visited frame */
+ style_attrs.color = a_Dw_style_color_new
+ (html->linkblock->visited_color, html->bw->main_window->window);
+ else /* unvisited frame */
+ style_attrs.color = a_Dw_style_color_new
+ (html->linkblock->link_color, html->bw->main_window->window);
+
+ style_attrs.uline = TRUE;
+ style_attrs.link = Html_set_new_link(html, &url);
+ link_style = a_Dw_style_new (&style_attrs,
+ html->bw->main_window->window);
+
+ a_Dw_page_add_text(page, g_strdup(url_string), link_style);
+
+ a_Dw_style_unref(link_style);
+ }
+ else
+ {
+ a_Dw_page_add_text (page, g_strdup ("Strange META-refresh argument: "),
+ html->stack[(html)->stack_top].style);
+ a_Dw_page_add_text (page, g_strdup (content),
+ html->stack[(html)->stack_top].style);
+ }
+
+ a_Dw_page_add_parbreak(page, 9, html->stack[(html)->stack_top].style);
+ }
+ }
+
+ return;
}
/*
diff -pruN dillo.orig/src/prefs.c dillo/src/prefs.c
--- dillo.orig/src/prefs.c Thu Apr 11 12:37:35 2002
+++ dillo/src/prefs.c Wed Jul 31 13:43:44 2002
@@ -53,6 +53,7 @@ static const struct {
{ "limit_text_width", DRC_TOKEN_LIMIT_TEXT_WIDTH },
{ "font_factor", DRC_TOKEN_FONT_FACTOR },
{ "use_dicache", DRC_TOKEN_USE_DICACHE },
+ { "allow_meta_refresh", DRC_TOKEN_ALLOW_META_REFRESH },
{ "show_back", DRC_TOKEN_SHOW_BACK },
{ "show_forw", DRC_TOKEN_SHOW_FORW },
{ "show_home", DRC_TOKEN_SHOW_HOME },
@@ -178,6 +179,9 @@ static guint Prefs_parser(GScanner *scan
case DRC_TOKEN_USE_DICACHE:
prefs.use_dicache = (strcmp(scanner->value.v_string, "YES") == 0);
break;
+ case DRC_TOKEN_ALLOW_META_REFRESH:
+ prefs.allow_meta_refresh = (strcmp(scanner->value.v_string, "YES") == 0);
+ break;
case DRC_TOKEN_SHOW_BACK:
prefs.show_back = (strcmp(scanner->value.v_string, "YES") == 0);
break;
@@ -339,6 +343,7 @@ void a_Prefs_init(void)
prefs.limit_text_width = FALSE;
prefs.font_factor = 1.0;
prefs.use_dicache = FALSE;
+ prefs.allow_meta_refresh = FALSE;
prefs.show_back=TRUE;
prefs.show_forw=TRUE;
prefs.show_home=TRUE;
diff -pruN dillo.orig/src/prefs.h dillo/src/prefs.h
--- dillo.orig/src/prefs.h Thu Apr 11 12:37:35 2002
+++ dillo/src/prefs.h Wed Jul 31 13:44:01 2002
@@ -43,6 +43,7 @@ typedef enum {
DRC_TOKEN_SHOW_ALT,
DRC_TOKEN_LIMIT_TEXT_WIDTH,
DRC_TOKEN_USE_DICACHE,
+ DRC_TOKEN_ALLOW_META_REFRESH,
DRC_TOKEN_SHOW_BACK,
DRC_TOKEN_SHOW_FORW,
DRC_TOKEN_SHOW_HOME,
@@ -85,6 +86,7 @@ struct _DilloPrefs {
gboolean limit_text_width;
gdouble font_factor;
gboolean use_dicache;
+ gboolean allow_meta_refresh;
gboolean show_back;
gboolean show_forw;
gboolean show_home;
[Dillo-dev]Patch: META http-equiv=refresh
From: Nikita V. Borodikhin <eliterr@tk...> - 2002-07-31 07:16
Hello all Dillo users !
I thought that META http-equiv=refresh parameter in fully not standard
but recently I found Web Design Group's page about META tag
(see http://www.htmlhelp.com/reference/html40/head/meta.html).
They wrote <META http-equiv=refresh content='10; URL=>
is usual tag but not all browsers can handle it, so I made patch that
adds support for it (disabled by default) that adds ability to see
URL refreshing to as link (like dillo's frame support does).
Sincerely yours,
Nikita V. Borodikhin
Here is the patch:
diff -pruN dillo.orig/dillorc dillo/dillorc
--- dillo.orig/dillorc Thu May 30 17:21:08 2002
+++ dillo/dillorc Wed Jul 31 14:07:07 2002
@@ -15,6 +15,9 @@ geometry=640x550
# If you have a lot of memory and a slow CPU, use YES, otherwise use NO
use_dicache=NO
+# We do not allow http-equiv=refresh by default because it's not
+# conform to official HTML 4.01 standard
+allow_meta_refresh=NO
#-------------------------------------------------------------------------
# RENDERING SECTION
diff -pruN dillo.orig/src/html.c dillo/src/html.c
--- dillo.orig/src/html.c Mon Jul 1 10:13:37 2002
+++ dillo/src/html.c Wed Jul 31 14:10:52 2002
@@ -2512,15 +2512,74 @@ static void Html_tag_close_form(DilloHtm
/*
* Handle <META>
- * We do not support http-equiv=refresh because it's non standar,
- * (the HTML 4.01 SPEC recommends explicitily to avoid it), and it
- * can be easily abused!
+ * We disable http-equiv=refresh by default because it's non standard,
+ * (the HTML 4.01 SPEC recommends explicitily to avoid it),
+ * and it can be easily abused!
*/
static void Html_tag_open_meta(DilloHtml *html, char *tag, gint tagsize)
{
+ const gchar *http_equiv;
+ const gchar *content;
+ const gchar *url_string;
+ DwPage *page;
+ DwStyle style_attrs, *link_style;
+ DilloUrl *url;
+ gint dummy;
+
+ page = DW_PAGE(html->dw);
+ style_attrs = *(html->stack[html->stack_top].style);
+
/* only valid inside HEAD */
- if (html->InFlags & IN_HEAD)
- return;
+ if (! (html->InFlags & IN_HEAD))
+ DEBUG_HTML_MSG ("META tag is not inside HEAD\n");
+
+ if ((http_equiv = Html_get_attr(html, tag, tagsize, "http-equiv")))
+ {
+ if ((strcasecmp (http_equiv, "refresh") == 0) && prefs.allow_meta_refresh
+ && (content = Html_get_attr(html, tag, tagsize, "content")))
+ {
+ url_string = strstr (content, "URL=");
+ if (strlen (url_string) > 4)
+ url_string += 4;
+ else
+ url_string = NULL;
+
+ if (url_string && (url = a_Url_new(url_string,
+ URL_STR_(html->linkblock->base_url),
+ 0, 0)))
+ {
+ a_Dw_page_add_text (page, g_strdup ("This page uses META-refresh to "),
+ html->stack[(html)->stack_top].style);
+
+ if (a_Cache_url_read(url, &dummy)) /* visited frame */
+ style_attrs.color = a_Dw_style_color_new
+ (html->linkblock->visited_color, html->bw->main_window->window);
+ else /* unvisited frame */
+ style_attrs.color = a_Dw_style_color_new
+ (html->linkblock->link_color, html->bw->main_window->window);
+
+ style_attrs.uline = TRUE;
+ style_attrs.link = Html_set_new_link(html, &url);
+ link_style = a_Dw_style_new (&style_attrs,
+ html->bw->main_window->window);
+
+ a_Dw_page_add_text(page, g_strdup(url_string), link_style);
+
+ a_Dw_style_unref(link_style);
+ }
+ else
+ {
+ a_Dw_page_add_text (page, g_strdup ("Strange META-refresh argument: "),
+ html->stack[(html)->stack_top].style);
+ a_Dw_page_add_text (page, g_strdup (content),
+ html->stack[(html)->stack_top].style);
+ }
+
+ a_Dw_page_add_parbreak(page, 9, html->stack[(html)->stack_top].style);
+ }
+ }
+
+ return;
}
/*
diff -pruN dillo.orig/src/prefs.c dillo/src/prefs.c
--- dillo.orig/src/prefs.c Thu Apr 11 12:37:35 2002
+++ dillo/src/prefs.c Wed Jul 31 13:43:44 2002
@@ -53,6 +53,7 @@ static const struct {
{ "limit_text_width", DRC_TOKEN_LIMIT_TEXT_WIDTH },
{ "font_factor", DRC_TOKEN_FONT_FACTOR },
{ "use_dicache", DRC_TOKEN_USE_DICACHE },
+ { "allow_meta_refresh", DRC_TOKEN_USE_META_REFRESH },
{ "show_back", DRC_TOKEN_SHOW_BACK },
{ "show_forw", DRC_TOKEN_SHOW_FORW },
{ "show_home", DRC_TOKEN_SHOW_HOME },
@@ -178,6 +179,9 @@ static guint Prefs_parser(GScanner *scan
case DRC_TOKEN_USE_DICACHE:
prefs.use_dicache = (strcmp(scanner->value.v_string, "YES") == 0);
break;
+ case DRC_TOKEN_ALLOW_META_REFRESH:
+ prefs.allow_meta_refresh = (strcmp(scanner->value.v_string, "YES") == 0);
+ break;
case DRC_TOKEN_SHOW_BACK:
prefs.show_back = (strcmp(scanner->value.v_string, "YES") == 0);
break;
@@ -339,6 +343,7 @@ void a_Prefs_init(void)
prefs.limit_text_width = FALSE;
prefs.font_factor = 1.0;
prefs.use_dicache = FALSE;
+ prefs.allow_meta_refresh = FALSE;
prefs.show_back=TRUE;
prefs.show_forw=TRUE;
prefs.show_home=TRUE;
diff -pruN dillo.orig/src/prefs.h dillo/src/prefs.h
--- dillo.orig/src/prefs.h Thu Apr 11 12:37:35 2002
+++ dillo/src/prefs.h Wed Jul 31 13:44:01 2002
@@ -43,6 +43,7 @@ typedef enum {
DRC_TOKEN_SHOW_ALT,
DRC_TOKEN_LIMIT_TEXT_WIDTH,
DRC_TOKEN_USE_DICACHE,
+ DRC_TOKEN_ALLOW_META_REFRESH,
DRC_TOKEN_SHOW_BACK,
DRC_TOKEN_SHOW_FORW,
DRC_TOKEN_SHOW_HOME,
@@ -85,6 +86,7 @@ struct _DilloPrefs {
gboolean limit_text_width;
gdouble font_factor;
gboolean use_dicache;
+ gboolean allow_meta_refresh;
gboolean show_back;
gboolean show_forw;
gboolean show_home;
[Dillo-dev]Bug 254, Table width is too large.
From: Matias Aguirre <yo_soy@fa...> - 2002-07-31 07:16
Hi list, Im new to dillo and you maked a great work.
In 254 bug describes "table width is too large" but this is not the reason of this bug.
The reason is that if you read the source of http://linux.oreillynet.com/pub/a/linux/2001/11/15/learnunixos.html you found <IFRAME> tag, and this dont put in dillo sources.
This is a <IFRAME> referense: http://www.htmlhelp.com/reference/html40/special/iframe.html
Greetings
ps: sorry by my bad english
[Dillo-dev]Nav push consistency
From: Eric GAUDET <eric@rt...> - 2002-07-28 22:45
Hi all,
I just occured to me that the way Dillo handles URL is somewhat inconsist=
ent.
Choosing an already visited URL from the back history pushes the old page=
, and
remembers the position in this page. However, clicking on a link for an a=
lready
visited URL pushes the same link, only a the top of the page.
What=B4s really inconsistent, is if you have several time the same page i=
n the
back history, the remembered position in the page is unique (the last
position), no matter what history entry you choose.
I understand that there is two different codepath and only one cache entr=
y, be
still.
To be more polished, we have to choose between two consistent behaviors:
- the position is stored in the back history, not in the cache entry. Tha=
t way,
every back history remembers its own position, and newly clicked link ope=
n the
page at the top
- the position remains stored in the cache entry, and is always used no m=
atter
what. All nav push to this URL positions the page at this unique position=
,
regardless of if it is clicked from the back history, a link in the page,=
or
entered in the location bar.
I think I prefer the latter myself. What do you guys think?
Best,
Eric
Re: [Dillo-dev]Copy/paste in Dillo
From: Eric GAUDET <eric@rt...> - 2002-07-28 03:52
There is no problem asking for new features, but before doing that, it mi=
ght be
wise to read le web site, especially the bug track. I am sick and tired o=
f the
new visitors asking the same question again and again, even if there is a
published todo list.
John was right on: Dillo is open source and contributions have always bee=
n
welcome.
If you feel like a feature is missing, go head and code it.=20
If you don=B4t want/can=B4t do it, just wait. It might not be there eithe=
r because
it is difficult, or because Dillo=B4s developers have other priority, or =
are too
busy doing something else. We are all coding Dillo on our free time, and =
we can
not answer to individual demands. Dillo has been progressing a lot since =
the
very being, only driven by the needs of contributors.
If you don=B4t want to wait, use another browser.
As for copy/paste, it is actually the oldest entry in the bug-track engin=
e, and
I agree this is an important one. I filed it, then I volunteered to imple=
ment
it. However, many issues are in the way. First of all, Dillo=B4s internal
representation has changed a lot and keeps changing. Secondly, I didn=B4t=
have
time so far to give a try to the new iterators.
In short, this is far from being =A8a simple task=A8.
You want to know when: when somebody codes it! Simple as that. I am doing=
it,
slowly (don=B4t hold your breath). If somebody else does it before me, mo=
re power
to him!
Just sit tight and wait.
Best,
Eric
-- En reponse de "Re: [Dillo-dev]Copy/paste in Dillo" de Jamin W. Collins=
, le
27-Jul-2002 :
> On Sat, 27 Jul 2002 13:42:21 -0500 (CDT)
> John Utz <john@ut...> wrote:
>=20
>> We await your patch!
>>=20
>> (which is a nice way of saying, if you wont fix it yourself, stop=20
>> bitching)
>=20
> Curious, is there a problem with users of Dillo asking for or expressin=
g
> interested in having a feature added? I didn't take the OP's request a=
s
> "bitching".
>=20
> --=20
> Jamin W. Collins
>=20
>=20
> -------------------------------------------------------
> This s...net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
------------------------------------------------------------------------
Eric GAUDET <eric@rt...>
Le 27-Jul-2002 a 20:30:25
"Parler pour ne rien dire et ne rien dire pour parler sont les deux
principes majeurs et rigoureux de tous ceux qui feraient mieux de la
fermer avant de l'ouvrir."
------------------------------------------------------------------------
Re: [Dillo-dev]libdillo
From: Jonathan Gardner <gardnerj@pr...> - 2002-07-28 01:48
On Tue, 23 Jul 2002 09:06:26 +0200
Melvin Hadasht <melvin.hadasht@fr...> wrote:
> Mean while, I made a small patch for the same reason but with another
> approach, if you're interested:
> http://melvin.hadasht.free.fr/home/dillo/sylpheed/
Speaking of this patch. It still worked as of the 0.7.8claws release of
Sylpheed-claws but now as of the 0.8.0claws release it doesn't patch so
well and the make doesn't work.
Any plans on updating the patch?
Thanks much for it. It really makes Sylpheed even more nifty than it
already was.
Cheers,
Jonathan
--
#define __INTELLECTUAL_CHRISTIAN__
#include <JESUS><
#include ><DARWIN>
L L
Re: [Dillo-dev]Copy/paste in Dillo
From: John Utz <john@ut...> - 2002-07-28 01:19
umm, i overspoke.
sorry.
On Sat, 27 Jul 2002, Jamin W. Collins wrote:
> On Sat, 27 Jul 2002 13:42:21 -0500 (CDT)
> John Utz <john@ut...> wrote:
>
> > We await your patch!
> >
> > (which is a nice way of saying, if you wont fix it yourself, stop
> > bitching)
>
> Curious, is there a problem with users of Dillo asking for or expressing
> interested in having a feature added? I didn't take the OP's request as
> "bitching".
>
>
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
Re: [Dillo-dev]Copy/paste in Dillo
From: Jamin W. Collins <jcollins@as...> - 2002-07-27 19:54
On Sat, 27 Jul 2002 13:42:21 -0500 (CDT)
John Utz <john@ut...> wrote:
> We await your patch!
>
> (which is a nice way of saying, if you wont fix it yourself, stop
> bitching)
Curious, is there a problem with users of Dillo asking for or expressing
interested in having a feature added? I didn't take the OP's request as
"bitching".
--
Jamin W. Collins
Re: [Dillo-dev]Copy/paste in Dillo
From: John Utz <john@ut...> - 2002-07-27 18:42
We await your patch!
(which is a nice way of saying, if you wont fix it yourself, stop
bitching)
On 27 Jul 2002, mightyunclean wrote:
> Anyone know when support for text copy/paste will be incorporated into
> Dillo ?
>
> Or if there is a patch available to enable support for this ?
>
> Have been following Dillo's development from about 0.4.0, but there
> still hasn't been any support for this.
> I wonder if anyone has even thought of this simple but important
> feature.
> It is so frustrating being forced to use some other browser all the time
> simply because Dillo lacks basic functionality.
> Apart from this, everything is fine & dandy.
>
> Keep up the good work fellas.
>
>
>
> http://www.sold.com.au - SOLD.com.au
> - Find yourself a bargain!
>
>
> -------------------------------------------------------
> This s...net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
[Dillo-dev]Copy/paste in Dillo
From: mightyunclean <mightyunclean@ne...> - 2002-07-27 07:52
Anyone know when support for text copy/paste will be incorporated into
Dillo ?
Or if there is a patch available to enable support for this ?
Have been following Dillo's development from about 0.4.0, but there
still hasn't been any support for this.
I wonder if anyone has even thought of this simple but important
feature.
It is so frustrating being forced to use some other browser all the time
simply because Dillo lacks basic functionality.
Apart from this, everything is fine & dandy.
Keep up the good work fellas.
http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!
Re: [Dillo-dev]libdillo
From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-07-23 07:06
Hi erez@sa...,
on Tue, 23 Jul 2002 03:18:37 -1:00
erez@sa... wrote:
> I was wondering if it is possible to
> split dillo into a gtk-widget-lib
>
> (libdillo) and an application,
> so people could use libdillo and have
> html in their apps
that would be great.
Mean while, I made a small patch for the same reason but with another approach,
if you're interested:
http://melvin.hadasht.free.fr/home/dillo/sylpheed/
Namlala unono (Comoran: Goodbye)
--
Melvin Hadasht
[Dillo-dev]libdillo
From: <erez@sa...> - 2002-07-23 06:17
hello
I`m currently writing a mail client for
linux/ipaq, and I need a html widget.
I thought of using dillo for this
( porting it`s source into my app)
but as I already have dillo, this will
make the same code twice, and it`s a
waste of flash,and I will have to
port again when there will be a new
vesion of dillo.
I was wondering if it is possible to
split dillo into a gtk-widget-lib
(libdillo) and an application,
so people could use libdillo and have
html in their apps
ps,
I`m not on this mailing list so please
also CC to me.
thanks,
erez.
RE: [Dillo-dev]ecmascript, javascript and CSS
From: floorzat floorzat <floorzat@ho...> - 2002-07-22 21:58
Um.....
The codebase structure severely restricts the possibility of reasonable
implementation of script controlled DOM.
New Eventloop structures and highly complex semaphor systems would be
required and a complete ground up recode would probably be simpler.
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
Re: [Dillo-dev]Pixmap GTK themes
From: Patrick Glennon <pglennon@me...> - 2002-07-21 17:31
Attachments: Message as HTML
I have done a lot of pixmap themeing with dillo with no problems, from
v. 0.6.2 up to relatively current CVS builds. Also used thinice engine
and xenophilia with no problems...
do you have gtk themes properly set up? are your path names to the
engine libraries properly referenced in the gtkrc file? Also, do you
have the gtk/gdk libs installed? another thing to check is to make
sure that the theme engine libraries are in ( usually )
/usr/lib/gtk/themes/engines
libpixmap.so - pixmap theme engine
libxeno.so - xenophilia theme engine
libthinice.so - thinice theme engine
( etc.. )
hope this helps, and is not just a regurgitation of the obvious...
Cheers,
-Patrick
On Sat, 2002-07-20 at 21:59, Mark Schreiber wrote:
Does anyone else have any problems using pixmap GTK themes with dillo?
I'm not seeing any pixmaps in pixmap engine gtk themes being drawn in
a dillo (current CVS) window, though all the other GTK apps I use work
fine. I'd like to see whether this is just my copy of dillo first,
though.
If anyone has a pixmap gtk theme on their computer, could you try
switching to it and see whether the pixmaps are visible in your dillo
window?
Thanks!
--
Best of luck,
Mark Schreiber
[Dillo-dev]Pixmap GTK themes
From: Mark Schreiber <mark7@an...> - 2002-07-21 02:59
Attachments: Message as HTML
Does anyone else have any problems using pixmap GTK themes with dillo?
I'm not seeing any pixmaps in pixmap engine gtk themes being drawn in
a dillo (current CVS) window, though all the other GTK apps I use work
fine. I'd like to see whether this is just my copy of dillo first,
though.
If anyone has a pixmap gtk theme on their computer, could you try
switching to it and see whether the pixmaps are visible in your dillo
window?
Thanks!
--=20
Best of luck,
Mark Schreiber
[Dillo-dev]Re: Reading gzipped files
From: Vikas G P <vikasgp386@ho...> - 2002-07-17 13:20
On Mon,15 Jul 2002 07:23 PM Ken Hayber wrote,
>My point was that I believe that when http servers like apache support
>gzip they do not change the filename, they just compress the data on the
>fly. I could be wrong too, but that's what I believe is the case. It is
>the content-coding attribute that tells the browser it is compressed, not
>the filename.
>
>Maybe they're just two complementary ways to accomplish the same thing:
>.gz for local files, content-coding for http-served files. Would it be
>hard to implement both
Ah,
I get it now. What Ken is saying is that we need to support on-the-fly decompession of content sent via http, by checking their
content-encoding attribute. The reason I did it only for local files is :
I don't think there are many sites out there which put up index.html.gz. And gzipped files on the server should probably be
downloaded, and I didn't know how to do it.
BTW, most other browsers offer to download a .html.gz sent over http.
On Mon, 15 Jul 2002 08:04 PM madis wrote,
>On Mon, 15 Jul 2002, Ken Hayber wrote:
>> Maybe they're just two complementary ways to accomplish the same thing:
>> ..gz for local files, content-coding for http-served files. Would it be
>> hard to implement both?
>I looked for it now, seems that it requires modifing IO/http.c and cache.c
>(at least). Implementing this way would be *the right thing* imho, but it
>requires fully understanding how these two things talk with each other
>(what i didn't bothered). Main problem is that a part of http traffic is
>gzip'ed (body), but another part is not (header).
Yes, IMHO it is the *right thing* to do.
Vikas G P
[Dillo-dev]gzipped HTML files
From: Geoff Lane <zzassgl@tw...> - 2002-07-17 07:46
A few months ago I posted some patches for gzipped HTML support. These can
be found at
http://twirl.mcc.ac.uk/dillo/dillo_gzip.html
There is also a very brief discussion about the requirements and possible
improvements. The patches will probably need to be re-worked for the recent
dillo releases. Anyone who want's to grab a copy and work up a proper patch
for dillo, please do so.
I see that Apache2 contains mod_gzip as a standard module - there's probably
going to be a lot more compressed web pages in the future.
--
/\ Geoff. Lane. /\ Manchester Computing /\ Manchester /\ M13 9PL /\ England /\
Govt investigations contribute more to amusement than knowledge.
Re: [Dillo-dev]RE: Dillo-dev digest, Vol 1 #539 - 1 msg
From: madis <madis@cy...> - 2002-07-16 19:53
On 16 Jul 2002, Patrick Glennon wrote:
> Go into ~/.dillo/dillorc and make changes to these entries, depending on
> how much you want to strip it down:
>
> show_back=NO
> show_forw=NO
> show_home=NO
> show_reload=NO
> show_save=NO
> show_stop=NO
> show_menubar=NO
> show_clear_url=NO
> show_url=NO
> show_progress_box=NO
>
and...
panel_size=tiny
--
mzz
Re: [Dillo-dev]RE: Dillo-dev digest, Vol 1 #539 - 1 msg
From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-07-16 19:43
Hi Jedediah,
on Tue, 16 Jul 2002 16:31:41 -0300 "Jedediah Ferguson"
<jFerguson@tr...> wrote:
> I was wondering if there is a means to suppress the navigation bar.
> I am only running a 1/4 VGA display and it would be advantageous is
> the naviagtion bar could be removed or hidden upon initialization as
> it would make for a cleaner GUI.
You can double-click inside the window to go into full-window mode.
There is no command line option to run it from the start in that mode. But I
have a preliminary patch here:
http://melvin.hadasht.free.fr/home/dillo/fullwindow/index.html
Cheers
--
Melvin Hadasht
Re: [Dillo-dev]RE: Dillo-dev digest, Vol 1 #539 - 1 msg
From: Jamin W. Collins <jcollins@as...> - 2002-07-16 19:41
On Tue, 16 Jul 2002 16:31:41 -0300 "Jedediah Ferguson"
<jFerguson@tr...> wrote:
> I was wondering if there is a means to suppress the navigation bar. I
> am only running a 1/4 VGA display and it would be advantageous is the
> naviagtion bar could be removed or hidden upon initialization as it
> would make for a cleaner GUI.
Double-click the background of the browser's page.
--
Jamin W. Collins
Re: [Dillo-dev]RE: Dillo-dev digest, Vol 1 #539 - 1 msg
From: Patrick Glennon <pglennon@me...> - 2002-07-16 19:38
Attachments: Message as HTML
Go into ~/.dillo/dillorc and make changes to these entries, depending on
how much you want to strip it down:
show_back=NO
show_forw=NO
show_home=NO
show_reload=NO
show_save=NO
show_stop=NO
show_menubar=NO
show_clear_url=NO
show_url=NO
show_progress_box=NO
I also use it on an embedded system, and have also found it helpful to
blank the X cursor... let me know if you would like a patch for
that... it just amounts to replacing the gdk cursor call with an inline
blank gdk cursor creation, and it is just two files that need to be
modified....
Cheers!
-Patrick
On Tue, 2002-07-16 at 14:31, Jedediah Ferguson wrote:
Dillo-Dev,
Dillo is an impressive web browser. I am currently running it on a minimal Debian system on a single board computer in the hopes of using it as a GUI. Dillo runs much more quickly than other browsers I have tried. It can even render complex sites like Slashdot almost as fast as the video can refresh.
I was wondering if there is a means to suppress the navigation bar. I am only running a 1/4 VGA display and it would be advantageous is the naviagtion bar could be removed or hidden upon initialization as it would make for a cleaner GUI.
Thanks for a Great Program.
Best Regards,
Jedediah Ferguson
Computer Engineering Co-op
mailto:Jedediah.Ferguson@tr...
http://www.trecan.com
4049 St. Margaret's Bay Road
Hubley, Nova Scotia, B3Z 1C2, Canada
Phone: 902 876-0457
Fax: 902 876-8275
-------------------------------------------------------
This s...net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Dillo-dev mailing list
Dillo-dev@li...
https://lists.so....net/lists/listinfo/dillo-dev
[Dillo-dev]RE: Dillo-dev digest, Vol 1 #539 - 1 msg
From: Jedediah Ferguson <jFerguson@tr...> - 2002-07-16 19:31
Dillo-Dev,
Dillo is an impressive web browser. I am currently running it on a =
minimal Debian system on a single board computer in the hopes of using =
it as a GUI. Dillo runs much more quickly than other browsers I have =
tried. It can even render complex sites like Slashdot almost as fast as =
the video can refresh.
I was wondering if there is a means to suppress the navigation bar. I =
am only running a 1/4 VGA display and it would be advantageous is the =
naviagtion bar could be removed or hidden upon initialization as it =
would make for a cleaner GUI.
Thanks for a Great Program.
Best Regards,
Jedediah Ferguson
Computer Engineering Co-op
mailto:Jedediah.Ferguson@tr...
http://www.trecan.com
4049 St. Margaret's Bay Road
Hubley, Nova Scotia, B3Z 1C2, Canada
Phone: 902 876-0457
Fax: 902 876-8275
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Sebastian Geerken <sgeerken@st...> - 2002-07-16 15:14
On Thu, Jul 11, 2002 at 01:16:53PM -0500, Paul Chamberlain wrote:
> I think you set my expectations too high. I have a LOT of
> bookmarks in mozilla. I'm not sure which one caused it,
> but when dillo tried to load, it said:
>
> Loading bookmarks...
>
> GLib-ERROR **: could not allocate -75 bytes
> aborting...
> Aborted (core dumped)
Funnily, I had them in the booksmark.html file, i.e. something like
---
...
<li><A HREF="...">...</A></li>
** CRITICAL **: file web.c: line 56 (a_Web_dispatch_by_type): assertion `dw != NULL' failed.
<li><A HREF="...">...</A></li>
** WARNING **: 11 styles left
** WARNING **: 2 fonts (11 references) left
** WARNING **: 2 colors (11 references) left
** WARNING **: 1 shaded colors (8 references) left
<li><A HREF="...">...</A></li>
...
---
I cannot reproduce this, someone who can should insert an entry in to
the bug tracking engine. (I'm not even sure if these bugs still exist,
I rarely use the "View Bookmarks" function.)
> This s...net email is sponsored by:ThinkGeek
> PC Mods, Computing goodies, cases & more
> http://thinkgeek.com/sf
Seems that is time to switch the list hoster.
Sebastian
Re: [Dillo-dev]Re:Reading gzipped files
From: Ken Hayber <khayber@so...> - 2002-07-15 14:48
I looked a bit more at the RFCs and see that there is also a
transfer-coding attribute that seems to be more directed at what I am
talking about. It seems a bit confusing; maybe I'll take a look at the
apache code and see if I can tell what they are doing. It seems that
content-coding may be intended to describe the content (not modify it) and
transfer coding describes how it is being transferred (on the fly, e.g.
chunked, gzip, etc).
I found a small discussion indicating that a content-coding of gzip might
indicate to the browser (UA) to save the file rather than display it,
whereas the transfer-encoding would indicate that the UA should decode it.
(http://ftp.ics.uci.edu/pub/ietf/http/hypermail/1999/0197.html)
On Monday, July 15, 2002, at 07:52 AM, madis wrote:
> On Mon, 15 Jul 2002, Ken Hayber wrote:
>
>> My point was that I believe that when http servers like apache support
>> gzip they do not change the filename, they just compress the data on the
>> fly. I could be wrong too, but that's what I believe is the case. It is
>> the content-coding attribute that tells the browser it is compressed, not
>> the filename.
>>
>> Maybe they're just two complementary ways to accomplish the same thing:
>> ..gz for local files, content-coding for http-served files. Would it be
>> hard to implement both?
>
> I looked for it now, seems that it requires modifing IO/http.c and cache.
> c
> (at least). Implementing this way would be *the right thing* imho, but it
> requires fully understanding how these two things talk with each other
> (what i didn't bothered). Main problem is that a part of http traffic is
> gzip'ed (body), but another part is not (header).
>
Re: [Dillo-dev]Re:Reading gzipped files
From: madis <madis@cy...> - 2002-07-15 14:35
On Mon, 15 Jul 2002, Ken Hayber wrote:
> My point was that I believe that when http servers like apache support
> gzip they do not change the filename, they just compress the data on the
> fly. I could be wrong too, but that's what I believe is the case. It is
> the content-coding attribute that tells the browser it is compressed, not
> the filename.
>
> Maybe they're just two complementary ways to accomplish the same thing:
> ..gz for local files, content-coding for http-served files. Would it be
> hard to implement both?
I looked for it now, seems that it requires modifing IO/http.c and cache.c
(at least). Implementing this way would be *the right thing* imho, but it
requires fully understanding how these two things talk with each other
(what i didn't bothered). Main problem is that a part of http traffic is
gzip'ed (body), but another part is not (header).
--
mzz
Re: [Dillo-dev]Re:Reading gzipped files
From: Ken Hayber <khayber@so...> - 2002-07-15 13:53
Well, if you're trying to add support to open .html.gz files like some
other apps (I've seen others like .ps.gz, ...?) can do then I think you're
fine.
My point was that I believe that when http servers like apache support
gzip they do not change the filename, they just compress the data on the
fly. I could be wrong too, but that's what I believe is the case. It is
the content-coding attribute that tells the browser it is compressed, not
the filename.
Maybe they're just two complementary ways to accomplish the same thing:
.gz for local files, content-coding for http-served files. Would it be
hard to implement both?
On Sunday, July 14, 2002, at 11:22 PM, Vikas G P wrote:
> On Friday, July 12, 2002, Ken Hayber wrote,
>
>> Not to be negative, but isn't the proper way to handle gzip in a browser
>> to check the content-coding attribute and not the filename/ext?
>
> As I said, the patch only works for _local_ files, so we get it's type
> from it's extension, and if the ext is .gz,
> it is stripped and the resulting name is examined again.
>
>> I thought
>> the filename stays the same.
>
> Where does the filename change ?
> Or am I getting this wrong ?
>
> Vikas G P
>
>
>
>
> -------------------------------------------------------
> This s...net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
>
"Nothing is impossible for anyone impervious to reason."
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ken Hayber
mailto:khayber@so...
http://khayber.dyndns.org
[Dillo-dev]Re:Reading gzipped files
From: Vikas G P <vikasgp386@ho...> - 2002-07-15 07:00
On Friday, July 12, 2002, Ken Hayber wrote,
> Not to be negative, but isn't the proper way to handle gzip in a browser
> to check the content-coding attribute and not the filename/ext?
As I said, the patch only works for _local_ files, so we get it's type from it's extension, and if the ext is .gz,
it is stripped and the resulting name is examined again.
> I thought
> the filename stays the same.
Where does the filename change ?
Or am I getting this wrong ?
Vikas G P
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Tomas Guemes <tomas@pa...> - 2002-07-14 02:20
On 13 Jul 2002 09:56:31 -0500
"Lars Clausen" <lrclause@cs.uiuc.edu> wrote:
>
> On Sat, 13 Jul 2002, Tomas Guemes wrote:
>
> > I made a patch so dillo can support subdirectories in the bookmarks
> > menu, cause otherwise if you have a lot of entries, part of the menu
> > will be out of the screen and could not be reached with the actual
> > flat bookmarks scheme. Also I have modified the python script
> > xbel2html, to fit the format of the patch.
>
> Ohhh! I wanted to see that! Thank you.
>
> > You can find the patch and the script xbel2dbm in
> > http://golem/tomas/dillo/
>
> Uhm... golem? That must be a new top-level domain that I've never
> heard of before:)
>
Sorry, this is the internal name :)
http://pasky.dhs.org/tomas/dillo/
> -Lars
>
> --
> Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of
> Numenor"I do not agree with a word that you say, but I
> |---------------------------- will defend to the death your right to
> |say it." | Where are we going, and --Evelyn Beatrice Hall
> |paraphrasing Voltaire | what's with the handbasket?
>
>
> -------------------------------------------------------
> This s...net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Lars Clausen <lrclause@cs...> - 2002-07-13 14:56
On Sat, 13 Jul 2002, Tomas Guemes wrote:
> I made a patch so dillo can support subdirectories in the bookmarks
> menu, cause otherwise if you have a lot of entries, part of the menu
> will be out of the screen and could not be reached with the actual flat
> bookmarks scheme. Also I have modified the python script xbel2html, to
> fit the format of the patch.
Ohhh! I wanted to see that! Thank you.
> You can find the patch and the script xbel2dbm in
> http://golem/tomas/dillo/
Uhm... golem? That must be a new top-level domain that I've never heard of
before:)
-Lars
--=20
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| H=E5rdgrim of Numenor
"I do not agree with a word that you say, but I |------------------------=
----
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbas=
ket?
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Tomas Guemes <tomas@pa...> - 2002-07-13 13:14
On Thu, 11 Jul 2002 03:16:21 +0200 (MET DST)
"Lawrence Mayer" <Lawrence.Mayer@ds...> wrote:
> Hi,
>
> I use Dillo, Links, Lynx, and Netscape. So far, all my bookmarks are
> in Netscape, but I would love to be able to share my bookmarks between
> these 4 browsers.
> 2. Any utilities which CONVERT bookmarks back and forth between the
> above browsers, or at least some of them?
I found a way to convert through xbel.
Xbel is the XML format used by konqueror, there are some programs to
convert xbel to other formats and viceversa, the debian packages are
xbel and xbel-utils you can read more and find them in
http://pyxml.so....net/topics/xbel/
I made a patch so dillo can support subdirectories in the bookmarks
menu, cause otherwise if you have a lot of entries, part of the menu
will be out of the screen and could not be reached with the actual flat
bookmarks scheme. Also I have modified the python script xbel2html, to
fit the format of the patch.
You can find the patch and the script xbel2dbm in
http://golem/tomas/dillo/
greetings
Tomas
Re: [Dillo-dev][PATCH] reading gzipped files
From: Ken Hayber <khayber@so...> - 2002-07-12 13:35
Not to be negative, but isn't the proper way to handle gzip in a browser
to check the content-coding attribute and not the filename/ext? The rfc
says on-the-fly encoding/decoding between server and client. I thought
the filename stays the same.
bug #156:
Impact: feature fault
At: run time
Type: misbehaviour
Comments: Dillo doesn't render gzipped html's. Sourceforge (once) put
up a gzipped inde.html and all I got was binary :-(
This is kind of new, but nice!
HTReproduce: Just gzip a local .html. Try to look at it in Netscape and
then in Dillo.
On Friday, July 12, 2002, at 12:38 AM, Vikas G P wrote:
> Hi everyone,
>
> Here's a small patch to make dillo read gzipped files[BUG #156]. It only
> works only on local files, since a .gz file on a server is
> probably there for download. It sends the content-length as 0, which is
> ugly, but seems to work fine.
>
> Happy coding,
> Vikas
[Dillo-dev][PATCH] reading gzipped files
From: Vikas G P <vikasgp386@ho...> - 2002-07-12 07:33
Hi everyone,
Here's a small patch to make dillo read gzipped files[BUG #156]. It only works only on local files, since a .gz file on a server is
probably there for download. It sends the content-length as 0, which is ugly, but seems to work fine.
Happy coding,
Vikas
--------------------
--- dillo-0.6.6/src/IO/file.c Wed Apr 10 06:29:42 2002
+++ dillo-0.6.6.patch/src/IO/file.c Thu Jul 11 18:08:23 2002
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <signal.h>
#include <math.h> /* for rint */
+#include <zlib.h>
#include <errno.h> /* for errno */
#include "Url.h"
@@ -80,7 +81,8 @@ static gint File_get_file(const gchar *F
static gint File_get_dir(const gchar *DirName);
static char *File_dir2html(DilloDir *Ddir);
static void File_not_found_msg(DilloWeb *web, const char *filename, int fd);
-
+static gint File_ext(const char *filename,const char *ext);
+static char *File_content_type_gz(const char *filename);
/*
* Allocate a DilloFile structure, and set working values in it.
@@ -162,6 +164,7 @@ static void *File_transfer_file(void *da
char buf[8192];
DilloFile *Dfile = data;
ssize_t nbytes;
+ gzFile gzipfile;
/* Set this thread to detached state */
pthread_detach(Dfile->th1);
@@ -172,7 +175,8 @@ static void *File_transfer_file(void *da
/* Send File Size info */
if (Dfile->FileSize != -1) {
- sprintf(buf, "Content-length: %ld\n", Dfile->FileSize);
+ sprintf(buf, "Content-length: %ld\n",
+ File_ext(Dfile->Filename,"gz") ? 0l : Dfile->FileSize );
write(Dfile->FD_Write, buf, strlen(buf));
}
/* Send end-of-header */
@@ -181,8 +185,23 @@ static void *File_transfer_file(void *da
/* Append raw file contents */
- while ( (nbytes = read(Dfile->FD, buf, 8192)) != 0 ) {
- write(Dfile->FD_Write, buf, nbytes);
+
+ /* gzipped */
+ if( File_ext(Dfile->Filename,"gz")){
+ if( (gzipfile = gzdopen(Dfile->FD,"rb")) ){;
+ while( (nbytes = gzread(gzipfile, buf, 8192)) != 0){
+ write(Dfile->FD_Write, buf, nbytes);
+ }
+ }
+ else{
+ g_print("Error: Could not decompress gzipped file\n");
+ }
+ }
+ /* not gzipped */
+ else{
+ while ( (nbytes = read(Dfile->FD, buf, 8192)) != 0 ) {
+ write(Dfile->FD_Write, buf, nbytes);
+ }
}
close(Dfile->FD);
@@ -258,8 +277,21 @@ static char *File_content_type(const cha
} else if (File_ext(filename, "html") || File_ext(filename, "htm") ||
File_ext(filename, "shtml")) {
return "text/html";
+ } else if(File_ext(filename, "gz")){
+ return File_content_type_gz(filename);
}
return "text/plain";
+}
+
+/*
+ * Return content_type of the uncompressed file
+ */
+static char *File_content_type_gz(const char *filename)
+{
+ gchar *original_name = g_strndup(filename,rindex(filename,(int)'.')-filename);
+ gchar *content_type = File_content_type(original_name);
+ g_free(original_name);
+ return content_type;
}
/*
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Paul Chamberlain <tif@ti...> - 2002-07-11 18:17
Ross J. Reedstrom wrote:
> Well, for dillo and netscape, you can just put a symlink in one or the other's
> dot directory to the others bookmarks.html file. I just tested this by
> symlinking ~/.diullorc/bookmarks.html to ~/.mozilla/default/bookmarks.html
I think you set my expectations too high. I have a LOT of
bookmarks in mozilla. I'm not sure which one caused it,
but when dillo tried to load, it said:
Loading bookmarks...
GLib-ERROR **: could not allocate -75 bytes
aborting...
Aborted (core dumped)
--
Paul Chamberlain, tif@ti...
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Pat Shanahan <pat@em...> - 2002-07-11 11:34
* Ross J. Reedstrom <reedstrm@ri...> [07-11-02 05:05]:
> On Thu, Jul 11, 2002 at 03:16:21AM +0200, Lawrence Mayer wrote:
> > Hi,
> >
> > I use Dillo, Links, Lynx, and Netscape. So far, all my bookmarks are in
> > Netscape, but I would love to be able to share my bookmarks between these
> > 4 browsers.
>
> Well, for dillo and netscape, you can just put a symlink in one or the other's
> dot directory to the others bookmarks.html file. I just tested this by
> symlinking ~/.diullorc/bookmarks.html to ~/.mozilla/default/bookmarks.html
>
> It worked fine: the 'View bookmarks" function in dillo handled the page just
> fine. with sections and everything.
You may also make bookmarks in netscape/dillo for each, ie:
file:///home/yurName/.dillo/bookmarks.html in Netacape &
file:///home/yurName/.mozilla/default/bookmarks.html in Dillo
--
Patrick Shanahan
Registered Linux User #207535
@ http://counter.li.org
Re: [Dillo-dev]Netscape bookmarks conversion?
From: Ross J. Reedstrom <reedstrm@ri...> - 2002-07-11 05:49
On Thu, Jul 11, 2002 at 03:16:21AM +0200, Lawrence Mayer wrote:
> Hi,
>
> I use Dillo, Links, Lynx, and Netscape. So far, all my bookmarks are in
> Netscape, but I would love to be able to share my bookmarks between these
> 4 browsers.
Well, for dillo and netscape, you can just put a symlink in one or the other's
dot directory to the others bookmarks.html file. I just tested this by
symlinking ~/.diullorc/bookmarks.html to ~/.mozilla/default/bookmarks.html
It worked fine: the 'View bookmarks" function in dillo handled the page just
fine. with sections and everything.
Ross
[Dillo-dev]Netscape bookmarks conversion?
From: Lawrence Mayer <Lawrence.Mayer@ds...> - 2002-07-11 01:16
Hi,
I use Dillo, Links, Lynx, and Netscape. So far, all my bookmarks are in
Netscape, but I would love to be able to share my bookmarks between these
4 browsers.
Can anyone offer any advice?
1. Will Netscape's bookmark import do me any good here?
2. Any utilities which CONVERT bookmarks back and forth between the above
browsers, or at least some of them?
3. Any utilities which SYNCHRONIZE bookmarks between the above browsers,
or at least some of them?
I would be thankful for your advice or tips.
Friendly Greetings,
Lawrence Mayer <lawmay@ki.se>
Ume=E5, Sweden
Re: [Dillo-dev]Cookies don't work
From: Jorgen Viksell <jorgen.viksell@te...> - 2002-07-10 13:49
> Allo,
Hi,
=20
> I compiled dillo-0.6.6, passing the parameter --enable-cookies, and got n=
o
> errors; made sure my ~/.dillo/cookiesrc says:
> DEFAULT ACCEPT
>=20
> yet cookies don't appear to work. ~/.dillo/cookies remains empty (0 byte=
)
> and web pages I visit don't retain my login information. Tested against
> http://www.livejournal.com, http://www.w30wnzj00.com, http://www.slashdot.org. =20
Slashdot works for me.=20
http://www.w30wnzj00.com seems to send a malformed expiry date and gets
ignored.=20
Unfortunately, I can't test livejournal ATM.
> Please advise; is there anything I did wrong, or any logfiles I should be=
looking at?
> Thanks.
You could change the line (in cookies.c) which says:
#define DEBUG_LEVEL 8
to:
#define DEBUG_LEVEL 1
Then it would tell you pretty much everything it does. A good starting
point would be to check if the date strings are parsed correctly.
>=20
> matthew@de...
>=20
Cheers,
J=F6rgen
[Dillo-dev]Cookies don't work
From: matthew <matthew@de...> - 2002-07-10 12:59
Allo,
I compiled dillo-0.6.6, passing the parameter --enable-cookies, and got no
errors; made sure my ~/.dillo/cookiesrc says:
DEFAULT ACCEPT
yet cookies don't appear to work. ~/.dillo/cookies remains empty (0 byte)
and web pages I visit don't retain my login information. Tested against
http://www.livejournal.com, http://www.w30wnzj00.com, http://www.slashdot.org. Please advise;
is there anything I did wrong, or any logfiles I should be looking at?
Thanks.
matthew@de...
[Dillo-dev]dillo user notes
From: Abc Xyz <abc@an...> - 2002-07-10 10:35
fbsd 4.5 dillo .66
i didn't use this more than a few minutes, but this is what
i was missing severely enough to stop ...
no keyboard navigation (esp backward foreward - Left/Right arrows).
(i hate having to reach for my mouse needlessly).
animated gifs apparently broken.
reload HTML meta tags don't work.
missing backwards/forewards in right-click mouse menu.
minor stuff ...
would be nice if "view source" opened to the same size as parent window.
i dunno if it does YahooMail and Hotmail, but that would be nice.
hopefully it uses ~/.mailcap ...
hopefully it allows https? for online ordering?
HTML warning: hexadecimal color lacks leading '#' - oh pooh.
WARNING: Cache_stop_client, inexistent client - lots of these.
wish list:
UP-ARW - up one link (or half/most of a page if no link).
DN-ARW - same, but downwards (like lynx - invert link colors).
ALT-UP-ARW - smooth scrolling up.
ALT-DN-ARW - smooth scrolling down.
ALT-LT-ARW - smooth scrolling left.
ALT-RT-ARW - smooth scrolling right.
i guess i would like to see that the user interface is
as snappy and hassle free as the browser :)
but all in all, this browser is small and snappy,
and renders *extremely* nicely. i can't wait till
i can use it and toss my 14MB Navigator!
with 40MB of Linux emulation :)
Re: [Dillo-dev]ecmascript, javascript and CSS
From: Freya <Freya@he...> - 2002-07-09 11:31
> > Is there an intention to implement these scripts?
>
> Both JavaScript and Java would greatly increase the size of Dillo and
Incidently, I've never felt the need to have java, I've never come
across any site that really required it that much on the client side
beyone a spectrum emulator and some really clever audio/video
technology. I think most Java is done through servlets and the like, I
do hope so anyway! :)
> require numerous hooks into the existing code to obtain the
> functionallity seen in other browsers. For example, in DHTML, you
> perform special effects by tagging various events with a fragment of
> JavaScript so, for example, when the mouse moves over a specific area
> of the screen a button lights up or additional text appears. This has
> some deep implications about the way that Dillo paints the window
> images.
I've been wondering about this, Mozilla of course has preety good
javascript support and the thing is, is that it uses some kind of plugin
architechture for the scripting, so I was wondering if we could just
provide support for the plugin architexture and just use their scripting
engine, or whatever scripting engines are available, or even no
scripting engine.
The trouble I have with this idea, is that all this talk of Mozilla just
having a javascript plugin, is I suspect a real oversimplification of
things. It surely must talk directly to the rendering engine at a really
low and nasty level. Whats worse, is I don't even think it's as simple
as having implications in the way that dillo paints the window images,
as I understand it you would have to implement some kind of object model
in the rendering engine too? This seems to me like a massive task unless
the object model is implemented in the js engine which I strongly
suspect it isn't, it's too specific to rendering and I think their
javascript engine is also used in the netscape webserver, or at least
used to be.
Personally I can also live without things like DHTML support. I'd really
just like support something like that of Netscape 3, enough to let me
log in to yahoo mail and the like, however the more I think about it the
more nasty it seems.
> > how about flash?
I've often thought it would be nice to just have a flash browser
seperately from my webbrowser that could just open flash site if I felt
the need or show animations, I don't see much point in it being part of
the browser and I generally hate flash as it's mostly just used for
really annoying adverts.
> If anyone has some spare time, one project that would usefully
> demonstrate the kind of changes that would be needed in the Dillo
> image code is implementing GIF and PNG animations. You would need
> some kind of regular"update animation" event and some state
> information associated with animation files. A thread[1] per animated
> image using some kind of "server push" scheme may work; or more
> crudely, you could get the cache to manage it all and set up some kind
> of list of "repaint screen area x,y,w,h" events.
IF anyone does implement this please also implement an option to turn it
off! I think this is kind of low priority myself as it doesn't affect
the usability of a website much.
CSS was mentioned in the subject line, but no-one has really talked
about it here. Of all the technologies unimplimented, this is in a way
the nicest, as it's not actually fudamentally bad technology in the way
that javascript or flash is. From the point of view of dillo
implementing good technology really well, my vote would be for css but
of course, thats just looking at creating a good browser based on nice
technology as opposed to the real world of websites. :(
love
Freya
Re: [Dillo-dev]ecmascript, javascript and CSS
From: Geoff Lane <zzassgl@tw...> - 2002-07-09 07:59
> Is there an intention to implement these scripts?
Both JavaScript and Java would greatly increase the size of Dillo and
require numerous hooks into the existing code to obtain the functionallity
seen in other browsers. For example, in DHTML, you perform special effects
by tagging various events with a fragment of JavaScript so, for example,
when the mouse moves over a specific area of the screen a button lights up
or additional text appears. This has some deep implications about the way
that Dillo paints the window images.
> how about flash?
The flash "interpreter" is quite small and for simple images you could run
it as an external helper (I have actually thought about doing this) but you
wouldn't get any of the interactive or animation features. Again, proper
implementation of flash would require some extensive changes in the way
Dillo paints the window images.
If anyone has some spare time, one project that would usefully demonstrate
the kind of changes that would be needed in the Dillo image code is
implementing GIF and PNG animations. You would need some kind of regular
"update animation" event and some state information associated with
animation files. A thread[1] per animated image using some kind of "server
push" scheme may work; or more crudely, you could get the cache to manage it
all and set up some kind of list of "repaint screen area x,y,w,h" events.
BTW, for those of you waiting for the external helper code - sorry, Real
World events have delayed any progress recently. Work is continuing, just
very, very slowly.
[1] True threads acting as "data generators" is a very powerful design idea
for browsers and can hugely simplify the code in some cases.
--
/\ Geoff. Lane. /\ Manchester Computing /\ Manchester /\ M13 9PL /\ England /\
Syntax is another name for conscience money.
Re: [Dillo-dev]ecmascript, javascript and CSS
From: Scott Barnes <reeve@du...> - 2002-07-08 19:45
Attachments: Message as HTML Message as HTML
[Dillo-dev]ecmascript, javascript and CSS
From: jonathan chetwynd <j.chetwynd@bt...> - 2002-07-08 16:26
Is there an intention to implement these scripts?
how about flash?
thanks
jonathan
[Dillo-dev]A quick Thankyou
From: Freya <Freya@he...> - 2002-07-08 14:26
Madis sent me a binary of the latest CVS with some extra stuff patched.
Thankyou Madis!
I'm rather taken aback at how much faster and stable it is than my old
copy. So far it's never crashed at all and I'm able to use a lot more
websites etc now that I have cookies! I'm not sure where the speed
increase is coming from. Madis stripped it before sending it to me but
I've been led to believe that this shouldn't make a lot of difference.
Perhaps it does when you only have 8mb!
Anyway thankyou to you all for your help which makes my nasty old laptop
almost as usable as the Duron downstairs.
love
Freya
Re: [Dillo-dev]valign="middle"
From: Freya <Freya@he...> - 2002-07-06 17:24
A bit of further investigation shows this is definitely a dillo thing.
Hard breaks also don't seem to render in dillo.
I booted a computer using konoppix, (a version of linux that runs
directly off a cd-rom with a read only live file system) and tried a
number of webbrowsers that it comes with. I also tried some pages in IE
under windows.
The results were kind of interesting. All of them seem to render valign
properly. My page seemed to render best in Mozzilla. Konquerer a close
second, but what shocked me was how ghastly everything looked in IE, and
I'm not just talking about my page but a lot of sites I looked at.
Interestingly, dillo seems to my eye to make webpages look the nicest.
The valign bug even makes one page I use look much better! ;)
I guess theres still a few problems in the dillo rendering engine. It
tends to render pages so well usually that I always just kind of assume
that part of dillo is perfect! :)
love
Freya
> I'm writing a webpage and I'm trying to centere the text vertically in
> a cell of a table. I'm using valign="middle" in a td element but it
> seems to have absolutely no effect. Is this supported in dillo or is
> there something very wierd about my webpage?
>
> I don't presently have the latest dillo, so it might be related to
> that? I'm currently running 0.62, if anyone has a more recent compiled
> binary they could e-mail me that would be great as I don't presently
> have a working compiler. :(
>
> love
>
> Freya
>
>
> -------------------------------------------------------
> This s...net email is sponsored by:ThinkGeek
> Got root? We do.
> http://thinkgeek.com/sf
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
[Dillo-dev]valign="middle"
From: Freya <Freya@he...> - 2002-07-06 10:05
I'm writing a webpage and I'm trying to centere the text vertically in a
cell of a table. I'm using valign="middle" in a td element but it seems
to have absolutely no effect. Is this supported in dillo or is there
something very wierd about my webpage?
I don't presently have the latest dillo, so it might be related to that?
I'm currently running 0.62, if anyone has a more recent compiled binary
they could e-mail me that would be great as I don't presently have a
working compiler. :(
love
Freya
Re: [Dillo-dev]Dillo scaling hack
From: Pigeon <pigeon@pi...> - 2002-07-03 13:34
> No ARM binaries to test, I'm afraid. Do you have a cross-compile setup
> working for dillo? I'd love to know how you set it up.
I have both cross compiling and native compiling environment setup. For cross compiling I basically use the one found on handhelds.org, the skiff one.
Pigeon.
[Dillo-dev]ematic is down again :(
From: Jorge Arellano Cid <jcid@in...> - 2002-07-02 18:34
Hi there,
Once again, when at crossroads, the ematic server goes down (I'll
begin to think about a correlation there ;).
Well, just send me email to [jcid at inf.utfsm.cl]
Cheers
Jorge.-
--
|