oops, use right list when going backwards should fix fs #247
[xombrero.git] / xxxterm.h
blob4478c0ce7fb2ac196dec233f066457656b1ab7e0
1 /*
2 * Copyright (c) 2011 Conformal Systems LLC <info@conformal.com>
3 * Copyright (c) 2011 Marco Peereboom <marco@peereboom.us>
4 * Copyright (c) 2010, 2011, 2012 Edd Barrett <vext01@gmail.com>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #include <ctype.h>
20 #include <dlfcn.h>
21 #include <err.h>
22 #include <errno.h>
23 #include <libgen.h>
24 #include <pwd.h>
25 #include <regex.h>
26 #include <signal.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include <unistd.h>
31 #include <dirent.h>
32 #include <fcntl.h>
33 #include <inttypes.h>
35 #include <sys/types.h>
36 #if defined(__linux__)
37 #include "linux/util.h"
38 #include "linux/tree.h"
39 #include <bsd/stdlib.h>
40 # if !defined(sane_libbsd_headers)
41 void arc4random_buf(void *, size_t);
42 u_int32_t arc4random_uniform(u_int32_t);
43 # endif
44 #elif defined(__FreeBSD__)
45 #include <libutil.h>
46 #include "freebsd/util.h"
47 #include <sys/tree.h>
48 #elif defined(__OpenBSD__)
49 #include <util.h>
50 #include <sys/tree.h>
51 #else
52 #include <sys/tree.h>
53 #endif
54 #include <sys/queue.h>
55 #include <sys/socket.h>
56 #include <sys/stat.h>
57 #include <sys/time.h>
58 #include <sys/un.h>
60 #include <gtk/gtk.h>
61 #include <gdk/gdkkeysyms.h>
63 #if GTK_CHECK_VERSION(3,0,0)
64 /* we still use GDK_* instead of GDK_KEY_* */
65 #include <gdk/gdkkeysyms-compat.h>
66 #endif
68 #include <webkit/webkit.h>
69 #include <libsoup/soup.h>
70 #include <JavaScriptCore/JavaScript.h>
71 #include <gnutls/gnutls.h>
72 #include <gnutls/x509.h>
74 /* comment if you don't want to use threads */
75 #define USE_THREADS
77 #ifdef USE_THREADS
78 #include <gcrypt.h>
79 #include <pthread.h>
80 #endif
82 /* set if you don't want to use signals */
83 #ifndef XT_SIGNALS_DISABLE
84 #include <sys/wait.h>
85 #endif
87 /* set if you don't want to use resource limits */
88 #ifndef XT_RESOURCE_LIMITS_DISABLE
89 #include <sys/resource.h>
90 #endif
92 #include "javascript.h"
94 javascript.h borrowed from vimprobable2 under the following license:
96 Copyright (c) 2009 Leon Winter
97 Copyright (c) 2009-2011 Hannes Schueller
98 Copyright (c) 2009-2010 Matto Fransen
99 Copyright (c) 2010-2011 Hans-Peter Deifel
100 Copyright (c) 2010-2011 Thomas Adam
101 Copyright (c) 2011 Albert Kim
102 Copyright (c) 2011 Daniel Carl
104 Permission is hereby granted, free of charge, to any person obtaining a copy
105 of this software and associated documentation files (the "Software"), to deal
106 in the Software without restriction, including without limitation the rights
107 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
108 copies of the Software, and to permit persons to whom the Software is
109 furnished to do so, subject to the following conditions:
111 The above copyright notice and this permission notice shall be included in
112 all copies or substantial portions of the Software.
114 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
115 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
116 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
117 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
118 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
119 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
120 THE SOFTWARE.
123 /*#define XT_DEBUG*/
124 #ifdef XT_DEBUG
125 #define DPRINTF(x...) do { if (swm_debug) fprintf(stderr, x); } while (0)
126 #define DNPRINTF(n,x...) do { if (swm_debug & n) fprintf(stderr, x); } while (0)
127 #define XT_D_MOVE 0x0001
128 #define XT_D_KEY 0x0002
129 #define XT_D_TAB 0x0004
130 #define XT_D_URL 0x0008
131 #define XT_D_CMD 0x0010
132 #define XT_D_NAV 0x0020
133 #define XT_D_DOWNLOAD 0x0040
134 #define XT_D_CONFIG 0x0080
135 #define XT_D_JS 0x0100
136 #define XT_D_FAVORITE 0x0200
137 #define XT_D_PRINTING 0x0400
138 #define XT_D_COOKIE 0x0800
139 #define XT_D_KEYBINDING 0x1000
140 #define XT_D_CLIP 0x2000
141 #define XT_D_BUFFERCMD 0x4000
142 #define XT_D_INSPECTOR 0x8000
143 #define XT_D_VISITED 0x10000
144 #define XT_D_HISTORY 0x20000
145 extern uint32_t swm_debug;
146 #else
147 #define DPRINTF(x...)
148 #define DNPRINTF(n,x...)
149 #endif
151 #define LENGTH(x) (sizeof x / sizeof x[0])
152 #define CLEAN(mask) (mask & ~(GDK_MOD2_MASK) & \
153 ~(GDK_BUTTON1_MASK) & \
154 ~(GDK_BUTTON2_MASK) & \
155 ~(GDK_BUTTON3_MASK) & \
156 ~(GDK_BUTTON4_MASK) & \
157 ~(GDK_BUTTON5_MASK))
159 #define XT_NOMARKS (('z' - 'a' + 1) * 2 + 10)
161 /* Path Separator */
162 #ifndef PS
163 #define PS "/"
164 #endif
166 struct tab {
167 TAILQ_ENTRY(tab) entry;
168 GtkWidget *vbox;
169 GtkWidget *tab_content;
170 struct {
171 GtkWidget *label;
172 GtkWidget *favicon;
173 GtkWidget *eventbox;
174 GtkWidget *box;
175 GtkWidget *sep;
176 } tab_elems;
177 GtkWidget *label;
178 GtkWidget *spinner;
179 GtkWidget *uri_entry;
180 GtkWidget *search_entry;
181 GtkWidget *toolbar;
182 GtkWidget *browser_win;
183 GtkWidget *statusbar_box;
184 struct {
185 GtkWidget *statusbar;
186 GtkWidget *buffercmd;
187 GtkWidget *zoom;
188 GtkWidget *position;
189 } sbe;
190 GtkWidget *cmd;
191 GtkWidget *buffers;
192 GtkWidget *oops;
193 GtkWidget *backward;
194 GtkWidget *forward;
195 GtkWidget *stop;
196 GtkWidget *gohome;
197 GtkWidget *js_toggle;
198 GtkEntryCompletion *completion;
199 guint tab_id;
200 WebKitWebView *wv;
202 WebKitWebHistoryItem *item;
203 WebKitWebBackForwardList *bfl;
205 /* favicon */
206 WebKitNetworkRequest *icon_request;
207 WebKitDownload *icon_download;
208 gchar *icon_dest_uri;
210 /* adjustments for browser */
211 GtkScrollbar *sb_h;
212 GtkScrollbar *sb_v;
213 GtkAdjustment *adjust_h;
214 GtkAdjustment *adjust_v;
216 /* flags */
217 int mode;
218 #define XT_MODE_COMMAND (0)
219 #define XT_MODE_INSERT (1)
220 #define XT_MODE_HINT (2)
221 #define XT_MODE_PASSTHROUGH (3)
222 int (*mode_cb)(struct tab *, GdkEventKey *, gpointer);
223 gpointer mode_cb_data;
224 int focus_wv;
225 int ctrl_click;
226 gchar *status;
227 int xtp_meaning; /* identifies dls/favorites */
228 gchar *tmp_uri;
229 int popup; /* 1 if cmd_entry has popup visible */
230 #ifdef USE_THREADS
231 /* https thread stuff */
232 GThread *thread;
233 #endif
234 /* hints */
235 int script_init;
236 int new_tab;
238 /* custom stylesheet */
239 int styled;
240 char *stylesheet;
242 /* search */
243 char *search_text;
244 int search_forward;
245 guint search_id;
247 /* settings */
248 WebKitWebSettings *settings;
249 gchar *user_agent;
250 gboolean load_images;
252 /* marks */
253 double mark[XT_NOMARKS];
255 /* inspector */
256 WebKitWebInspector *inspector;
257 GtkWidget *inspector_window;
258 GtkWidget *inspector_view;
260 TAILQ_HEAD(tab_list, tab);
262 struct karg {
263 int i;
264 char *s;
265 int precount;
268 struct download {
269 RB_ENTRY(download) entry;
270 int id;
271 WebKitDownload *download;
272 struct tab *tab;
274 RB_HEAD(download_list, download);
275 RB_PROTOTYPE(download_list, download, entry, download_rb_cmp);
277 struct history {
278 RB_ENTRY(history) entry;
279 gchar *uri;
280 gchar *title;
281 time_t time; /* When the item was added. */
283 RB_HEAD(history_list, history);
284 RB_PROTOTYPE(history_list, history, entry, history_rb_cmp);
286 #define XT_STS_FLAGS_INCLUDE_SUBDOMAINS (1)
287 #define XT_STS_FLAGS_EXPAND (2)
288 #define XT_STS_FILE ("strict-transport")
290 struct strict_transport {
291 RB_ENTRY(strict_transport) entry;
292 gchar *host;
293 time_t timeout;
294 int flags;
296 RB_HEAD(strict_transport_tree, strict_transport);
297 RB_PROTOTYPE(strict_transport_tree, strict_transport, entry, strict_transport_rb_cmp);
299 /* utility */
300 #define XT_NAME ("XXXTerm")
301 #define XT_CB_HANDLED (TRUE)
302 #define XT_CB_PASSTHROUGH (FALSE)
303 #define XT_FAVS_FILE ("favorites")
305 int run_script(struct tab *, char *);
306 void xt_icon_from_file(struct tab *, char *);
307 GtkWidget *create_window(const gchar *);
308 void show_oops(struct tab *, const char *, ...);
309 gchar *get_html_page(gchar *, gchar *, gchar *, bool);
310 const gchar *get_uri(struct tab *);
311 const gchar *get_title(struct tab *, bool);
312 void load_uri(struct tab *t, gchar *uri);
313 gboolean match_uri(const gchar *uri, const gchar *key);
314 int valid_url_type(char *);
316 void load_webkit_string(struct tab *, const char *, gchar *);
317 void button_set_stockid(GtkWidget *, char *);
319 /* cookies */
320 int remove_cookie(int);
321 int remove_cookie_domain(int);
322 int remove_cookie_all(void);
323 void print_cookie(char *msg, SoupCookie *);
324 void setup_cookies(void);
326 /* history */
327 int insert_history_item(const gchar *uri, const gchar *title, time_t time);
328 int save_global_history_to_disk(struct tab *t);
329 int restore_global_history(void);
330 char *color_visited_helper(void);
331 int color_visited(struct tab *t, char *visited);
333 /* completion */
334 void completion_add(struct tab *);
335 void completion_add_uri(const gchar *uri);
337 /* external editor */
338 #define XT_EE_BUFSZ (64 * 1024)
339 int edit_src(struct tab *t, struct karg *args);
340 int edit_element(struct tab *t, struct karg *a);
342 /* proxy */
343 #define XT_PRXY_SHOW (1<<0)
344 #define XT_PRXY_TOGGLE (1<<1)
346 /* inspector */
347 #define XT_INS_SHOW (1<<0)
348 #define XT_INS_HIDE (1<<1)
349 #define XT_INS_CLOSE (1<<2)
351 WebKitWebView* inspector_inspect_web_view_cb(WebKitWebInspector *,
352 WebKitWebView*, struct tab *);
353 void setup_inspector(struct tab *);
354 int inspector_cmd(struct tab *, struct karg *);
356 /* tld public suffix */
357 void tld_tree_init();
358 char *tld_get_suffix(const char *);
360 /* about */
361 #define XT_XTP_STR "xxxt://"
362 #define XT_URI_ABOUT ("about:")
363 #define XT_URI_ABOUT_LEN (strlen(XT_URI_ABOUT))
364 #define XT_URI_ABOUT_ABOUT ("about")
365 #define XT_URI_ABOUT_BLANK ("blank")
366 #define XT_URI_ABOUT_CERTS ("certs")
367 #define XT_URI_ABOUT_COOKIEWL ("cookiewl")
368 #define XT_URI_ABOUT_COOKIEJAR ("cookiejar")
369 #define XT_URI_ABOUT_DOWNLOADS ("downloads")
370 #define XT_URI_ABOUT_FAVORITES ("favorites")
371 #define XT_URI_ABOUT_HELP ("help")
372 #define XT_URI_ABOUT_HISTORY ("history")
373 #define XT_URI_ABOUT_JSWL ("jswl")
374 #define XT_URI_ABOUT_PLUGINWL ("plwl")
375 #define XT_URI_ABOUT_SET ("set")
376 #define XT_URI_ABOUT_STATS ("stats")
377 #define XT_URI_ABOUT_MARCO ("marco")
378 #define XT_URI_ABOUT_STARTPAGE ("startpage")
380 struct about_type {
381 char *name;
382 int (*func)(struct tab *, struct karg *);
385 struct sp {
386 char *line;
387 TAILQ_ENTRY(sp) entry;
389 TAILQ_HEAD(sp_list, sp);
391 int blank(struct tab *, struct karg *);
392 int help(struct tab *, struct karg *);
393 int about(struct tab *, struct karg *);
394 int stats(struct tab *, struct karg *);
395 void show_certs(struct tab *, gnutls_x509_crt_t *,
396 size_t, char *);
397 int ca_cmd(struct tab *, struct karg *);
398 int cookie_show_wl(struct tab *, struct karg *);
399 int xtp_page_cl(struct tab *, struct karg *);
400 int xtp_page_dl(struct tab *, struct karg *);
401 int xtp_page_fl(struct tab *, struct karg *);
402 int xtp_page_hl(struct tab *, struct karg *);
403 int parse_xtp_url(struct tab *, const char *);
404 int add_favorite(struct tab *, struct karg *);
405 void update_favorite_tabs(struct tab *);
406 void update_history_tabs(struct tab *);
407 void update_download_tabs(struct tab *);
408 void xtp_generate_keys(void);
409 size_t about_list_size(void);
410 int cookie_cmd(struct tab *, struct karg *);
411 int js_cmd(struct tab *, struct karg *);
412 int pl_cmd(struct tab *, struct karg *);
413 void startpage_add(const char *, ...);
416 * xtp tab meanings
417 * identifies which tabs have xtp pages in (corresponding to about_list indices)
419 #define XT_XTP_TAB_MEANING_NORMAL (-1) /* normal url */
420 #define XT_XTP_TAB_MEANING_BL (1) /* about:blank in this tab */
421 #define XT_XTP_TAB_MEANING_CL (4) /* cookie manager in this tab */
422 #define XT_XTP_TAB_MEANING_DL (5) /* download manager in this tab */
423 #define XT_XTP_TAB_MEANING_FL (6) /* favorite manager in this tab */
424 #define XT_XTP_TAB_MEANING_HL (8) /* history manager in this tab */
426 /* whitelists */
427 #define XT_WL_TOGGLE (1<<0)
428 #define XT_WL_ENABLE (1<<1)
429 #define XT_WL_DISABLE (1<<2)
430 #define XT_WL_FQDN (1<<3) /* default */
431 #define XT_WL_TOPLEVEL (1<<4)
432 #define XT_WL_PERSISTENT (1<<5)
433 #define XT_WL_SESSION (1<<6)
434 #define XT_WL_RELOAD (1<<7)
435 #define XT_SHOW (1<<8)
436 #define XT_DELETE (1<<9)
437 #define XT_SAVE (1<<10)
438 #define XT_OPEN (1<<11)
440 #define XT_WL_INVALID (0)
441 #define XT_WL_JAVASCRIPT (1)
442 #define XT_WL_COOKIE (2)
443 #define XT_WL_PLUGIN (3)
445 struct domain {
446 RB_ENTRY(domain) entry;
447 gchar *d;
448 int handy; /* app use */
450 RB_HEAD(domain_list, domain);
451 RB_PROTOTYPE(domain_list, domain, entry, domain_rb_cmp);
453 int wl_show(struct tab *, struct karg *, char *,
454 struct domain_list *);
456 /* uri aliases */
457 struct alias {
458 char *a_name;
459 char *a_uri;
460 TAILQ_ENTRY(alias) entry;
462 TAILQ_HEAD(alias_list, alias);
464 /* mime types */
465 struct mime_type {
466 char *mt_type;
467 char *mt_action;
468 int mt_default;
469 int mt_download;
470 TAILQ_ENTRY(mime_type) entry;
472 TAILQ_HEAD(mime_type_list, mime_type);
474 struct domain * wl_find(const gchar *, struct domain_list *);
475 int wl_save(struct tab *, struct karg *, int);
476 int toggle_cwl(struct tab *, struct karg *);
477 int toggle_js(struct tab *, struct karg *);
478 int toggle_pl(struct tab *, struct karg *);
480 /* input autofocus */
481 void input_autofocus(struct tab *);
482 void input_focus_blur(struct tab *, void *);
483 void *input_check_mode(struct tab *);
484 int command_mode(struct tab *, struct karg *);
486 /* OS specific */
487 int fork_exec(struct tab *, char *, const gchar *, char *, int);
489 /* settings */
490 #define XT_BM_NORMAL (0)
491 #define XT_BM_WHITELIST (1)
492 #define XT_BM_KIOSK (2)
494 #define XT_GM_CLASSIC (0)
495 #define XT_GM_MINIMAL (1)
497 #define XT_TABS_NORMAL (0)
498 #define XT_TABS_COMPACT (1)
500 #define XT_EM_HYBRID (0)
501 #define XT_EM_VI (1)
503 #define XT_DM_START (0)
504 #define XT_DM_ASK (1)
505 #define XT_DM_ADD (2)
507 #define XT_REFERER_ALWAYS (0)
508 #define XT_REFERER_NEVER (1)
509 #define XT_REFERER_SAME_DOMAIN (2)
510 #define XT_REFERER_CUSTOM (3)
512 #define CTRL GDK_CONTROL_MASK
513 #define MOD1 GDK_MOD1_MASK
514 #define SHFT GDK_SHIFT_MASK
516 struct key_binding {
517 char *cmd;
518 guint mask;
519 guint use_in_entry;
520 guint key;
521 TAILQ_ENTRY(key_binding) entry; /* in bss so no need to init */
523 TAILQ_HEAD(keybinding_list, key_binding);
525 struct user_agent {
526 char *value;
527 TAILQ_ENTRY(user_agent) entry;
529 TAILQ_HEAD(user_agent_list, user_agent);
531 struct settings {
532 char *name;
533 int type;
534 #define XT_S_INVALID (0)
535 #define XT_S_INT (1)
536 #define XT_S_STR (2)
537 #define XT_S_FLOAT (3)
538 uint32_t flags;
539 #define XT_SF_RESTART (1<<0)
540 #define XT_SF_RUNTIME (1<<1)
541 int *ival;
542 char **sval;
543 struct special *s;
544 gfloat *fval;
545 int (*activate)(char *);
548 int set(struct tab *, struct karg *);
549 size_t get_settings_size(void);
550 int settings_add(char *, char *);
551 void setup_proxy(char *);
552 int set_browser_mode(struct settings *, char *);
553 int set_gui_mode(struct settings *, char *);
554 int set_cookie_policy(struct settings *, char *);
555 char *get_browser_mode(struct settings *);
556 char *get_gui_mode(struct settings *);
557 char *get_cookie_policy(struct settings *);
558 void init_keybindings(void);
559 void config_parse(char *, int);
560 char *get_setting_name(int);
562 #define XT_DL_START (0)
563 #define XT_DL_RESTART (1)
564 int download_start(struct tab *, struct download *, int flag);
566 extern int tabless;
567 extern int enable_socket;
568 extern int single_instance;
569 extern int fancy_bar;
570 extern int browser_mode;
571 extern int enable_localstorage;
572 extern char *statusbar_elems;
574 extern int show_tabs;
575 extern int tab_style;
576 extern int show_url;
577 extern int show_statusbar;
578 extern int ctrl_click_focus;
579 extern int cookies_enabled;
580 extern int read_only_cookies;
581 extern int enable_scripts;
582 extern int enable_plugins;
583 extern gfloat default_zoom_level;
584 extern char default_script[PATH_MAX];
585 extern int window_height;
586 extern int window_width;
587 extern int window_maximize;
588 extern int icon_size;
589 extern int refresh_interval;
590 extern int enable_plugin_whitelist;
591 extern int enable_cookie_whitelist;
592 extern int enable_js_whitelist;
593 extern int session_timeout;
594 extern int cookie_policy;
595 extern char *ssl_ca_file;
596 extern char *resource_dir;
597 extern gboolean ssl_strict_certs;
598 extern gboolean enable_strict_transport;
599 extern int append_next;
600 extern char *home;
601 extern char *search_string;
602 extern char *http_proxy;
603 extern char *external_editor;
604 extern char download_dir[PATH_MAX];
605 extern int download_mode;
606 extern char runtime_settings[PATH_MAX];
607 extern int allow_volatile_cookies;
608 extern int color_visited_uris;
609 extern int save_global_history;
610 extern struct user_agent *user_agent;
611 extern int save_rejected_cookies;
612 extern int session_autosave;
613 extern int guess_search;
614 extern int dns_prefetch;
615 extern gint max_connections;
616 extern gint max_host_connections;
617 extern gint enable_spell_checking;
618 extern char *spell_check_languages;
619 extern int xterm_workaround;
620 extern char *url_regex;
621 extern int history_autosave;
622 extern char search_file[PATH_MAX];
623 extern char command_file[PATH_MAX];
624 extern char *encoding;
625 extern int autofocus_onload;
626 extern int js_autorun_enabled;
627 extern char *cmd_font_name;
628 extern char *oops_font_name;
629 extern char *statusbar_font_name;
630 extern char *tabbar_font_name;
631 extern int edit_mode;
632 extern int userstyle_global;
633 extern int auto_load_images;
634 extern int enable_autoscroll;
635 extern int enable_favicon_entry;
636 extern int enable_favicon_tabs;
637 extern int referer_mode;
638 extern char *referer_custom;
640 /* globals */
641 extern char *version;
642 extern char *icons[];
643 extern char rc_fname[PATH_MAX];
644 extern char work_dir[PATH_MAX];
645 extern char temp_dir[PATH_MAX];
646 extern struct passwd *pwd;
647 extern SoupCookieJar *s_cookiejar;
648 extern SoupCookieJar *p_cookiejar;
649 extern SoupSession *session;
650 extern GtkNotebook *notebook;
651 extern GtkListStore *completion_model;
652 extern uint64_t blocked_cookies;
654 extern void (*_soup_cookie_jar_add_cookie)(SoupCookieJar *, SoupCookie *);
656 extern struct history_list hl;
657 extern int hl_purge_count;
658 extern struct download_list downloads;
659 extern struct tab_list tabs;
660 extern struct about_type about_list[];
661 extern struct domain_list c_wl;
662 extern struct domain_list js_wl;
663 extern struct domain_list pl_wl;
664 extern struct strict_transport_tree st_tree;
665 extern struct alias_list aliases;
666 extern struct mime_type_list mtl;
667 extern struct keybinding_list kbl;
668 extern struct sp_list spl;
669 extern struct user_agent_list ua_list;
670 extern int user_agent_count;
672 extern PangoFontDescription *cmd_font;
673 extern PangoFontDescription *oops_font;
674 extern PangoFontDescription *statusbar_font;
675 extern PangoFontDescription *tabbar_font;