[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbutton/master] Bug #3928: FIX TEH TWITTERNETZ!11



commit 3ef322d0a4c618b1613541890ed33011103732b4
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Fri Sep 9 10:34:38 2011 -0700

    Bug #3928: FIX TEH TWITTERNETZ!11
    
    The auto-scroll was broken because we were overzealously killing a scrollbar
    offset, thinking it was a window offset. #sorryboutit.
---
 src/chrome/content/jshooks4.js |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/chrome/content/jshooks4.js b/src/chrome/content/jshooks4.js
index 60a4e1c..f5573ac 100644
--- a/src/chrome/content/jshooks4.js
+++ b/src/chrome/content/jshooks4.js
@@ -28,12 +28,6 @@ window.__HookObjects = function() {
           Object.defineProperty(window.__proto__, "screenY",
                           {get: function() { return 0;},
                           configurable: false});
-          Object.defineProperty(window.__proto__, "pageXOffset",
-                          {get: function() { return 0;},
-                          configurable: false});
-          Object.defineProperty(window.__proto__, "pageYOffset",
-                          {get: function() { return 0;},
-                          configurable: false});
 
           // We can't define individual getters/setters for window.screen 
           // for some reason. works in html but not in these hooks.. No idea why

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits