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

[or-cvs] [https-everywhere/master 2/7] Add observer for "http-on-examine-merged-response"



Author: Peter Eckersley <pde@xxxxxxx>
Date: Mon, 8 Nov 2010 23:01:53 -0800
Subject: Add observer for "http-on-examine-merged-response"
Commit: 31750dfdd1d4e7404755b1fd9f28d8a32ba0b6ee

(Which NoScript uses for catching and securing cookies)
---
 src/components/https-everywhere.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/components/https-everywhere.js b/src/components/https-everywhere.js
index a72e061..8504cf8 100644
--- a/src/components/https-everywhere.js
+++ b/src/components/https-everywhere.js
@@ -222,6 +222,8 @@ HTTPSEverywhere.prototype = {
         return;
       }
       HTTPS.forceChannel(channel);
+    } else if (topic == "http-one-examine-merged-response") {
+      HTTPS.handleSecureCookies(channel);
     } else if (topic == "app-startup") {
       this.log(DBUG,"Got app-startup");
     } else if (topic == "profile-before-change") {
@@ -233,6 +235,7 @@ HTTPSEverywhere.prototype = {
     } else if (topic == "profile-after-change") {
       this.log(DBUG, "Got profile-after-change");
       OS.addObserver(this, "http-on-modify-request", false);
+      OS.addObserver(this, "http-on-examine-merged-response", false);
       var dls = CC['@mozilla.org/docloaderservice;1']
         .getService(CI.nsIWebProgress);
       dls.addProgressListener(this, CI.nsIWebProgress.NOTIFY_STATE_REQUEST);
-- 
1.7.1