.PD 0
Events:
.TP
+.B LoadStarting
+Fired before a new page is going to be opened.
+No data has been sent or received yet, the load may still fail for transport issues.
+.TP
.B LoadStarted
Fired if a new page is going to be opened.
No data has been received yet, the load may still fail for transport issues.
const char *name;
guint bits;
} events[] = {
- {"*", 0x00ff},
- {"LoadStarted", 0x0001},
- {"LoadCommitted", 0x0002},
- /*{"LoadFirstLayout", 0x0004},*/
- {"LoadFinished", 0x0008},
- /*{"LoadFailed", 0x0010},*/
- {"DownloadStarted", 0x0020},
- {"DownloadFinished", 0x0040},
- {"DownloadFailed", 0x0080},
+ {"*", 0x01ff},
+ {"LoadStarting", 0x0001},
+ {"LoadStarted", 0x0002},
+ {"LoadCommitted", 0x0004},
+ /*{"LoadFirstLayout", 0x0008},*/
+ {"LoadFinished", 0x0010},
+ /*{"LoadFailed", 0x0020},*/
+ {"DownloadStarted", 0x0040},
+ {"DownloadFinished", 0x0080},
+ {"DownloadFailed", 0x0100},
};
static GSList *get_group(Client *c, const char *name);
webkit_policy_decision_ignore(dec);
spawn_new_instance(uri);
} else {
+#ifdef FEATURE_AUTOCMD
+ if (strcmp(uri, "about:blank"))
+ autocmd_run(c, AU_LOAD_STARTING, uri, NULL);
+#endif
webkit_policy_decision_use(dec);
}
}