When using the completion system many warnings with the following text
would previously be displayed on the console.

  Console error: [JavaScript Warning: "reference to undefined property 
this.treeBoxObject.view" {file: "chrome://global/content/bindings/tree.xml" 
line: 0}]
    Category: chrome javascript

The problem appears to be due to underlying XULRunner code spuriously
requiring QueryInterface to be implemented.  This workaround provides
such an implementation.

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=654998
Fixes: http://bugs.conkeror.org/issue364
---
 modules/minibuffer-read.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/minibuffer-read.js b/modules/minibuffer-read.js
index f081c07..bea8c31 100644
--- a/modules/minibuffer-read.js
+++ b/modules/minibuffer-read.js
@@ -34,6 +34,7 @@ function completions_tree_view (minibuffer_state) {
 }
 completions_tree_view.prototype = {
     constructor: completions_tree_view,
+    QueryInterface: XPCOMUtils.generateQI([Ci.nsITreeView]),
     get rowCount () {
         var c = this.minibuffer_state.completions;
         if (!c)
-- 
1.7.6.3

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to