1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-06 07:35:46 +01:00

Re-enable Text Edit mode in non-Google editable windows.

This commit is contained in:
Kris Maglione
2011-08-06 15:56:16 -04:00
parent ff0c5af5db
commit 85dfd5becd
3 changed files with 35 additions and 27 deletions

View File

@@ -369,10 +369,12 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
prefToArg: function (pref) pref.replace(/.*\./, "").toLowerCase(),
iterCookies: function iterCookies(host) {
let iterator = host ? services.cookies.getCookiesFromHost(host)
: services.cookies;
for (let c in iter(iterator))
yield c.QueryInterface(Ci.nsICookie2);
for (let c in iter(services.cookies)) {
c.QueryInterface(Ci.nsICookie2);
if (!host || util.isSubdomain(c.rawHost, host) || c.host[0] == "." && c.host.length < host.length && host.indexOf(c.host) == host.length - c.host.length)
yield c;
}
},
iterPermissions: function iterPermissions(host) {
for (let p in iter(services.permissions)) {