Changeset 651
- Timestamp:
- 01/23/08 16:36:12 (10 months ago)
- Files:
-
- trunk/src/components/greasemonkey.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/components/greasemonkey.js
r645 r651 163 163 var ret = Ci.nsIContentPolicy.ACCEPT; 164 164 165 // block content detection of greasemonkey by denying GM 166 // chrome content, unless loaded from chrome 167 if (org && org.scheme != "chrome" && cl.scheme == "chrome" && 168 cl.host == "greasemonkey") { 169 return Ci.nsIContentPolicy.REJECT_SERVER; 170 } 171 165 172 // don't intercept anything when GM is not enabled 166 173 if (!GM_getEnabled()) { 167 174 return ret; 168 }169 170 // block content detection of greasemonkey by denying GM171 // chrome content, unless loaded from chrome172 if (org && org.scheme != "chrome" && cl.scheme == "chrome" &&173 decodeURI(cl.host) == "greasemonkey") {174 return Ci.nsIContentPolicy.REJECT_SERVER;175 175 } 176 176
