2 * (C) Copyright 2008 Jeremy Maitin-Shepard
4 * Use, modification, and distribution are subject to the terms specified in the
12 define_buffer_local_hook("special_buffer_generated_hook");
13 define_current_buffer_hook("current_special_buffer_generated_hook", "special_buffer_generated_hook");
16 function special_buffer (window, element) {
17 this.constructor_begin();
19 conkeror.buffer.call(this, window, element, forward_keywords(arguments));
20 this.generated = false;
23 add_hook.call(this, "buffer_loaded_hook", function () {
24 buffer.generated = true;
26 call_after_timeout(function () {
27 special_buffer_generated_hook.run(buffer);
30 this.web_navigation.loadURI("chrome://conkeror-gui/content/blank.html", Ci.nsIWebNavigation.LOAD_FLAGS_NONE,
31 null /* referrer */, null /* post data */, null /* headers */);
32 this.constructor_end();
35 special_buffer.prototype.__proto__ = buffer.prototype;
37 // Sub-classes must define a generate method
39 provide("special-buffer");