1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 12:44:12 +01:00

Add config.browser, config.tabbrowser. Fix mailbird. &c.

This commit is contained in:
Kris Maglione
2009-11-14 01:04:53 -05:00
parent a8f8ebaeb5
commit 86142105a1
10 changed files with 85 additions and 87 deletions

View File

@@ -36,14 +36,14 @@ const Browser = Module("browser", {
"string", "UTF-8",
{
scope: Option.SCOPE_LOCAL,
getter: function () getBrowser().docShell.QueryInterface(Ci.nsIDocCharset).charset,
getter: function () config.browser.docShell.QueryInterface(Ci.nsIDocCharset).charset,
setter: function (val) {
if (options["encoding"] == val)
return val;
// Stolen from browser.jar/content/browser/browser.js, more or less.
try {
getBrowser().docShell.QueryInterface(Ci.nsIDocCharset).charset = val;
config.browser.docShell.QueryInterface(Ci.nsIDocCharset).charset = val;
PlacesUtils.history.setCharsetForURI(getWebNavigation().currentURI, val);
getWebNavigation().reload(Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
}