texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: js/info.js (Remote_store): Use parent window rath


From: Per Bothner
Subject: branch master updated: js/info.js (Remote_store): Use parent window rather than top window.
Date: Tue, 22 Jun 2021 17:59:07 -0400

This is an automated email from the git hooks/post-receive script.

bothner pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 4d3afe1  js/info.js (Remote_store): Use parent window rather than top 
window.
4d3afe1 is described below

commit 4d3afe172e5f6266535b353763f7041be01d5738
Author: Per Bothner <per@bothner.com>
AuthorDate: Tue Jun 22 14:58:32 2021 -0700

    js/info.js (Remote_store): Use parent window rather than top window.
    
    The latter breaks if we're running the info browser in an iframe.
---
 ChangeLog  | 5 +++++
 js/info.js | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c13bc57..2f557d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-22  Per Bothner  <per@bothner.com>
+
+       * js/info.js (Remote_store): Use parent window rather than top window.
+       The latter breaks if we're running the info browser in an iframe.
+
 2021-06-20  Gavin Smith  <gavinsmith0123@gmail.com>
 
        * NEWS: update
diff --git a/js/info.js b/js/info.js
index 4198a9e..e4c5370 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



reply via email to

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