bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix js-info in iframe


From: Per Bothner
Subject: Fix js-info in iframe
Date: Tue, 22 Jun 2021 13:54:07 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

I tested out the js-info browser in a DomTerm browser window:
    $ domterm --tab browser URL-TO-MANUAL
That failed, because domterm creates the requested browser window in an iframe 
(interior frame).
Luckily the fix is easy:

diff --git a/js/info.js b/js/info.js
index 4198a9ec5c..e4c53700d2 100644
--- a/js/info.js
+++ b/js/info.js
@@ -99,7 +99,7 @@
   Remote_store ()
   {
     /* The browsing context containing the real store.  */
-    this.delegate = top;
+    this.delegate = window.parent;
   }
/** Dispatch ACTION to the delegate browing context. This method must be

I realize we're close to a release, but this seems fairly safe - plus it's in
an "experimental" feature. Ok to check in?

--
        --Per Bothner
per@bothner.com   http://per.bothner.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]