[torbutton/master] Bug 3580: Fix part of the hotmail breakage.

commit 4a2b483e59424ba8697d39738c014ce27b80e16f Author: Mike Perry <mikeperry-git@fscked.org> Date: Fri Aug 19 21:50:16 2011 -0700 Bug 3580: Fix part of the hotmail breakage. We were blocking some of their javascript, which they apparently load in object tags? --- src/components/cssblocker.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/components/cssblocker.js b/src/components/cssblocker.js index ad2b1ac..bf9ccde 100644 --- a/src/components/cssblocker.js +++ b/src/components/cssblocker.js @@ -312,6 +312,11 @@ ContentPolicy.prototype = { wind = node; } + /* + * This clause does in fact occurr. It causes us to break hotmail + * by blocking some of their javascript.. + * + * https://trac.torproject.org/projects/tor/ticket/3580 if (contentType == 5) { // Object // Never seems to happen.. But it would be nice if we // could handle it either here or shouldProcess, instead of in @@ -322,6 +327,7 @@ ContentPolicy.prototype = { return block; } } + */ if (!wind || !wind.top.location || !wind.top.location.href) { this.logger.safe_log(4, "Skipping no location: ",
participants (1)
-
mikeperry@torproject.org