[Pkg-privacy-commits] [xul-ext-monkeysphere] 79/296: trying to figure out better way to reload window

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:27 UTC 2015


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

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit 9775a5d86f1472b7c52f471812ec7a856923feba
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Sun Feb 14 23:41:16 2010 -0500

    trying to figure out better way to reload window
    
    this is still not ideal, but it uses a couple of methods that may be
    better.
---
 chrome/content/monkeysphere.js | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index ab62284..6c6f820 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -358,19 +358,13 @@ var monkeysphere = {
 	  // reload
 	  monkeysphere.log("reloading browser...");
 	  try {
-	    //var wn = DOM.getDocShellForWindow(aWebProgress.DOMWindow).QueryInterface(CI.nsIWebNavigation);
-	    // var CI = Components.interfaces;
-	    // var wn = window.QueryInterface(CI.nsIInterfaceRequestor)
-            //   .getInterface(CI.nsIWebNavigation)
-            //   .QueryInterface(CI.nsIDocShell);
-
-            // wn.loadURI(aWebProgress.currentURI.spec,
-            //   wn.LOAD_FLAGS_BYPASS_CACHE |
-            //   wn.LOAD_FLAGS_IS_REFRESH,
-            //   null, null, null);
-
-	    // BAD
-            //gBrowser.loadURI(uri.spec, null, null, null, null, null);
+
+	    // FIXME: need to figure out how to get DOM element from aWebProgress
+	    var element = document.activeElement;
+	    element.webNavigation.reload(nsIWebNavigation.LOAD_FLAGS_NONE);
+
+	    return;
+
           } catch(e) {
             dump(e);
           }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list