Further adapt debian webjumps as suggested by John J. Foerch
[conkeror.git] / modules / special-buffer.js
blob3b29dbd551ad735a4b506c3f8244ef30560e8eba
1 /**
2  * (C) Copyright 2008 Jeremy Maitin-Shepard
3  *
4  * Use, modification, and distribution are subject to the terms specified in the
5  * COPYING file.
6 **/
8 in_module(null);
10 require("buffer.js");
12 function special_buffer (window, element) {
13     this.constructor_begin();
14     keywords(arguments);
15     conkeror.buffer.call(this, window, element, forward_keywords(arguments));
16     this.generated = false;
18     var buffer = this;
19     add_hook.call(this, "buffer_loaded_hook", function () {
20             buffer.generated = true;
21             buffer.generate();
22         });
23     this.web_navigation.loadURI("chrome://conkeror-gui/content/blank.html", Ci.nsIWebNavigation.LOAD_FLAGS_NONE,
24                                 null /* referrer */, null /* post data */, null /* headers */);
25     this.constructor_end();
28 special_buffer.prototype.__proto__ = buffer.prototype;
30 // Sub-classes must define a generate method
32 provide("special-buffer");