From e957626632d2c186e81b768157398a2b1bb72fe6 Mon Sep 17 00:00:00 2001 From: John Foerch Date: Tue, 13 Sep 2011 19:27:02 -0400 Subject: [PATCH] window.content: new property for compatibility with firefox plugins --- modules/window.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/window.js b/modules/window.js index d96ab27..6b7ceb7 100644 --- a/modules/window.js +++ b/modules/window.js @@ -174,9 +174,13 @@ function window_initialize (window) { tag = window.args.tag; window.tag = generate_new_window_tag(tag); - // Add a getBrowser() function to help certain extensions designed + // Add a getBrowser() and content to help certain extensions designed // for Firefox work with conkeror window.getBrowser = window_get_this_browser; + window.__defineGetter__('content', + function () { + return this.buffers.current.browser.contentWindow; + }); window_initialize_early_hook.run(window); delete window.window_initialize_early_hook; // used only once -- 2.11.4.GIT